From 5d2375cbb23dbe69a7afe7a691707be48397c6d9 Mon Sep 17 00:00:00 2001 From: RblSb Date: Mon, 29 Apr 2024 07:45:10 +0300 Subject: 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`) --- src/VideoList.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/VideoList.hx') 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; inline function get_currentItem():Null { return items[pos]; } - public inline function getItem(i:Int):VideoItem { + public inline function getItem(i:Int):Null { return items[i]; } -- cgit v1.2.3