The trick itself is trivial, it’s a common issue that bothers every front-end developer. I use its jQuery to get the player object, then force the player to play by using its play() API.

Paste this code in your chrome console.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Hide the keyboard div
// 隐藏键盘等遮罩层
$(".keyboard").hide();
$(".waitingLayer").hide();
$(".wrapper-shadow").hide();
// Get player object
// 获取播放器对象,并设置为播放
var v = jwplayer("video");
// Force the player to play
v.play(!0);
// Force the player to play in every 1 second
// 有时候当网页失去焦距之后,比如浏览其他网页
// 这个时候视频会暂停播放
// 有一个粗暴的解决方案:
setInterval(function() {v.play(!0);}, 1000);
// If you want to change current progress
// Get current position, change the position with seek()
// 获取当前播放点的时间
v.getPosition();
// 将视频调整到300播放点
v.seek(300);
// 将视频往后调整300个时间点
v.seek(v.getPosition()+300);
// 其余方法类似

Note

I’ve sent emails to the VP of Marc Dorcel, but he told me that it is not that serious, in a few weeks they are gonna shutdown that website, so here I will show you how to make use of this js script.

img