aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/stella.js b/stella.js
index f3c9dbd..7a4dc9e 100644
--- a/stella.js
+++ b/stella.js
@@ -1260,6 +1260,7 @@ Thanks:
Player.apply(this, arguments);
}
+ NicoPlayer.SIZE_FULL = 'full';
NicoPlayer.SIZE_LARGE = 'fit';
NicoPlayer.SIZE_NORMAL = 'normal';
@@ -1326,8 +1327,11 @@ Thanks:
get fileExtension () '.flv',
- get fullscreen () this.large,
- set fullscreen (value) (this.large = value),
+ get fullscreen () this.player.ext_getVideoSize() === NicoPlayer.SIZE_FULL,
+ set fullscreen (value) {
+ this.player.ext_setVideoSize(value ? NicoPlayer.SIZE_FULL : NicoPlayer.SIZE_NORMAL);
+ return this.fullscreen;
+ },
get id ()
let (m = U.currentURL.match(/\/(?:watch|playlist\/mylist)\/([a-z\d]+)/))