From f84fdc40ba817b6a2d907484b1e1500197ceeafe Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 12 Jan 2025 19:35:56 +0300 Subject: External audiotrack support This works as voice over if video also has audio, changing video volume to 0.3. Also improve autoplay by playing videos muted and unmute on first page click. There is no mute if you use Firefox and allow autoplay on page (navigator.getAutoplayPolicy check). --- src/Types.hx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Types.hx') diff --git a/src/Types.hx b/src/Types.hx index 0e89b85..8567f7b 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -13,6 +13,7 @@ typedef VideoData = { var ?title:String; var ?url:String; var ?subs:String; + var ?voiceOverTrack:String; var ?isIframe:Bool; } @@ -106,6 +107,7 @@ typedef VideoItem = { var author:String; var duration:Float; var ?subs:String; + var ?voiceOverTrack:String; var isTemp:Bool; var isIframe:Bool; } @@ -118,6 +120,7 @@ private class VideoItemTools { author: item.author, duration: item.duration, subs: item.subs, + voiceOverTrack: item.voiceOverTrack, isTemp: item.isTemp, isIframe: item.isIframe }; -- cgit v1.2.3