From aa6bc2df2f64cf1d386c895f721282dc60c37b56 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 10 Mar 2015 23:54:52 +1100 Subject: Fixes for volume control on iOS --- docs/src/js/docs.js | 3 +-- docs/src/templates/controls.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/src') diff --git a/docs/src/js/docs.js b/docs/src/js/docs.js index b977290c..fd988ce3 100644 --- a/docs/src/js/docs.js +++ b/docs/src/js/docs.js @@ -11,8 +11,7 @@ plyr.setup({ html: templates.controls.render({}), captions: { defaultActive: true - }, - tooltips: true + } }); // Google analytics diff --git a/docs/src/templates/controls.html b/docs/src/templates/controls.html index 6d93faa4..6a2faa31 100644 --- a/docs/src/templates/controls.html +++ b/docs/src/templates/controls.html @@ -9,7 +9,7 @@ 0% buffered - + - - - - - - Time - 00:00 - - - - - +
+ + + + 0% played + + + 0% buffered + +
+ + + + + + + + Time + 00:00 + + + + + - - + + - - + + - - + +
\ No newline at end of file -- cgit v1.2.3 From e568bc9c8d25823867840f3344f91be834602a17 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 4 Apr 2015 12:32:37 +1100 Subject: Controls improvements - Added an option to toggle which controls display - Better handle missing controls --- docs/src/less/docs.less | 2 +- docs/src/templates/controls.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/src') diff --git a/docs/src/less/docs.less b/docs/src/less/docs.less index 54407423..f68e0148 100644 --- a/docs/src/less/docs.less +++ b/docs/src/less/docs.less @@ -139,7 +139,7 @@ a { // Players .example-audio .player { - max-width: 480px; + max-width: 520px; } .example-video .player { max-width: 1200px; diff --git a/docs/src/templates/controls.html b/docs/src/templates/controls.html index 9fbb92b2..47ccbd55 100644 --- a/docs/src/templates/controls.html +++ b/docs/src/templates/controls.html @@ -31,7 +31,11 @@ Forward {seektime} secs - Time + Current time + 00:00 + + + Duration 00:00
-- cgit v1.2.3 From 5322f4c62fc05aa0caafa66592677d67aa55bd05 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 6 Apr 2015 11:47:23 +1000 Subject: Fullscreen API methods (Fixes #74), onSetup callback --- docs/src/js/docs.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/src') diff --git a/docs/src/js/docs.js b/docs/src/js/docs.js index fd988ce3..18e88d90 100644 --- a/docs/src/js/docs.js +++ b/docs/src/js/docs.js @@ -11,9 +11,21 @@ plyr.setup({ html: templates.controls.render({}), captions: { defaultActive: true + }, + onSetup: function() { + var player = this, + type = player.media.tagName.toLowerCase(), + toggle = document.querySelector("[data-toggle='fullscreen']"); + + console.log("✓ Setup done for <" + type + ">"); + + if(type === "video" && toggle) { + toggle.addEventListener("click", player.toggleFullscreen, false); + } } }); + // Google analytics // For demo site (http://[www.]plyr.io) only if(document.domain.indexOf("plyr.io") > -1) { -- cgit v1.2.3