зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1580095 - Update netflix wrapper. r=pip-reviewers,mhowell
Depends on D180873 Differential Revision: https://phabricator.services.mozilla.com/D180874
This commit is contained in:
Родитель
1c20254d84
Коммит
ef8ded1c25
|
@ -74,6 +74,18 @@ class PictureInPictureVideoWrapper {
|
|||
setCurrentTime(video, position) {
|
||||
this.player.seek(position * 1000);
|
||||
}
|
||||
setVolume(video, volume) {
|
||||
this.player.setVolume(volume);
|
||||
}
|
||||
getVolume() {
|
||||
return this.player.getVolume();
|
||||
}
|
||||
setMuted(video, shouldMute) {
|
||||
this.player.setMuted(shouldMute);
|
||||
}
|
||||
isMuted() {
|
||||
return this.player.isMuted();
|
||||
}
|
||||
}
|
||||
|
||||
this.PictureInPictureVideoWrapper = PictureInPictureVideoWrapper;
|
||||
|
|
Загрузка…
Ссылка в новой задаче