Skip to content

Demonstration of the HLS video WebGL iOS 11 Problem

Notifications You must be signed in to change notification settings

VRagments/iOS11webGL

Repository files navigation

Problem playing HLS Video in WegGL on iOS 11

Initial ThreeJS Thread: ThreeJS iOS WebGL HLS not working

Working setup for iOS 10

To get HLS video streaming to WebGL working on iOS 10 these 3 steps are necessary:

  • Use custom shader to correct color mapping (in this example see 'video-shader')
  • flipY texture coordinate to correct video rotation (ignored in this example - video will be flipped)
  • use crossOrigin="anonymous" to get videos working (not an issue here since video is on same origin)

Problem in iOS 11

With the method mentioned above the whole canvas is white. The video is loaded since the audio of the video can be heard. But the texture is no longer drawn. If we remove the video-shader component the whole texture area will be black instead of white with the other symptoms being the same.

Run example

Start a webserver inside the root folder.

python -m SimpleHTTPServer

Navigate to this address and test video playback.

The video will be played properly on:

  • macOS Safari
  • Android Chrome

The video won't be played properly (although it should be) on:

  • iOS Safari
  • iOS Chrome
  • iOS Firefox

About

Demonstration of the HLS video WebGL iOS 11 Problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages