56 lines
1.2 KiB
HTML
56 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Title</title>
|
|
<script language="JavaScript" src="./distribution/vokaPlayer.global.js"></script>
|
|
</head>
|
|
<body>
|
|
<h1>Hello world</h1>
|
|
<div id="my-video"/>
|
|
<script language="JavaScript">
|
|
var player = spbtvplayer('my-video', {
|
|
features: {
|
|
api: true,
|
|
drm: false,
|
|
metrics: true
|
|
},
|
|
apiConfig: {
|
|
channelId: 'dash-live-0aec531fc01',
|
|
clientId: null,
|
|
movieId: null,
|
|
episodeId: null,
|
|
newsId: null,
|
|
apiHost: 'localhost:8080',
|
|
},
|
|
uiConfig: {
|
|
initAsLive: true
|
|
},
|
|
globalOpts: {
|
|
uiLanguage: 'ru'
|
|
},
|
|
streamOpts: {
|
|
autoplay: true
|
|
},
|
|
controls: {
|
|
zoomButton: {
|
|
isVisible: true,
|
|
enable: true,
|
|
},
|
|
},
|
|
});
|
|
var count = 0
|
|
var timer = setInterval(
|
|
() => {
|
|
console.log(player.getCurrentVideoInfo())
|
|
console.log(player.getNetworkBandwidth())
|
|
count++
|
|
if (count > 5) {
|
|
clearInterval(timer)
|
|
}
|
|
},
|
|
3000
|
|
)
|
|
</script>
|
|
</body>
|
|
</html> |