From ad78bf346b26b2e4d0519747698c66bae25864a7 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Wed, 8 May 2019 11:36:18 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3009ca39..e170bcfb 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The `url` argument accepts a URL to an MPEG .ts file or a WebSocket server (ws:/ The `options` argument supports the following properties: -- `canvas` – the HTML Canvas elment to use for video rendering. If none is given, the renderer will create its own Canvas element. +- `canvas` – the HTML Canvas element to use for video rendering. If none is given, the renderer will create its own Canvas element. - `loop` – whether to loop the video (static files only). Default `true`. - `autoplay` - whether to start playing immediately (static files only). Default `false`. - `audio` - whether to decode audio. Default `true`. @@ -166,7 +166,7 @@ git clone https://github.com/phoboslab/jsmpeg.git 6) Install the Node.js Websocket Library: `npm install ws` -7) Start the Websocket relay. Provide a password and a port for the incomming HTTP video stream and a Websocket port that we can connect to in the browser: +7) Start the Websocket relay. Provide a password and a port for the incoming HTTP video stream and a Websocket port that we can connect to in the browser: `node websocket-relay.js supersecret 8081 8082` 8) In a new terminal window (still in the `jsmpeg/` directory, start the `http-server` so we can serve the view-stream.html to the browser: From abae48a448e82a392d8b70febb5b5e812a6a0a82 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Wed, 8 May 2019 11:37:53 +0200 Subject: [PATCH 2/2] Update video-element.js --- src/video-element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video-element.js b/src/video-element.js index 2f93637b..fdb90a45 100644 --- a/src/video-element.js +++ b/src/video-element.js @@ -82,7 +82,7 @@ var VideoElement = function(element) { this.playButton.style.display = 'none'; } - // Set up the unlock audio buton for iOS devices. iOS only allows us to + // Set up the unlock audio button for iOS devices. iOS only allows us to // play audio after a user action has initiated playing. For autoplay or // streaming players we set up a muted speaker icon as the button. For all // others, we can simply use the play button.