tcplayer.js 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<!-- <script src="https://web.sdk.qcloud.com/player/tcplayer/release/v4.8.0/libs/hls.min.1.1.6.js"></script> -->
|
|
11
11
|
<!-- <script src="http://127.0.0.1:8082/dist/hls.js"></script> -->
|
|
12
12
|
<!--播放器脚本文件-->
|
|
13
|
-
|
|
13
|
+
<script src="https://web.sdk.qcloud.com/player/tcplayer/release/v5.0.1/tcplayer.v5.0.1.min.js"></script>
|
|
14
14
|
<!-- <script src="https://vincentlli-1306264703.cos.ap-nanjing.myqcloud.com/tcplayer/tcplayer.v4.8.0.js"></script> -->
|
|
15
15
|
<!-- <script src="https://webrtc-demo.myqcloud.com/pull-sdk/js/vconsole.min.js"></script> -->
|
|
16
|
-
<script src="http://localhost:8080/dist/tcplayer.v5.0.0.js"></script>
|
|
16
|
+
<!-- <script src="http://localhost:8080/dist/tcplayer.v5.0.0.min.js"></script> -->
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
* 设置 x5-playsinline 属性会使用 X5 UI 的播放器
|
|
54
54
|
-->
|
|
55
55
|
<script>
|
|
56
|
+
alert(1)
|
|
56
57
|
// var vConsole = new VConsole();
|
|
57
58
|
// TCPlayer.mountHlsProvider(true);
|
|
58
59
|
var player = TCPlayer('player-container-id', { // player-container-id 为播放器容器ID,必须与html中一致
|
|
@@ -90,10 +91,9 @@
|
|
|
90
91
|
appID: '1306264703',
|
|
91
92
|
psign: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MTMwNjI2NDcwMywiZmlsZUlkIjoiMjQzNzkxNTc2OTQzMDcyNjQ3IiwiY3VycmVudFRpbWVTdGFtcCI6MTY3MDQ2OTk3MSwiY29udGVudEluZm8iOnsiYXVkaW9WaWRlb1R5cGUiOiJQcm90ZWN0ZWRBZGFwdGl2ZSIsImRybUFkYXB0aXZlSW5mbyI6eyJwcml2YXRlRW5jcnlwdGlvbkRlZmluaXRpb24iOjEyfX0sInVybEFjY2Vzc0luZm8iOnsiZG9tYWluIjoiMTMwNjI2NDcwMy52b2QyLm15cWNsb3VkLmNvbSIsInNjaGVtZSI6IkhUVFBTIn19.FOcmChHfrGY9tYCDn20MSQi-IqvQ9U_U6qLNgx9MhLg',
|
|
92
93
|
// licenseUrl: 'https://license-test.vod2.myqcloud.com/test/license/testV2/1300054025_1/v_cube.license',
|
|
93
|
-
licenseUrl: 'https://license-test.vod2.myqcloud.com/test/license/testV2/1251132654_1/v_cube.license',
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
// licenseUrl: 'https://license-test.vod2.myqcloud.com/test/license/testV2/1251132654_1/v_cube.license',
|
|
95
|
+
licenseUrl: 'https://license.vod2.myqcloud.com/license/v2/1306264703_1/v_cube.license',
|
|
96
|
+
|
|
97
97
|
// 基础版
|
|
98
98
|
// https://license-test.vod2.myqcloud.com/test/license/testV2/1251132654_1/v_cube.license
|
|
99
99
|
|
|
@@ -193,6 +193,13 @@
|
|
|
193
193
|
// player.tech_.hlsProvider.hls.removeLevel(2)
|
|
194
194
|
// });
|
|
195
195
|
|
|
196
|
+
|
|
197
|
+
player.on('licenseparsed', function(e) {
|
|
198
|
+
console.log('licenseparsed', e.data);
|
|
199
|
+
});
|
|
200
|
+
player.on('hlsInstanceCreated', function(e) {
|
|
201
|
+
console.log('e', e.data.hls);
|
|
202
|
+
});
|
|
196
203
|
player.on('waiting', function(e) {
|
|
197
204
|
console.log('waiting');
|
|
198
205
|
});
|
|
@@ -213,10 +220,8 @@
|
|
|
213
220
|
});
|
|
214
221
|
|
|
215
222
|
|
|
216
|
-
|
|
217
223
|
document.getElementById('switch').addEventListener('click', function() {
|
|
218
224
|
player.src('webrtc://68789.liveplay.myqcloud.com/live/webrtc_demo_1688439945507');
|
|
219
|
-
|
|
220
225
|
// player.loadVideoByID({
|
|
221
226
|
// appID: '1500005692',
|
|
222
227
|
// fileID: '387702307006254554',
|