Live streaming video texture

Here’s a demo that streams from a live DASH server into a video texture.

https://www.babylonjs-playground.com/#9FSDC7#13

I just found some German streams. I don’t know what they’re saying but hopefully its nice things

5 Likes

They are talking about a house which is now used as a apple juice production. The operator used to be a systems analyst and wanted to get back into nature… or something in that way. I didn’t listen well to him because my focus layed on the source code… :slight_smile:

2 Likes

DASH streaming doesn’t work on iOS devices so I made a demo using the HLS protocol as well.

I can’t get the playground to work. I’m having problems accessing functions from external scripts. The playground is here https://www.babylonjs-playground.com/#9FSDC7#28

You can see a demo of it here http://preview.punkoffice.com/hlsdemo I’m using the live Al-Jazeera stream and it runs fine on my iPhone too.

I got HLS working! https://www.babylonjs-playground.com/#9FSDC7#42

2 Likes

You on :fire: Rocker! : )

HLS files have .m3u8 extension. There’s a whole bunch of them which are publicly available, like on this list here: https://pastebin.com/HqNd5tU8

There are some restrictions though. If the website is HTTPS then you can only play HTTPS streams. Also some streams cannot be accessed by outside players. Periscope streams are HLS but if you try to access them outside of the Periscope website/app then it’ll say unauthorised access.

Best way to test if the stream is still up is to add an HLS player extension to your Chrome browser, then you can type .m3u8 files in the browser and it’ll play it right there, however, this will work even with private streams like Periscope

2 Likes

Thanks for sharing! It’s really useful. More information on this might be available on free account site.

Loving it :slight_smile:

Updated playground to work with latest Babylon.js https://www.babylonjs-playground.com/#9FSDC7#49

2 Likes

This is fantastic! Any idea on how to get this to work on a 360-Sphere/VideoDome?