Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for embed an external HLS video #298

Closed
mattsqd opened this issue Sep 19, 2024 · 6 comments
Closed

Add support for embed an external HLS video #298

mattsqd opened this issue Sep 19, 2024 · 6 comments
Labels
Drupal Requires integration from the Drupal side. enhancement New feature or request

Comments

@mattsqd
Copy link
Collaborator

mattsqd commented Sep 19, 2024

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 mattsqd added the Drupal Requires integration from the Drupal side. label Sep 19, 2024
@mattsqd
Copy link
Collaborator Author

mattsqd commented Sep 19, 2024

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

@mejiaj
Copy link
Collaborator

mejiaj commented Sep 20, 2024

@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 mattsqd added the enhancement New feature or request label Sep 20, 2024
@mattsqd
Copy link
Collaborator Author

mattsqd commented Sep 20, 2024

@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
Copy link
Collaborator

mejiaj commented Sep 20, 2024

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

The top two formats are:

  • MPEG-DASH
  • HLS

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
Copy link
Collaborator Author

mattsqd commented Sep 20, 2024

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

jlfranklin added a commit that referenced this issue Nov 14, 2024
@jlfranklin
Copy link
Collaborator

jlfranklin commented Nov 14, 2024

We're using HLS because it's supported by AWS MediaLive and allows for "live" streaming. That is, no matter when you start watching the stream, you'll be watching the same point (plus or minus about 6 seconds) as everyone else.

HLS supports multiple streams at different sizes and bitrates. We have four defined: 240p30, 480p30, 720p30 and 1080p30. The player will automatically switch streams based on the screen size and network lag. They're all MP4 (H264) in the bitstream itself.

Safari is the only browser that supports HLS natively. The VideoJS player bridges the gap for other players.

mattsqd added a commit that referenced this issue Nov 22, 2024
mattsqd added a commit that referenced this issue Nov 22, 2024
BSD fixes #298: Add Media Remote HLS and Media Remote modules; add a new Media Type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Drupal Requires integration from the Drupal side. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants