diff options
| author | RblSb <msrblsb@gmail.com> | 2025-01-12 19:35:56 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-01-12 22:35:22 +0300 |
| commit | f84fdc40ba817b6a2d907484b1e1500197ceeafe (patch) | |
| tree | 73a5b81e082d0ac1741c24742db12e6c2bd54249 /src/Types.hx | |
| parent | 25b7ecb45d43018235c6a8eb5b4ce833f2dec668 (diff) | |
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).
Diffstat (limited to 'src/Types.hx')
| -rw-r--r-- | src/Types.hx | 3 |
1 files changed, 3 insertions, 0 deletions
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 }; |
