Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Preview Image with Object/Embed Method?


I'm trying to show a preview image but I have to use the object/embed method, I'm not having any luck I've tried 'image' and 'poster':

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='500' height='280' id='player1' name='player1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='flashvars' value='image=preview.jpg'>
<param name='flashvars' value='file=video.mp4'>
<embed id='player1'
name='player1'
src='player.swf'
width='500'
height='280'
allowscriptaccess='always'
allowfullscreen='true'
flashvars="image=preview.jpg"
flashvars="file=video.mp4"
/>
</object>

Is there a way to do this with the embed/object method?

12 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You need to use this code:

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='500' height='280' id='player1' name='player1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='flashvars' value='image=preview.jpg&file=video.mp4'>
<embed id='player1' name='player1' src='player.swf' width='500' height='280' allowscriptaccess='always' allowfullscreen='true' flashvars="image=preview.jpg&file=video.mp4" />
</object>

You can only have one flashvars line.

JW Player

User  
0 rated :

Thank You! Worked perfectly, I really appreciate the help.

You are a gentleman and a scholar.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np! :-)

JW Player

User  
1 rated :


Hello ,
I have mp4 movies.
I need play movie fullscreen and after finish movie need to close automatically .I am using like this

</param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed id="myvid" src="....../XXX.mp4" autoplay="true" loop="false" allowfullscreen="true" allowscriptaccess="always"/>

Really appreciate,any help
Thanks for advance .

JW Player

User  
1 rated :

@Anu

I suggest that it would be the better served using a playlist then possibly as an event remove the JWPlayer.

You'll just have to peek at the documentation in which method you wish to use.

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/19824/playlist-support-in-the-jw-player

If oyu wish feel free to visit my web site, www.mirana.net, select the multimedia section and browse around in the video section.

There you'll be able to also view the coding used by selecting the 'view code' button.

You may also need to do some JavaScript to accomplish your wish or task.

Oh, yes! before I forget just make sure that your mp4's are of the H.264 mp4 iso v2 type or format.

Hope this is helpful for you.

JW Player

User  
1 rated :

Thank you for your response Willie.
I have mp4 videos playing in quick player .
When we can know video is ended by java script .

I tried whole day
addModelListener ,addControllerListener ....etc
with HTML5 addControllerListener event is worked.
but emded video it couldn't work out.

I found one site
http://developer.apple.com/library/safari/#documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/QuickTimeandJavaScri.html

I am keep trying...
Any help would be thank full.
Thank you



Ethan Feldman

JW Player Support Agent  
1 rated :

Do you have a link?

JW Player

User  
-1 rated :

I solved above problem by using VideoJS - HTML5 Video Player.
Thank you for your response .
I have one more problem ,i am using ogv videos
but this ogv videos playing only belongs to
this codecs="theora, vorbis"
is there any way i can use for all ogv videos
I tried to put this codecs="theora, vorbis,speex,flac,webm etc"
it didn't work,any suggestionb is helpful,
Thank u for advance

<video id="example_video_1" class="video-js" width="1550" height="814" controls allowfullscreen>
<source src="oceans-clip.ogv" type='video/ogg; codecs="theora, vorbis"'>
<img id="fposterimg" src="Storms.jpg" width="1550" style="text-align:center;position:relative;display:block; top:-35px" height="814" alt="Poster Image" title="No video playback capabilities."/>
</video>

Ethan Feldman

JW Player Support Agent  
-1 rated :

Link?

JW Player

User  
1 rated :

Hello Ethan,

I have some ovg videos,

My javascript files are:
This is for player
http://hermage.net/OceanReef/video.js

this video is playing:
http://hermage.net/OceanReef/images/institutions/Ocean_Reef_ORCAT.ogv

these video's are not playing:(appearing blank screen)(in server its taking some time for loading but in my local Pc its working if i put directly in html ,but if i try to put dynamically its not working)
http://hermage.net/OceanReef/images/institutions/Ocean_Reef_A_Sentimental_Journey.ogv
http://hermage.net/OceanReef/images/institutions/Ocean_Reef_Then_and_Now.ogv
http://hermage.net/OceanReef/images/institutions/Ocean_Reef_Now_Then.ogv

Thank you





JW Player

User  
-1 rated :

Hey Ethan
Don't worry about my Problem
Just now i got the solution
This site very lucky for me ,after uploading my problem ,i am getting solution .
Thank you

Ethan Feldman

JW Player Support Agent  
1 rated :

Np, glad you solved it! :)

This question has received the maximum number of answers.