mirror of
https://github.com/gosticks/PiPer.git
synced 2026-10-05 23:16:54 +00:00
Fixed CuriosityStream support
Fixed PiP button not showing in CuriosityStream
This commit is contained in:
Binary file not shown.
+6
-8
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user