1
1
<!doctype html>
2
- <!--
2
+ <!--
3
3
Copyright 2023 Ceeblue B.V.
4
4
-->
5
5
< html lang ="en ">
19
19
integrity ="sha384-TbilV5Lbhlwdyc4RuIV/JhD8NR+BfMrvz4BL5QFa2we1hQu6wvREr3v6XSRfCTRp " rel ="stylesheet ">
20
20
< link crossorigin ="anonymous " href ="https://use.fontawesome.com/releases/v5.1.0/css/fontawesome.css "
21
21
integrity ="sha384-ozJwkrqb90Oa3ZNb+yKFW2lToAWYdTiF1vt8JiH5ptTGHTGcN7qdoR1F95e0kYyG " rel ="stylesheet ">
22
- < link href ="https://vjs.zencdn.net/8.7 .0/video-js.css " rel ="stylesheet ">
22
+ < link href ="https://vjs.zencdn.net/8.20 .0/video-js.css " rel ="stylesheet ">
23
23
< link href ="../dist/videojs-plugins.css " rel ="stylesheet ">
24
-
24
+
25
25
< style >
26
26
body {
27
27
margin-top : 1em ;
59
59
< video ref ="videoPlayer " class ="video-js vjs-default-skin vjs-fluid " playsinline controls autoplay > </ video >
60
60
</ div >
61
61
</ div >
62
-
62
+
63
63
< div class ="form-row " v-if ="dataMessages.length > 0 " disabled >
64
64
< div class ="col-12 ">
65
65
< h5 > Timed Metadatas</ h5 >
@@ -76,7 +76,7 @@ <h5>Timed Metadatas</h5>
76
76
{{ option }}
77
77
</ option >
78
78
</ select >
79
- </ div >
79
+ </ div >
80
80
< div class ="form-group col-6 col-sm-4 ">
81
81
< input :disabled ="isPlaying() " class ="form-control "
82
82
placeholder ="Node host " type ="text "
@@ -88,8 +88,8 @@ <h5>Timed Metadatas</h5>
88
88
v-model ="quality " title ="Stream quality ">
89
89
</ div >
90
90
</ div >
91
-
92
- < div class ="form-row ">
91
+
92
+ < div class ="form-row ">
93
93
< div class ="form-group col-6 ">
94
94
< input :disabled ="isPlaying() " class ="form-control "
95
95
placeholder ="Stream name " type ="text "
@@ -119,21 +119,21 @@ <h5>Timed Metadatas</h5>
119
119
// import { createApp } from 'https://cdn.jsdelivr.net/npm/vue@3/dist/vue.esm-browser.js';
120
120
// production version, optimized for size and speed
121
121
import { createApp } from 'https://cdn.jsdelivr.net/npm/vue@3/dist/vue.esm-browser.prod.js' ;
122
- import { } from 'https://cdn.jsdelivr.net/npm/webrtc-adapter/out/adapter.js' ;
123
- import { } from 'https://vjs.zencdn.net/8.7 .0/video.min.js' ;
124
- import { } from '../dist/videojs-plugins.js' ;
125
- import { Player } from './js/Player.js' ;
122
+ import 'https://cdn.jsdelivr.net/npm/webrtc-adapter/out/adapter.js' ;
123
+ import 'https://vjs.zencdn.net/8.20 .0/video.min.js' ;
124
+ import '../dist/videojs-plugins.js' ;
125
+ import { Player } from './js/Player.js' ;
126
126
127
127
const SourceType = videojs . getPlugin ( 'SourceController' ) . SourceType ;
128
- const WebRTCSourceHandler = videojs . getTech ( 'Html5' ) . sourceHandlers . find ( ( value ) => value . name == 'ceeblue/videojs-plugins' ) ;
129
-
128
+ const WebRTCSourceHandler = videojs . getTech ( 'Html5' ) . sourceHandlers . find ( ( value ) => value . name == 'ceeblue/videojs-plugins' ) ;
129
+
130
130
const {
131
131
Util,
132
132
NetAddress,
133
133
Connect,
134
134
} = WebRTCSourceHandler . webrtcClient . utils ;
135
135
console . log ( 'webrtc-client version:' , WebRTCSourceHandler . webrtcClient . VERSION ) ;
136
-
136
+
137
137
const PlayState = {
138
138
PLAYING : 'PLAYING' ,
139
139
STARTING : 'STARTING' ,
@@ -200,7 +200,7 @@ <h5>Timed Metadatas</h5>
200
200
const playerOptions = {
201
201
responsive : true ,
202
202
html5 : {
203
- nativeControlsForTouch : false ,
203
+ nativeControlsForTouch : false ,
204
204
vhs : { overrideNative : true } ,
205
205
nativeAudioTracks : false ,
206
206
nativeVideoTracks : false ,
@@ -229,8 +229,8 @@ <h5>Timed Metadatas</h5>
229
229
src : Connect . buildURL ( Connect . Type . WEBRTC , connectParams , protocol ) . toString ( ) ,
230
230
// Ceeblue specific options
231
231
iceserver : {
232
- urls : [ 'turn:' + this . host . domain + ':3478?transport=tcp' , 'turn:' + this . host . domain + ':3478' ] ,
233
- username : 'ceeblue' ,
232
+ urls : [ 'turn:' + this . host . domain + ':3478?transport=tcp' , 'turn:' + this . host . domain + ':3478' ] ,
233
+ username : 'ceeblue' ,
234
234
credential : 'ceeblue'
235
235
} ,
236
236
audiobutton : this . audiobutton ,
@@ -239,7 +239,7 @@ <h5>Timed Metadatas</h5>
239
239
}
240
240
sources . push ( source ) ;
241
241
}
242
-
242
+
243
243
player = new Player ( this . $refs . videoPlayer , connectParams , sources , playerOptions ) ;
244
244
player . on ( 'sourcechanged' , ( source ) => {
245
245
console . log ( 'sourcechanged' , source ) ;
@@ -328,4 +328,4 @@ <h5>Timed Metadatas</h5>
328
328
</ script >
329
329
</ body >
330
330
331
- </ html >
331
+ </ html >
0 commit comments