Flash Video Test (#2) : Multiple Streams : StarWars BattleFront

I have been player around with Flash video for the past couple of days, and have been running a couple of tests. The first test was to test a hardware setup to get live video from a video source (in this case an Xbox) to Flash. This test is testing the ability to play back different video streams in Flash based on the user’s bandwidth.

So, here is a simple video clip of my playing a level of StarWars BattleFront on the Xbox:

<!–function appendParameter(p_args, p_name, p_value) {if (p_args == "")return p_name+"="+escape(p_value);elsereturn p_args+"&"+p_name+"="+escape(p_value);}var args = "";args = appendParameter(args, "skinName", "haloSkin_3");args = appendParameter(args, "serverName", "216.133.230.143");args = appendParameter(args, "appName","dcflash_vitalstream_com/_definst_");args = appendParameter(args, "streamName", "mikechambers/xbox_swbf/xbox_swbf_256, 56, mikechambers/xbox_swbf/xbox_swbf_2143, 160, mikechambers/xbox_swbf/xbox_swbf_2384, 420, mikechambers/xbox_swbf/xbox_swbf_2499, 550, mikechambers/xbox_swbf/xbox_swbf_2768");args = appendParameter(args, "isLive","false");args = appendParameter(args, "bufferTime","4");args = appendParameter(args, "autoPlay","false");args = appendParameter(args, "autoRewind","true");args = appendParameter(args, "isFullScreen","false");//args = appendParameter(args, "queuePointsFile","./qpoints.xml");args = appendParameter(args, "bgColor","0xFFFFFF");document.write('‘);document.write(‘‘);document.write(‘‘);document.write(‘‘);document.write(‘‘);document.write(‘‘);document.write(‘‘);document.write(‘‘);document.write(‘‘);–>

The quality of the video and sound will depend on your bandwidth. The slower your connection, the lower the quality of the video and sound. This allows me to offer multiple versions to ensure the best possible experience for all users.

Btw, I am using Peldi’s FLVPlayer (which rocks). Thanks to Peldi for putting it together, and helping me work out some kinks in my code.

One tip with using the FLVPlayer. If you want to install the player in one place on your web server and then load it from multiple pages / directories, make sure to set the BASE attribute (within the player’s object and embed HTML tags) to “.”. This will tell Flash to load its resources (such as the player skins) relative to the FLVPlayer.swf file, and not relative to the HTML page / directory that the file is loaded into. You can read more on this in this technote.

If you seem to be getting poor quality for your connection, try to reload the page. You connection may have been busy / full when the player detected your bandwidth.

If you have any problems viewing the video, post your info in the comments (include browser, OS, Flash player version and connection speed).