PDA

View Full Version : MediaPlayback works in Flash but not in browser


Morg
10-22-2007, 09:22 PM
Hey all.

I am using the MediaPlayback component. It works in the dev environment, but as soon as I put it in the browser, it wont load the FLV. When I use Tamper data it outputs that the FLV is html/text content type and not application/octet stream or something similar.

I use the following to get the player to start playing (Got it from another post here on as.org):

movieplayer.autoSize = true; //enables resizing of the player to your FLV's dimensions
movieplayer.setMedia("videos/homepage_video/homepage_video.flv"); //loads your FLV into the MediaPlayer
movieplayer.totalTime = 41;


If anyone can shed some light please, it would be greatly appreciated.

Thanks!!

Morg
11-01-2007, 10:57 AM
If anyone was wondering... I had to add .flv as a MIME type on my localhost - then it worked fine.