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.8: Only sound with VideoTexture when using HLS/m3u8 (works with Babylon.js)

See original GitHub issue

Describe the bug

VideoTexture displays black with .m3u8 stream on iOS 14.8. Sound is working. Same device with similar webGL example in Babylon isn’t broken.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://tis0u.csb.app/
  2. Click to start playing video
  3. Audio plays, but no image appears on cube

A similar example in Babylon can be found here and works on the same device: https://www.babylonjs-playground.com/#9FSDC7#49

Code

https://codesandbox.io/s/cranky-mountain-tis0u?file=/src/index.js

Live example

https://tis0u.csb.app/

Expected behavior

Both audio and video should play on the cube

Fails on:

  • Device: iPhone 8
  • OS: 14.8
  • Browser: Safari
  • Three.js version: r133

Tested and works on:

  • OSX Chrome
  • OSX Safari
  • Android Chrome

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TheAwesome98-Realcommented, Oct 29, 2021

I’ve got an iPhone 6S running iOS 14.0.1, and it plays audio, and no video. My desktop plays both fine.

Can you test this example, also? https://www.babylonjs-playground.com/#9FSDC7#49

Same result as the last one.

0reactions
mrdoobcommented, Nov 13, 2021

Closing for now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

VideoTexture Bug when adding a HLS Stream on Iphone 12
The Audio is working but and in fullscreen, the video seems to play but when looking at the texture there is nothing displayed....
Read more >
Video Texture with Alpha and Apple Device Issues - Questions
Here is the playground displaying the video texture with alpha. This playground bear is shown with alpha in GoogleChrome, but with a black ......
Read more >
Is there a way to spatialize the audio in HLS/m3u8? - Questions
I tried to use HLS to construct a video element from m3u8, then create a videoTexture and Sound obj from the video element...
Read more >
Spatial Sound Sourced from A Video Texture File - Questions
I believe audio textures are handled at DOM natively in not in engine, so was thinking probably not, but was not 100% sure....
Read more >
Sound issues on iOS - Questions - Babylon.js Forum
The issue is still there. Tested on iPhone 11 pro, iOS 14.3, neither Safari or Chrome works. The sound will not be OK...
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