question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot set position when playing mp4 [Android]

See original GitHub issue

Summary

Setting the position on an mp4 file that is playing doesn’t work. No error is thrown. The bug only appears on Android. We caught the bug in our project which is using the bare workflow on SDK 44, but it’s reproducible in snacks too.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

44

Environment

expo-env-info 1.0.3 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node Yarn: 1.22.15 - ~/.yarn/bin/yarn npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8512546 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild npmPackages: expo: ~44.0.4 => 44.0.6 react: 17.0.2 => 17.0.2 react-dom: 17.0.1 => 17.0.1 react-native: 0.66.4 => 0.66.4 npmGlobalPackages: expo-cli: 5.0.3 Expo Workflow: bare

Reproducible demo

https://snack.expo.dev/@insats/expo-av-mp4-position-bug-android

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hirbodcommented, May 13, 2022

It is definitely a bug. I tested it and can confirm it

0reactions
github-actions[bot]commented, Nov 19, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MediaPlayer.seekTo() not seeking to position on Android
One of the reasons why Android is not able to do seekTo is because of strange encoding of the videos. For example in...
Read more >
Can't play MP4 video in Android - MSDN - Microsoft
Hi. I am trying to play a video in my application. I placed my video "Dice65.mpg" in Android /Resources/raw directory.
Read more >
MediaPlayer overview - Android Developers
One of the most important components of the media framework is the MediaPlayer class. An object of this class can fetch, decode, and...
Read more >
VideoView Tutorial With Example In Android Studio
In this step we open MainActivity and add the code to initiate the video view and create an object of MediaController to control...
Read more >
Can you play fragmented mp4? · Issue #6782 - GitHub
Hello, I'm trying to play a fragmented mp4 file on my player. This is how I set the source: File fragmentedFile = new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found