Link to home
Start Free TrialLog in
Avatar of CAE5942
CAE5942

asked on

Begin mp4 video on first frame

Hi everyone,

I'm using the mediaplayer.swf method to embed video on a web page:

<embed src='media/Videos/mediaplayer.swf?file="+vidName+"' width='611' height='370' allowfullscreen='true' />

I noticed that it's showing a black screen when the page first loads. Is it possible to have the videos display the first frame of the video before the play button is clicked?

Appreciate any advice.
Avatar of lherrou
lherrou
Flag of Ukraine image

gwh2,

If it's showing a black screen, most likely your video fades in from black, so the first frame IS actually black. There's a couple of options for you. One would be to edit the video so the first frame is a screencapture from some interesting point in the video. Another would be to overlay the screencap over the player, then use a OnCLick event to switch to the video and begin the video play on a single click.

Cheers,
LHerrou
Avatar of CAE5942
CAE5942

ASKER

Thanks for the reply,

There are actually about 20 videos which are loaded via links to the left of the player. When any of the links are clicked, the video is loaded but it's showing the blank screen. I've checked the videos and the first frame is definitely not black. Your second option to overlay a screen cap on the player wouldn't work in my case due to there being so many videos.

Do you have any other suggestions?
Can you show the site?
Avatar of CAE5942

ASKER

Sorry I'm not able to show the site at this time. I know it's hard to help troubleshoot without seeing the code but perhaps I'll have to have someone look at this locally.

Thanks for your help.
ASKER CERTIFIED SOLUTION
Avatar of lherrou
lherrou
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CAE5942

ASKER

The second link looks good. I'll look into that. Thanks again for your help. Appreciate it.