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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expo-av] Fix onReadyForDisplay not emitted for HLS streams/m3u8 files on iOS #9443

Merged
merged 5 commits into from
Jul 29, 2020

Conversation

IjzerenHein
Copy link
Contributor

Why

Fixes #3649. When using an HLS stream (e.g. a m3u8 file) with the <Video> component, onReadyForDisplay is never called because the natural-size cannot be obtained on an asset of type AVURLAsset.

How

  • Use presentationSize as a fallback when AVAssetTrack cannot be used
  • Add test-case to test-suite
  • Add HSL stream entry to NCL for testing purposes

Test Plan

  • Added test-case and verified it passes
  • Tested and debugged locally using NCL

@IjzerenHein IjzerenHein changed the title [expo-av] Fix onReadyForDisplay not emitted for HLS streams/m3u8 files [expo-av] Fix onReadyForDisplay not emitted for HLS streams/m3u8 files on iOS Jul 28, 2020
@github-actions
Copy link
Contributor

Native Component List for this branch is ready

Copy link
Contributor

@bbarthec bbarthec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@IjzerenHein IjzerenHein merged commit 9cc1201 into master Jul 29, 2020
@IjzerenHein IjzerenHein deleted the @hein/expo-av/readyfordisplay-m3u8 branch July 29, 2020 11:41
Jamedjo pushed a commit to Jamedjo/expo that referenced this pull request Feb 4, 2021
…s on iOS (expo#9443)

* [test] Add onReadyForDisplay test for HLS streams

* [expo-av] Fix onReadyForDisplay not emitted on HSL streams

* [test] Update onReadyForDisplay test for HSL streams

* [ncl] Revert test changes

* [expo-av] Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video: onReadyForDisplay never called on iOS if the video format is .m3u8
2 participants