Fixed CuriosityStream support

Fixed PiP button not showing in CuriosityStream
This commit is contained in:
amarcu5
2017-08-08 00:11:02 +01:00
parent 446b106b46
commit d69648c532
3 changed files with 8 additions and 10 deletions
Binary file not shown.
+6 -8
View File
@@ -286,21 +286,19 @@ const resources = {
},
'curiositystream': {
buttonClassName: 'vjs-control vjs-button',
buttonHoverStyle: 'opacity:1!important',
buttonInsertBefore: function(/** Element */ parent) {
return parent.lastChild;
},
buttonParent: function() {
return document.querySelector('div[class^="styles__controls"]');
},
buttonScale: 1.1,
buttonStyle: 'height:22px;width:22px;cursor:pointer;padding:0;border:0;opacity:0.8;margin-right:30px;background:transparent',
captionElement: function() {
const e = currentResource.videoElement();
return /** @type {?Element} */ (e && e.parentNode.querySelector('div[style*="width:"]:not([class])'));
const e = document.getElementById('main-player');
return e && e.querySelector('.vjs-control-bar');
},
buttonScale: 0.7,
buttonStyle: 'opacity:0.8;cursor:pointer',
videoElement: function() {
return document.querySelector('video[class^="styles__video"]');
return document.getElementById('main-player_html5_api');
},
},
+2 -2
View File
@@ -8,9 +8,9 @@
<key>CFBundleIdentifier</key>
<string>com.amarcus.safari.piper</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>0.2.1</string>
<key>CFBundleVersion</key>
<string>50</string>
<string>51</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>