jwplayer

How to load playlist without restart the current playing video

只谈情不闲聊 提交于 2019-12-01 09:50:36
问题 When we add a new item to playlist use following code when a video is playing. var playlist = jwplayer().getPlaylist(); var newItem = { file: videoUrl, image: videoThumb, title: videoTitle }; playlist.push(newItem); jwplayer().load(playlist); when added item, the current video will be restart. But I wan't the video to be interrupt. Any one know how to do this? Any suggestion will greatly appreciated. 回答1: var curpos = jwplayer().getPosition(); var playlist = jwplayer().getPlaylist(); var

Set jw player youtube video playback quality

时光怂恿深爱的人放手 提交于 2019-12-01 07:34:21
问题 I'm using jw player to play youtube videos, but i need for the video to start playing in hd ( 720p ) i use the following code: <div id="player"> <script> jwplayer("player").setup({ file: "http://www.youtube.com/watch?v=o8UCI7r1Aqw", height: "720", width: "1280" }); </script> </div> <script> jwplayer('player').onPlay(function() { jwplayer().setPlaybackQuality('hd720'); }); </script> but i get the following error There was an error calling back an event handler Here is the test player that i

JWPlayer Prevent SKipping forward unless already watched

拜拜、爱过 提交于 2019-12-01 05:52:57
I'm using JWPlayer 5.4 and it's setup on the page using the javascript API. What I'd like to do is make it so that users can fastforward/rewing via the seek bar ONLY if they have already played that part of the video. So, if a user is watching the video for the first time they can't skip beyond the current position, however they can seek forward and back behind where the video played up until. I'm struggling with the API onTime events etc. to try and work out the Math to make this work. Does anyone know how this could be done. Thanks mal I found this a while back, probably on the JWplayer

JW Player: cross-browser “display:none” player behavior

放肆的年华 提交于 2019-12-01 00:43:37
Is there a simple, upfront method to have FF and IE treat hidden JW Players the same? I am placing different instances of the player dynamically in jQuery generated tabs. In effect, switching tabs hides the parent div of each player. In FireFox, the tab switch and accompanying "display" change stops the player. This doesn't happen in IE. I would like it to. What is the easiest way to have both browsers act the same? I am hoping for a CSS/HTML solution, either thorough the way the players are embedded or a style rule Otherwise I suppose I will need to add an item listener that compares the

disabling play/pause in embedded video using JW player

不羁岁月 提交于 2019-12-01 00:37:58
I am using JW (v 5.8) player to embed a video. And I want to do it so that autostart is enabled, allowing the video to start playing as soon as the page loads, the controlbar is disabled so that a viewer cannot seek to a random point in a video and the play/pause function on clicking the video is disabled. To embed the mp4 video, I am using JW player. I managed to accomplish the first 2 tasks, but to disable the play/pause function on clicking the screen, I am trying to use the clickproxy plugin and it does not work. I am pasting my code below: <div id="mediaplayer">JW Player goes here</div>

JWPlayer - customize listbar to add a “download” link

*爱你&永不变心* 提交于 2019-11-30 23:57:11
We have the need to allow our users to download any video they're currently watching in the JWPlayer. The most logical way to do this would be to add a "download" link in the playlist/listbar. Can the listbar be customized to this extent? Here is a quick demo, I updated it so it works on a per playlist item basis, and I made the image base64encoded so you don't have to host the download png on your server: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="icon" type="image/x-icon" href="http://www.jwplayer.com/wp-content/themes/jwplayer-105/favicon.ico"> <title>Adding a

JWplayer Full screen when user clicks on play

邮差的信 提交于 2019-11-30 23:08:00
How do I make JWplayer full screen as soon as a user clicks on the play button? I couldn't find anything relating to this on their support. This will only work in HTML5 mode: <!DOCTYPE html> <html> <head> <title>Full Screen</title> </head> <body> <script src="http://p.jwpcdn.com/6/12/jwplayer.js" type="text/javascript"></script> <div id="player"></div> <script type="text/javascript" language="javascript"> jwplayer("player").setup({ file: "http://content.jwplatform.com/videos/C4lp6Dtd-el5vTWpr.mp4", image: "http://content.bitsontherun.com/thumbs/i8oQD9zd-640.jpg", primary: 'html5', width: 640,

disabling play/pause in embedded video using JW player

泪湿孤枕 提交于 2019-11-30 18:17:36
问题 I am using JW (v 5.8) player to embed a video. And I want to do it so that autostart is enabled, allowing the video to start playing as soon as the page loads, the controlbar is disabled so that a viewer cannot seek to a random point in a video and the play/pause function on clicking the video is disabled. To embed the mp4 video, I am using JW player. I managed to accomplish the first 2 tasks, but to disable the play/pause function on clicking the screen, I am trying to use the clickproxy

JW Player: cross-browser “display:none” player behavior

血红的双手。 提交于 2019-11-30 18:09:13
问题 Is there a simple, upfront method to have FF and IE treat hidden JW Players the same? I am placing different instances of the player dynamically in jQuery generated tabs. In effect, switching tabs hides the parent div of each player. In FireFox, the tab switch and accompanying "display" change stops the player. This doesn't happen in IE. I would like it to. What is the easiest way to have both browsers act the same? I am hoping for a CSS/HTML solution, either thorough the way the players are

JWPlayer - customize listbar to add a “download” link

此生再无相见时 提交于 2019-11-30 18:08:01
问题 We have the need to allow our users to download any video they're currently watching in the JWPlayer. The most logical way to do this would be to add a "download" link in the playlist/listbar. Can the listbar be customized to this extent? 回答1: Here is a quick demo, I updated it so it works on a per playlist item basis, and I made the image base64encoded so you don't have to host the download png on your server: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="icon"