GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
127 stars 49 forks source link

Video HLS #1343

Open tjikaljedy opened 1 month ago

tjikaljedy commented 1 month ago

Description

Implements an HTTP Live Streaming client through HLS.js. It relies on HTML5 video and MediaSource Extensions for playback.

It works by transmuxing MPEG-2 Transport Stream and AAC/MP3 streams into ISO BMFF (MP4) fragments. Transmuxing is performed asynchronously using a Web Worker when available in the browser. HLS.js also supports HLS + fmp4, as announced during WWDC2016.

How to use the extension

Pre Installation:

  1. Download hls.js from https://github.com/video-dev/hls.js

  2. modify index.html inside folder gdjs/runtime as following:

  3. Enjoy to use

Player provide separately

image

Checklist

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

hls-video.zip

For sample video (m3u8 format) , use this url https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8

or other m3u8 url

Extension file

httplivestream.json

github-actions[bot] commented 1 month ago

👋 Thanks for your submission! We are kind of confused; Your zip file contained more than one JSON file, and only one extension can be submitted at a time. Please update your original submission post with a new zip file containing only one extension file 🙏

github-actions[bot] commented 1 month ago

👋 Thanks for your submission! We are kind of confused; Your zip file contained more than one JSON file, and only one extension can be submitted at a time. Please update your original submission post with a new zip file containing only one extension file 🙏

tjikaljedy commented 1 month ago

Changed to single json.

4ian commented 1 month ago

Very cool! I think we could simplify the installation by embedding the hls.js file inside the extension.

cc @D8H might be time to give an easy way to add plain JS files (or even, later, TS files) inside extensions?

D8H commented 1 month ago

Changed to single json.

I guess the bot wants the json file in a zip.

tjikaljedy commented 1 month ago

hi all, thx

i would to participate in this loop. hope my contribution can leverage small thing.