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

how to change the playback speed of video/audio in jwplayer


Hi
i want to change the playback speed of jwplayer video/audio
@ button click

in html5 api

we have this
function speed(x){
myVideo.playbackRate=x;
}

with playback rate we can manipulate the playback speed .how to do this using jwplayer api or any other way to do this

thanks


best,
Hitesh

9 Community Answers

Ethan Feldman

JW Player Support Agent  
-1 rated :

This is something you could probably do with html5 native video controls, not sure about the JW Player though.

JW Player

User  
0 rated :

can we use <video> tag in jwplayer

<video src="/videos/video.mp4" height="270" id="container" poster="/thumbs/image.jpg" width="480"> </video>

<script type="text/javascript"> jwplayer("container").setup({ flashplayer: "/jwplayer/player.swf" }); </script>

is this setup still alllowed injwplayer 6

Alex

JW Player Support Agent  
0 rated :

No, you would give the media to the JW Player, not the tag, like
jwplayer(“container”) {
file: “file/file.mp4”
}

Also you don’t give it flashplayer anymore.

JW Player

User  
0 rated :

hi alex
thanks for reply

reason i was tring to do it was that i wanted to use the <video> tag property

http://www.w3schools.com/tags/av_prop_playbackrate.asp


if it is not possible to use the <vidoe> tag than

is there any method in JWplayer or outside of jwplayer using which i can manupulate my video speed ??

Alex

JW Player Support Agent  
0 rated :

Well there’s certainly ways of doing this. it depends how involved you want to get.
We have a plugin SDK you could use to do it available, here :http://developer.longtailvideo.com/trac/wiki

The easiest way though would be to gain access the video tag after the JW Player has set up or started playback:
document.getElementById(“container”).querySelector(“video”)

something like this might work
jwplayer(“container”).onPlay(
function() {

document.getElementById(“container”).querySelector(“video”).defaultPlaybackRate = 2.0; }

)

JW Player

User  
0 rated :

Thanks Alex,
That information is solid ... i was looking for something like this
Thanks alot
i will try it out :)

Ethan Feldman

JW Player Support Agent  
1 rated :

Let us know if it works.

JW Player

User  
0 rated :

I changed the "playbackRate" and it is working like a charm :)
Thank you very much !

Ethan Feldman

JW Player Support Agent  
0 rated :

Nice !

This question has received the maximum number of answers.