Added PBS support

This commit is contained in:
amarcu5
2018-12-08 12:40:15 +00:00
parent e8a20524f0
commit b26ceff292
6 changed files with 30 additions and 1 deletions
+1
View File
@@ -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.
+28
View File
@@ -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');
},
};
+1 -1
View File
@@ -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>