mirror of
https://github.com/gosticks/PiPer.git
synced 2026-10-07 07:57:01 +00:00
Added PBS support
This commit is contained in:
@@ -64,6 +64,7 @@ Install from the [Chrome Web Store](https://chrome.google.com/webstore/detail/pi
|
||||
* [Netflix](http://www.netflix.com)
|
||||
* [OCS](http://www.ocs.fr)
|
||||
* [Openload](http://www.openload.co)
|
||||
* [PBS](http://www.pbs.org)
|
||||
* [Periscope](http://www.periscope.tv)
|
||||
* [Plex](http://www.plex.tv)
|
||||
* [Seznam Zprávy](http://www.seznam.cz/zpravy)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,28 @@
|
||||
import { getResource } from './../common.js'
|
||||
import { videoPlayingPictureInPicture, togglePictureInPicture } from './../video.js'
|
||||
|
||||
export const domain = 'pbs';
|
||||
|
||||
export const resource = {
|
||||
buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset',
|
||||
buttonDidAppear: function() {
|
||||
const fullscreenButton = document.querySelector('.jw-icon-fullscreen');
|
||||
fullscreenButton.addEventListener('click', function() {
|
||||
const video = /** @type {?HTMLVideoElement} */ (getResource().videoElement());
|
||||
if (videoPlayingPictureInPicture(video)) togglePictureInPicture(video);
|
||||
});
|
||||
},
|
||||
buttonElementType: 'div',
|
||||
buttonHoverStyle: /** CSS */ (`opacity: 1 !important`),
|
||||
buttonInsertBefore: function(/** Element */ parent) {
|
||||
return parent.lastChild;
|
||||
},
|
||||
buttonParent: function() {
|
||||
return document.querySelector('.jw-button-container');
|
||||
},
|
||||
buttonScale: 0.6,
|
||||
buttonStyle: /** CSS */ (`opacity: 0.8`),
|
||||
videoElement: function() {
|
||||
return document.querySelector('.jw-video');
|
||||
},
|
||||
};
|
||||
@@ -10,7 +10,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string></string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>188</string>
|
||||
<string>189</string>
|
||||
<key>Developer Identifier</key>
|
||||
<string>BQ6Q24MF9X</string>
|
||||
<key>URL</key>
|
||||
|
||||
Reference in New Issue
Block a user