Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.16 KB

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