Allowing FLV content in IP.Gallery
Submitted
Mark
, Nov 13 2009 11:10 AM | Last updated May 10 2010 06:32 AM
Gallery content, for the most part, plays of the users computer using Windows Media Player or whatever their default player for the filetype in question is. So, most users have Windows Media Player as the default player for MPG files, so Windows Media Player opens on screen from their PC to play MPG files in the Gallery.
However.. FLV files are a special item. Most users do not have any type of player to play these files. WMP will not play them.. While they are Flash files, the Shockwave Flash Player will not play them.. So, it's difficult to allow support for that media type in the Gallery.
A workaround for this is using an online provider. To set this up.. Go to ACP->My Apps->Gallery->Media and Add New Media Type
Icon - flash.flv
Media Title - FLV
Media Type - video/x-flv
Media Extension - .flv
Allow Submitted/Thumbnail - Yes/Yes
Display Code -
Users can then upload FLV files, and any user can play the FLV file.. It will have a 'banner' on the player for flvplayer.com who provides the free inline player, but it's the best way to handle it so that any user will be able to see the uploaded FLV files.
This also works for M4V and MP4 files.. And probably others.. Anything that will play in the Flash Player platform.
All code is the same with the exception of
Media Title -
Media Type -
Media Extension -
Obviously, media title and media extension change for each of those.. M4V and .m4v/ MP4 and .mp4 respectively.
The media type is video/mp4 for MP4 and video/x-m4v for M4V
You should create separate records for each file type. Don't use 1 media record for FLV,MP4,M4V.
However.. FLV files are a special item. Most users do not have any type of player to play these files. WMP will not play them.. While they are Flash files, the Shockwave Flash Player will not play them.. So, it's difficult to allow support for that media type in the Gallery.
A workaround for this is using an online provider. To set this up.. Go to ACP->My Apps->Gallery->Media and Add New Media Type
Icon - flash.flv
Media Title - FLV
Media Type - video/x-flv
Media Extension - .flv
Allow Submitted/Thumbnail - Yes/Yes
Display Code -
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="640" height="375" id="FlvPlayer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="http://flvplayer.com/free-flv-player/FlvPlayer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="FFFFFF" />
<param name="FlashVars" value="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource={FILE}&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=FFFFFF"
<embed src="http://flvplayer.com/free-flv-player/FlvPlayer.swf" flashvars="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource={FILE}&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=FFFFFF" quality="high" bgcolor="FFFFFF" width="640" height="375" name="FlvPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
Users can then upload FLV files, and any user can play the FLV file.. It will have a 'banner' on the player for flvplayer.com who provides the free inline player, but it's the best way to handle it so that any user will be able to see the uploaded FLV files.
This also works for M4V and MP4 files.. And probably others.. Anything that will play in the Flash Player platform.
All code is the same with the exception of
Media Title -
Media Type -
Media Extension -
Obviously, media title and media extension change for each of those.. M4V and .m4v/ MP4 and .mp4 respectively.
The media type is video/mp4 for MP4 and video/x-m4v for M4V
You should create separate records for each file type. Don't use 1 media record for FLV,MP4,M4V.
With MP4, the entire file has to load before the video starts playing. FLV and M4V don't seem to have that issue, they buffer.











1 Comments