Add initial AirPlay support (#659)
This commit is contained in:
parent
86bf6ab8d2
commit
21066f06f0
4 changed files with 53 additions and 0 deletions
|
@ -1540,6 +1540,11 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
|
|||
return player.togglePictureInPicture();
|
||||
};
|
||||
|
||||
self.toggleAirPlay = function (player) {
|
||||
player = player || self._currentPlayer;
|
||||
return player.toggleAirPlay();
|
||||
};
|
||||
|
||||
self.getSubtitleStreamIndex = function (player) {
|
||||
|
||||
player = player || self._currentPlayer;
|
||||
|
@ -3854,6 +3859,9 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
|
|||
if (player.supports('PictureInPicture')) {
|
||||
list.push('PictureInPicture');
|
||||
}
|
||||
if (player.supports('AirPlay')) {
|
||||
list.push('AirPlay');
|
||||
}
|
||||
if (player.supports('SetBrightness')) {
|
||||
list.push('SetBrightness');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue