aboutsummaryrefslogtreecommitdiffstats
path: root/src/VideoList.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2024-04-29 07:45:10 +0300
committerRblSb <msrblsb@gmail.com>2024-04-29 07:45:10 +0300
commit5d2375cbb23dbe69a7afe7a691707be48397c6d9 (patch)
tree2fe92ab48e83427b3a7e90855545f73c2c8daa3e /src/VideoList.hx
parent9d844bbf3ac6be327325b13a91a6b33f73c49c1d (diff)
Video item fixes
- Fix youtube fallback, `videoItem.url` is now immutable - JsApi.setVideoSrc now updates to supported player based on `url` arg - Fix auto-pause when video is ended (with `requestLeaderOnPause`)
Diffstat (limited to 'src/VideoList.hx')
-rw-r--r--src/VideoList.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VideoList.hx b/src/VideoList.hx
index 094d2ab..b677060 100644
--- a/src/VideoList.hx
+++ b/src/VideoList.hx
@@ -17,13 +17,13 @@ class VideoList {
return items.length;
}
- public var currentItem(get, never):VideoItem;
+ public var currentItem(get, never):Null<VideoItem>;
inline function get_currentItem():Null<VideoItem> {
return items[pos];
}
- public inline function getItem(i:Int):VideoItem {
+ public inline function getItem(i:Int):Null<VideoItem> {
return items[i];
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage