Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

2 players, same div

$
0
0
I copy this from another post, as example: Multiple jwplayer("container").setup({ file: "http://www.longtailvideo.com/jw/upload/bunny.mp4", image: "http://www.longtailvideo.com/jw/upload/bunny.jpg", height: 300, width: 400, controlbar: "bottom" }); jwplayer("container2").setup({ file: "http://www.longtailvideo.com/jw/upload/bunny.flv", image: "http://www.longtailvideo.com/jw/upload/bunny.jpg", height: 300, width: 400, controlbar: "bottom" }); If I use this code it will be showed 2 videos on the page. I want to use two different players (jwplayer 6 and jwplayer 7) on the same div I try deleting and the second player doesn't show off, and I'm trying to change the players, using this: onclick="jwplayer("container").play(); jwplayer("container").setCurrentQuality(0);jwplayer("container").setFullscreen(true)"> onclick="jwplayer("container2").play(); jwplayer("container2").setCurrentQuality(0);jwplayer("container2").setFullscreen(true)"> it only works for the container, not for the container2 Any ideas how I do that?

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>