mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
chore: bounce up audio position by 2 seconds for initial switch
This commit is contained in:
@@ -71,7 +71,7 @@ export const useAudioTrack = () => {
|
||||
if (selectedAudioTrack && videoStatus.isLoaded) {
|
||||
await videoRef.setIsMutedAsync(true);
|
||||
await audioObject.playAsync();
|
||||
await audioObject.setPositionAsync(videoStatus.positionMillis);
|
||||
await audioObject.setPositionAsync(videoStatus.positionMillis + 2000);
|
||||
} else {
|
||||
await videoRef.setIsMutedAsync(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user