Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

expo-av : Player is accessed on the wrong thread (APK only) #10169

Closed
narduzzi opened this issue Sep 13, 2020 · 2 comments
Closed

expo-av : Player is accessed on the wrong thread (APK only) #10169

narduzzi opened this issue Sep 13, 2020 · 2 comments
Labels
Android AV needs validation Issue needs to be validated

Comments

@narduzzi
Copy link

馃悰 Bug Report

Summary of Issue

Hello,

I would like to keep the progress of a video from one screen to the other.
I want the video to play in a screen, and only play the audio of the corresponding video in the second screen.
My solution works fine in development mode, but when I try to build the APK, I run into the following issue:
Player is accessed on the wrong thread.

Environment - output of expo diagnostics & the platform(s) you're targeting

Expo CLI 3.27.3 environment info:
System:
OS: Linux 4.15 Ubuntu 18.04.5 LTS (Bionic Beaver)
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 10.15.3 - /usr/local/bin/node
npm: 6.14.8 - /usr/local/bin/npm
npmPackages:
expo: ~38.0.8 => 38.0.10
react: ~16.11.0 => 16.11.0
react-dom: ~16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
npmGlobalPackages:
expo-cli: 3.27.3
Expo Workflow: managed

Target :
System:
OS: Android 9.0

Reproducible Demo

Code is available in this repository.

Steps to Reproduce

git clone https://github.com/Narduzzi/talk-bug
cd talk-bug/demo-app
npm install
npm start // should work fine at this point

expo build:android 
adb install [build artefact]

Expected Behavior vs Actual Behavior

The sound starts on the first screen, but when going to the video screen, the app crashes with error:
Player is accessed on the wrong thread.

Only happens when compile to APK.

@narduzzi narduzzi added the needs validation Issue needs to be validated label Sep 13, 2020
@narduzzi
Copy link
Author

Any update on this please?

@narduzzi
Copy link
Author

narduzzi commented Oct 7, 2020

expo-av not fully supported for Vue Native. Migrating the project to React-Native solved the bug.

@narduzzi narduzzi closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android AV needs validation Issue needs to be validated
Projects
None yet
Development

No branches or pull requests

2 participants