• Content Count

  • Joined

  • Last visited

Everything posted by jan.huus

  1. I'm using pixi.js 4.8.8 and getting the cross-origin problem trying to load a webm video. I've read the other posts on this issue, but can't resolve it. I did set videoElement.crossOrigin = 'anonymous' and I pass true as the cross-origin parameter to PIXI.Texture.fromVideo. See attachment for details. What am I doing wrong? The webm plays fine if I just paste the URL into Chrome, so it should be accessible. PlayWebm.html
  2. I looked at those two posts but still haven't been able to figure it out. Simple example anyone?
  3. I downloaded https://pixijs.io/examples/#/sprite/video.js and of course it worked fine. I'd like to play an m3u8 though, such as https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8. I tried modifying the texture creation in a few different ways: const texture = PIXI.Texture.from('https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8'); const texture = PIXI.VideoBaseTexture.fromUrl('https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8'); const texture = PIXI.VideoBaseTexture.fromUrl({ src: 'https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8', mime: 'application/vnd.apple.mpegurl' }); None of these worked though (using Chrome in Windows), so how should I modify the sample program to get it to play this m3u8?