Bixal / bixal-site-drupal

Bixal drupal site
https://www.bixal.com
0 stars 0 forks source link

Add support for embed an external HLS video #298

Open mattsqd opened 1 month ago

mattsqd commented 1 month ago

Will come from https://docs.aws.amazon.com/mediastore/latest/ug/cdns-allowing-cloudfront-to-access-mediastore.html. An example from last year: https://d474nuifpska.cloudfront.net/holiday-special.m3u8 Best case is to allow this as a media type so it can be embedded in the body of any content.

mattsqd commented 1 month ago

https://www.drupal.org/project/videojs seems to support this, but it might only be a local m3u8 file.

mejiaj commented 1 month ago

@mattsqd is the m3u8 format the best (quality/performance) for HLS video?

Thinking of this similar to how we favored WEBP over traditional formats.

mattsqd commented 1 month ago

@mattsqd is the m3u8 format the best (quality/performance) for HLS video?

Thinking of this similar to how we favored WEBP over traditional formats.

I'm not sure, I'm just going based on the previous year's Christmas party stream. This was a request from John Franklin. What is the preferred format for streaming?

mejiaj commented 1 month ago

@mattsqd I found this MDN resource Setting up adaptive streaming media sources - Web media technologies

The top two formats are:

This article Video Streaming Protocols - RTMP vs RTSP vs HLS vs WebRTC vs SRT which is best? has a nice FAQs section at the bottom.


TL;DR Seems like HLS has several encodings like MP4. The extension .m3u8 is the format Apple uses.

I might be better to convert to MP4 or WebM to avoid issues with non-Apple users. It'd also make supporting it in Drupal easier.

mattsqd commented 1 month ago

Thanks for the resources @mejiaj ! I'll pass this along.