mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
@@ -32,7 +32,7 @@ Basic usage of Shaka Player is very easy:
|
||||
```js
|
||||
// myapp.js
|
||||
|
||||
var manifestUri =
|
||||
const manifestUri =
|
||||
'https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd';
|
||||
|
||||
function initApp() {
|
||||
@@ -51,8 +51,8 @@ function initApp() {
|
||||
|
||||
function initPlayer() {
|
||||
// Create a Player instance.
|
||||
var video = document.getElementById('video');
|
||||
var player = new shaka.Player(video);
|
||||
const video = document.getElementById('video');
|
||||
const player = new shaka.Player(video);
|
||||
|
||||
// Attach player to the window to make it easy to access in the JS console.
|
||||
window.player = player;
|
||||
|
||||
Reference in New Issue
Block a user