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.

[iOS 14] Video assets does not work

See original GitHub issue

🐛 Bug Report

Wait for iOS 14 GM and see if this is still an issue. This bug might be premature as it’s has been spotted in iOS 14 Beta 5.

Summary of Issue

Local video assets does not work:

  1. in test-suite/MediaLibrary the file require('../assets/big_buck_bunny.mp4') is being loaded and fails on the line https://github.com/expo/expo/blob/581067249dbb121aa3a74221d97cd9c2643b4ceb/apps/test-suite/tests/MediaLibrary.js#L65 because for some unknown reason MediaLibrary.createAssetAsync that tries to create a video asset from the locally loaded file ends up with the The operation couldn’t be completed. (Cocoa error -1.) error in the file: https://github.com/expo/expo/blob/581067249dbb121aa3a74221d97cd9c2643b4ceb/packages/expo-media-library/ios/EXMediaLibrary/EXMediaLibrary.m#L151-L165

  2. in test-suite/Video some tests that are waiting for the <Video /> component to be mounted and thus fire onReadyForDisplay callback are failing with timeout, because this event is not being called whenever source = someLocalFile.

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

Environment:

  Expo CLI 3.24.2 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
      Yarn: 1.22.4 - ~/.nvm/versions/node/v12.16.1/bin/yarn
      npm: 6.14.8 - ~/.nvm/versions/node/v12.16.1/bin/npm
    IDEs:
      Android Studio: 4.0 AI-193.6911.18.40.6626763
      Xcode: 11.6/11E708 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~39.0.0 => 39.0.0
      react-native: 0.63.2 => 0.63.2
    npmGlobalPackages:
      expo-cli: 3.24.2

Phone:

iOS version: OS 14 Beta 5
Model: iPhone SE 2

Reproducible Demo

  1. Open test-suite/MediaLibrary and see all tests failing, because of

  2. Open test-suite/Video and see some of the test that are waiting for fullscreen events are failing.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dewnullcommented, Sep 18, 2020

I set shouldPlay and it starts to play the video. The issue seems to be related to #2144

0reactions
github-actions[bot]commented, Feb 17, 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

How to Fix Unable to Load Video iPhone Photos in 2023
Top 7 Methods to Fix Unable to Load Video iPhone · Method 1: Check iPhone's Storage When Videos Not Loading on iPhone ·...
Read more >
I have no video playback with iOS 13 beta. - Apple Developer
I've tried playing back videos on my iPhone X running iOS 13 beta and have no video output. Audio is fine, but all...
Read more >
How To Fix It If YouTube Won't Play Videos On iPhone 14 Pro
Restart YouTube. The first thing you have to do is to close the app and re-open it. · Make sure you have an...
Read more >
Fix 'unable to load video' error on iPhone, iPad
High quality videos may not load and show error if there is no space on your iPhone. Check your iOS device, if it...
Read more >
Apple Confirms Serious New Problems For iPhone 14 Buyers
The problem marks the latest in a number of iPhone 14/iOS 16 launch issues, including activation problems on new phones and a litany...
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