diff --git a/app/src/main/java/com/futo/platformplayer/Extensions_V8.kt b/app/src/main/java/com/futo/platformplayer/Extensions_V8.kt index 000b4004..fc1f5cf3 100644 --- a/app/src/main/java/com/futo/platformplayer/Extensions_V8.kt +++ b/app/src/main/java/com/futo/platformplayer/Extensions_V8.kt @@ -238,6 +238,9 @@ fun V8ValuePromise.toV8ValueAsync(plugin: V8Plugin): V8Deferred else V8Deferred(underlyingDef); + if(def.estDuration > 0) + Logger.i("V8", "Promise with duration: [${def.estDuration}]"); + val promise = this; plugin.busy { this.register(object: IV8ValuePromise.IListener { diff --git a/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt b/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt index 193b564e..a497ab72 100644 --- a/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt +++ b/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt @@ -911,6 +911,6 @@ class FutoVideoPlayer : FutoVideoPlayerBase { loaderDeterminate.progress = anim.animatedValue as Int } start() - } + }; } } \ No newline at end of file diff --git a/app/src/main/res/layout/video_view.xml b/app/src/main/res/layout/video_view.xml index 63eabf9f..bc9a8142 100644 --- a/app/src/main/res/layout/video_view.xml +++ b/app/src/main/res/layout/video_view.xml @@ -87,6 +87,7 @@