Skip to content
Browse files

Add a way to hide the player window in the HLS .qsp test page.

  • Loading branch information...
1 parent 9cc6ba6 commit 8ae3403d7d933802ddeafb36371e65ce6d46e7a2 @cpinkham cpinkham committed
Showing with 10 additions and 1 deletion.
  1. +10 −1 mythtv/html/samples/hlstest.qsp
View
11 mythtv/html/samples/hlstest.qsp
@@ -42,6 +42,10 @@ function emptyCell() {
return "<td>&nbsp;</td>";
}
+function hidePlayer() {
+ $("#playerwrapper").hide();
+}
+
function playStreamLink(url, width, height) {
var jwpcall = 'playStreamInJWPlayer("' + url + '", ' + width + ', ' +
height + ');';
@@ -51,6 +55,8 @@ function playStreamLink(url, width, height) {
var jwIsSetup = 0;
function playStreamInJWPlayer(playlist, width, height) {
+ $("#playerwrapper").show();
+
if (jwIsSetup) {
jwplayer('player').load({file: playlist, provider: "/StorageGroup/3rdParty/JW_Player/adaptiveProvider.swf"});
jwplayer('player').play();
@@ -286,7 +292,10 @@ function listRecordings() {
<font size=+1><i18n>HTTP Live Stream Demo</i18n></font> <a href='javascript:void(0);' onClick='listLiveStreams()'><font size=-1>(<i18n>Refresh</i18n>)</font></a><br>
<div id='LiveStreams'>
</div>
-<div id='player'>
+<div id='playerwrapper' style='display: none'>
+<a href="#" onClick="javascript:hidePlayer();">Hide Player</a>
+ <div id='player'>
+ </div>
</div>
<br>
<div>

0 comments on commit 8ae3403

Please sign in to comment.
Something went wrong with that request. Please try again.