forked from minakov/CastMediaPlayerStreamingDRM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpl.html
111 lines (105 loc) · 4.49 KB
/
mpl.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!--
Copyright (C) 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<title>Sample Receiver with Media Player Library for DASH/SS/HLS Streaming with DRMs</title>
<!--
Cast APIs
-->
<script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script>
<!--
Cast Media Library
-->
<script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/mediaplayer/0.5.0/media_player.js"></script>
<script type="text/javascript" src="mpl.js"></script>
<style>
body {
overflow:hidden;
}
video {
height:auto;
width:100%;
text-align: center;
border:0px solid silver;
display: block;
vertical-align: middle;
color: #FFFFFF;
background-color: #000000;
font-weight: bold;
font-family: Verdana, Geneva, sans-serif;
font-size:40px;
float:left;
z-index: 1;
position:absolute;
}
#messages {
color: #FFFFFF;
float: left;
top:10px;
left:20px;
margin-left: 5px;
margin-top: 5px;
z-index:2;
position:absolute;
font-weight: bold;
font-size: 90%;
width:95%;
background-color: rgba(0,0,0,0.5);
opacity:0.6;
}
#messages span {
font-weight: normal;
}
</style>
</head>
<body>
<div id="messages">
<div style="font-size:140%; font-weight:bold; margin-left:0px;" id="title">Sample Receiver with Media Player Library for DASH/SS/HLS Streaming with DRMs</div>
<div>App State: <span id="applicationState">-</span></div>
<div>Sender Count: <span id="senderCount">0</span></div>
<div>Media Element State: <span id="mediaElementState">-</span></div>
<div>Volume State: <span id="volumeMessage">Starting volume, unchanged at 0.5</span></div>
<hr>
<div>Cast Receiver Manager Message: <span id="castReceiverManagerMessage">-</span></div>
<hr>
<div>Media Manager Message: <span id="mediaManagerMessage">-</span></div>
<hr>
<div>Message Bus Message: <span id="messageBusMessage">-</span></div>
<hr>
<div style="font-size:110%;font-weight:bold;">Media Player Library: Player - Host - Protocol</div>
<div>Media Player State: <span id="mediaPlayerState">-</span></div>
<div>Media Host State: <span id="mediaHostState">-</span></div>
<div>Media Protocol: <span id="mediaProtocol">-</span></div>
<div>Stream Count: <span id="streamCount"></span></div>
<div>Video Stream Index: <span id="videoStreamIndex"></span></div>
<div>Video Codecs: <span id="streamVideoCodecs"></span></div>
<div>Video Bitrates: <span id="streamVideoBitrates"></span></div>
<div>Video Bitrates Index: <span id="videoQualityIndex"></span></div>
<div>Video Quality Bandwidth: <span id="streamVideoQuality"></span></div>
<div>Audio Stream Index: <span id="audioStreamIndex"></span></div>
<div>Audio Codecs: <span id="streamAudioCodecs"></span></div>
<div>Audio Bitrates: <span id="streamAudioBitrates"></span></div>
<div>Audio Bitrates Index: <span id="audioQualityIndex"></span></div>
<div>Audio Quality Bandwidth: <span id="streamAudioQuality"></span></div>
<div>Captions: <span id="captions"></span></div>
<div>License Server URL: <span id="licenseUrl"></span></div>
<div>Manifest Credentials: <span id="manifestCredentials">false</span></div>
<div>Segment Credentials: <span id="segmentCredentials">false</span></div>
<div>License Credentials: <span id="licenseCredentials">false</span></div>
</div>
<video id="receiverVideoElement" style="height:95%; width:100%;"></video>
</body>
</html>