From 2a97a9a9c5213ea6fc2bbe830ff483fc7b60c247 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 25 Mar 2017 10:56:03 +0100 Subject: Add blank.mp4 to dist files For a complete "offline" experience, it's necessary to self-host the file, so include it in the dist files for that purpose. --- .gitignore | 1 + dist/blank.mp4 | Bin 0 -> 1777 bytes 2 files changed, 1 insertion(+) create mode 100644 dist/blank.mp4 diff --git a/.gitignore b/.gitignore index 610716ad..b7b9861e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ node_modules aws.json docs/index.dev.html *.mp4 +!dist/blank.mp4 index-dev.html notes.txt *.vtt diff --git a/dist/blank.mp4 b/dist/blank.mp4 new file mode 100644 index 00000000..d8982b63 Binary files /dev/null and b/dist/blank.mp4 differ -- cgit v1.2.3 From 2ecca2cbe3e67aa84c7b10cf1d876f2ba03eac12 Mon Sep 17 00:00:00 2001 From: stormrockwell Date: Wed, 19 Apr 2017 15:16:03 -0400 Subject: removed vimeo id parsing because it is not necessary --- src/js/plyr.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/js/plyr.js b/src/js/plyr.js index d86a2ecb..7d57a10c 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -604,12 +604,6 @@ return (url.match(regex)) ? RegExp.$2 : url; } - // Parse Vimeo ID from url - function _parseVimeoId(url) { - var regex = /^.*(vimeo.com\/|video\/)(\d+).*/; - return (url.match(regex)) ? RegExp.$2 : url; - } - // Fullscreen API function _fullscreen() { var fullscreen = { @@ -1528,10 +1522,6 @@ mediaId = _parseYouTubeId(plyr.embedId); break; - case 'vimeo': - mediaId = _parseVimeoId(plyr.embedId); - break; - default: mediaId = plyr.embedId; } @@ -1800,7 +1790,7 @@ // Setup instance // https://github.com/vimeo/player.js plyr.embed = new window.Vimeo.Player(container, { - id: parseInt(mediaId), + id: mediaId, loop: config.loop, autoplay: config.autoplay, byline: false, -- cgit v1.2.3