| |
Video Streaming
You can use these for testing directly from the player (choose "File", "Open URL..", etc):
When making mp4 files to be streamed, they must be 'hinted'.
To use Flash to create or view a video file:
- To create your own Flash presentation, you'll need the Flash suite of tools (now called Flash CS3). This is where you create the skin for the player and any other graphics or interactivity that you want. When you "import" your video from the Flash streaming server, you'll use the following format for the URL:
- rtmp://flashmedia.indiana.edu/ip/accountname/filename (leaving off the .flv extension).
- Here's your example:
rtmp://flashmedia.indiana.edu/ip/acnw/acnw_demo
- Flash is a little bit different than the other file formats. There are two major components:
- 1. The video itself (.flv) and
- 2. the presentation file (.swf).
- Place your .flv files in the wwwdm folder.
- And the .swf files in www/wwws.
- Create a link on a page to go to a separate page to view the Flash video.
- Example of page with link: Become A Rater where is says: View Informational Video which is linked.
- Example of a page that would contain the Flash Video and a link to get the Adobe Flash Player if you don't have it loaded on your PC: Rater Video
- The video file would be found in the streaming area: \\siteshare\webaccount\name\wwwdm\nameoffile.flv
- Below is an example of JavaScript that runs and displays the Flash video:
<SCRIPT LANGUAGE="JavaScript" src="launchflash.js"></script>
<!--
var myQueryString=document.location.search;
// remove the '?' sign if exists
if (myQueryString[0]='?')
{
myQueryString=myQueryString.substr(1, myQueryString.length-1);
}
document.write(
'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"\n'+
'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"\n'+
'width="480"\n'+
'height="420" id="flashvars_for_ip" align="middle">\n'+
'<param name="allowScriptAccess" value="sameDomain" />\n'+
'<param name="movie" value="flashvars_for_ip.swf" />\n'+
'<param name="quality" value="high" />\n'+
'<param name="bgcolor" value="#ffffff" />\n'+
'<embed src="flashvars_for_ip.swf" FlashVars="'+myQueryString+'" quality="high"\n'+
'bgcolor="#ffffff" \n'+
'width="480" height="420" name="flashvars_for_ip" \n'+
'align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" \n'+
'pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'+
'<param name="FlashVars" value="'+myQueryString+'" />\n'+
'</object>');
//--> |
- The line in the above JavaScript that says: 'codebase="http://fpdownload.macromedia/... must be changed to 'codebase="https://fpdownload.macromedia/... to prevent the error of displaying: Do you want to display unsecured images in a secured area.
- Also make sure that any other images being displayed on the page are using a secured URL address.
|
|