Skip to content

Commit

Permalink
update hlsjs url
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinGodell committed Mar 16, 2018
1 parent ffaad89 commit c550603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/video.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
hlsjsVideo.play();
});
hls.attachMedia(hlsjsVideo);
hls.loadSource('/hls/test.m3u8?kevin');
hls.loadSource('/hls/test.m3u8?hlsjs');
} else {
hlsjsVideo.parentElement.innerHTML = '<p>hls.js not supported</p>';
}
Expand All @@ -202,7 +202,7 @@
reconnection: true,
reconnectionDelay: 500
});
jpegSocket.on('jpeg', function (data) {
jpegSocket.on('jpeg', (data) => {
const arrayBufferView = new Uint8Array(data);
const blob = new Blob([arrayBufferView], {type: 'image/jpeg'});
const urlCreator = window.URL || window.webkitURL;
Expand Down Expand Up @@ -231,7 +231,7 @@
reconnection: true,
reconnectionDelay: 500
});
m3u8Socket.on('m3u8', function (data) {
m3u8Socket.on('m3u8', (data) => {
m3u8.innerText = data;
});
</script>
Expand All @@ -244,7 +244,7 @@
reconnection: true,
reconnectionDelay: 500
});
mimeSocket.on('mime', function (data) {
mimeSocket.on('mime', (data) => {
const type = data.toLowerCase();
let message = type;
if ('MediaSource' in window) {
Expand Down

0 comments on commit c550603

Please sign in to comment.