Skip to content

Commit

Permalink
fix:(PSVAMB-6336): dual screen hlsjs secondary autoplay (#4000)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenMe committed Apr 11, 2019
1 parent e4e1e80 commit 24aeae4
Show file tree
Hide file tree
Showing 7 changed files with 313 additions and 11 deletions.
2 changes: 1 addition & 1 deletion includes/DefaultSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,4 @@
* 'apiScript' => 'http://example.org/w/api.php'
* );
*/
$wgResourceLoaderSources = array();
$wgResourceLoaderSources = array();
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},

supportsOptimisticSeeking: function supportsOptimisticSeeking() {
return !this.isABR();
return true;
},

supportsNativeHls: function supportsNativeHls() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dual Screen Test</title>
<script type="text/javascript" src="../../../../../../tests/qunit/qunit-bootstrap.js"></script>
<script type="text/javascript" src="../../../../../../mwEmbedLoader.php"></script>
<script type="text/javascript" src="../../../../../../docs/js/doc-bootstrap.js"></script>
</head>
<body>
<h1>Dual Screen Test</h1>
<br />
<div id="kaltura_player" style="width: 960px; height: 640px;float: left;"></div>
<br style="clear: both;" /><br />
<script>
kWidget.featureConfig({
'targetId': 'kaltura_player',
'wid': '_27017',
'uiconf_id' : '35826631',
'entry_id': "1_6e40gk9l", //2 videos
// 'entry_id': "1_qsq3z7t1", //2 videos AND slides
'flashvars': {
'autoPlay': false,

// default streamertype = http (HTML5 video progressive download)/
'disableHLSOnJs': true,

// 'LeadWithHLSOnFlash': true, //flash/native HLS
'EmbedPlayer.ForceKPlayer': true, // kplayer mp4 (flash progressive download)
// streamerType: "auto", //hds
// streamerType: "rtmp", //hds
// streamerType: "hdnetworkmanifest", //hds
// streamerType: "hdnetwork", //hds
// streamerType: "http", //HTML5 video progressive download

// "chapters": {
// plugin: true
// },
// "sideBarContainer": {
// "clickToClose": true
// },

"dualScreen": {
plugin: true,
mobileTag: 'mobile'
},

//"streamSelector": {
// plugin: true
//},

// "sourceSelector": {
// plugin: true
// },

"closedCaptions": {
plugin: true
}

// "infoScreen": {
// plugin: true,
// parent: "controlsContainer",
// order: 3,
// align: "right",
// minWidth: 400,
// minWidthClass: 'infoScreenSmall',
// template: ""
// }
}
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dual Screen Test</title>
<script type="text/javascript" src="../../../../../../tests/qunit/qunit-bootstrap.js"></script>
<script type="text/javascript" src="../../../../../../mwEmbedLoader.php"></script>
<script type="text/javascript" src="../../../../../../docs/js/doc-bootstrap.js"></script>
</head>
<body>
<h1>Dual Screen Test</h1>
<br />
<div id="kaltura_player" style="width: 960px; height: 640px;float: left;"></div>
<br style="clear: both;" /><br />
<script>
kWidget.featureConfig({
'targetId': 'kaltura_player',
'wid': '_27017',
'uiconf_id' : '35826631',
'entry_id': "1_6e40gk9l", //2 videos
// 'entry_id': "1_qsq3z7t1", //2 videos AND slides
'flashvars': {
'autoPlay': false,

// default streamertype = http (HTML5 video progressive download)/
'disableHLSOnJs': true,
'LeadWithHLSOnFlash': true, //flash/native HLS
'Kaltura.ForceFlashOnDesktop': true,
'EmbedPlayer.ForceKPlayer': true, // kplayer mp4 (flash progressive download)
// streamerType: "auto", //hds
// streamerType: "rtmp", //hds
// streamerType: "hdnetworkmanifest", //hds
// streamerType: "hdnetwork", //hds
// streamerType: "http", //HTML5 video progressive download

// "chapters": {
// plugin: true
// },
// "sideBarContainer": {
// "clickToClose": true
// },

"dualScreen": {
plugin: true,
mobileTag: 'mobile'
},

//"streamSelector": {
// plugin: true
//},

// "sourceSelector": {
// plugin: true
// },

"closedCaptions": {
plugin: true
}

// "infoScreen": {
// plugin: true,
// parent: "controlsContainer",
// order: 3,
// align: "right",
// minWidth: 400,
// minWidthClass: 'infoScreenSmall',
// template: ""
// }
}
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dual Screen Test</title>
<script type="text/javascript" src="../../../../../../tests/qunit/qunit-bootstrap.js"></script>
<script type="text/javascript" src="../../../../../../mwEmbedLoader.php"></script>
<script type="text/javascript" src="../../../../../../docs/js/doc-bootstrap.js"></script>
</head>
<body>
<h1>Dual Screen Test</h1>
<br />
<div id="kaltura_player" style="width: 960px; height: 640px;float: left;"></div>
<br style="clear: both;" /><br />
<script>
kWidget.featureConfig({
'targetId': 'kaltura_player',
'wid': '_27017',
'uiconf_id' : '35826631',
'entry_id': "1_6e40gk9l", //2 videos
// 'entry_id': "1_qsq3z7t1", //2 videos AND slides
'flashvars': {
'autoPlay': false,

// default streamertype = http (HTML5 video progressive download)/

// 'LeadWithHLSOnFlash': true, //flash/native HLS
// 'EmbedPlayer.ForceKPlayer': true, // kplayer mp4 (flash progressive download)
// streamerType: "auto", //hds
// streamerType: "rtmp", //hds
// streamerType: "hdnetworkmanifest", //hds
// streamerType: "hdnetwork", //hds
// streamerType: "http", //HTML5 video progressive download

// "chapters": {
// plugin: true
// },
// "sideBarContainer": {
// "clickToClose": true
// },

"dualScreen": {
plugin: true,
mobileTag: 'mobile'
},

//"streamSelector": {
// plugin: true
//},

// "sourceSelector": {
// plugin: true
// },

"closedCaptions": {
plugin: true
}

// "infoScreen": {
// plugin: true,
// parent: "controlsContainer",
// order: 3,
// align: "right",
// minWidth: 400,
// minWidthClass: 'infoScreenSmall',
// template: ""
// }
}
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dual Screen Test</title>
<script type="text/javascript" src="../../../../../../tests/qunit/qunit-bootstrap.js"></script>
<script type="text/javascript" src="../../../../../../mwEmbedLoader.php"></script>
<script type="text/javascript" src="../../../../../../docs/js/doc-bootstrap.js"></script>
</head>
<body>
<h1>Dual Screen Test</h1>
<br />
<div id="kaltura_player" style="width: 960px; height: 640px;float: left;"></div>
<br style="clear: both;" /><br />
<script>
kWidget.featureConfig({
'targetId': 'kaltura_player',
'wid': '_27017',
'uiconf_id' : '35826631',
'entry_id': "1_6e40gk9l", //2 videos
// 'entry_id': "1_qsq3z7t1", //2 videos AND slides
'flashvars': {
'autoPlay': false,

// default streamertype = http (HTML5 video progressive download)/
'disableHLSOnJs': true,

// 'LeadWithHLSOnFlash': true, //flash/native HLS
// 'EmbedPlayer.ForceKPlayer': true, // kplayer mp4 (flash progressive download)
// streamerType: "auto", //hds
// streamerType: "rtmp", //hds
// streamerType: "hdnetworkmanifest", //hds
// streamerType: "hdnetwork", //hds
// streamerType: "http", //HTML5 video progressive download

// "chapters": {
// plugin: true
// },
// "sideBarContainer": {
// "clickToClose": true
// },

"dualScreen": {
plugin: true,
mobileTag: 'mobile'
},

//"streamSelector": {
// plugin: true
//},

// "sourceSelector": {
// plugin: true
// },

"closedCaptions": {
plugin: true
}

// "infoScreen": {
// plugin: true,
// parent: "controlsContainer",
// order: 3,
// align: "right",
// minWidth: 400,
// minWidthClass: 'infoScreenSmall',
// template: ""
// }
}
});
</script>
</body>
</html>
Loading

0 comments on commit 24aeae4

Please sign in to comment.