From d3028b9a036d767d89e41e2074379cd8ec3c2aa3 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 28 Apr 2016 00:14:20 +1000 Subject: iconUrl option --- src/js/plyr.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'src/js') diff --git a/src/js/plyr.js b/src/js/plyr.js index 329bf783..cdc6ad20 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -39,6 +39,7 @@ duration: null, displayDuration: true, iconPrefix: 'icon', + iconUrl: '', clickToPlay: true, hideControls: true, tooltips: { @@ -644,13 +645,14 @@ // Build the default HTML function _buildControls() { // Create html array - var html = []; + var html = [], + iconPath = config.iconUrl + '#' + config.iconPrefix; // Larger overlaid play button if (_inArray(config.controls, 'play-large')) { html.push( '' ); @@ -662,7 +664,7 @@ if (_inArray(config.controls, 'restart')) { html.push( '' ); @@ -672,7 +674,7 @@ if (_inArray(config.controls, 'rewind')) { html.push( '' ); @@ -683,11 +685,11 @@ if (_inArray(config.controls, 'play')) { html.push( '', '' ); @@ -697,7 +699,7 @@ if (_inArray(config.controls, 'fast-forward')) { html.push( '' ); @@ -747,8 +749,8 @@ if (_inArray(config.controls, 'mute')) { html.push( '' ); @@ -769,8 +771,8 @@ if (_inArray(config.controls, 'captions')) { html.push( '' ); @@ -780,8 +782,8 @@ if (_inArray(config.controls, 'fullscreen')) { html.push( '' ); -- cgit v1.2.3