Giter VIP home page Giter VIP logo

media-elements's Introduction

media-elements

A collection of HTMLMediaElement compatible elements and add-ons.

Name Description
custom-media-element A custom element for extending the native elements <audio> or <video>.
media-tracks Polyfill audio and video tracks with renditions.
castable-video Cast your video element to the big screen with ease!
<mux-player>โ†— The Mux video player custom element.
<mux-video>โ†— The Mux video element w/ hls.js and Mux data built-in.
<hls-video> A custom video element for hls.js.
<dash-video> A custom video element for dash.js.
<shaka-video> A custom video element for Shaka Player.
<youtube-video> A custom video element for YouTube player.
<vimeo-video> A custom video element for Vimeo player.
<videojs-video> A custom video element for Video.js.
<spotify-audio> A custom audio element for Spotify player.
<wistia-video> A custom video element for Wistia player.
<jwplayer-video> A custom video element for JW Player.
<cloudflare-video> A custom video element for Cloudflare Stream.

media-elements's People

Contributors

cjpillsbury avatar github-actions[bot] avatar luwes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

media-elements's Issues

[Vimeo] Support unlisted/private Vimeo URLs

Hi!

Would it be possible to make this support private or unlisted Vimeo videos? Unfortunately, the video element does not assemble the link well when embedding it.

Example: https://vimeo.com/968881052/2acf67443a

I quickly put together a regex which, in principle, extracts the private Vimeo video id well.

const MATCH_SRC = vimeo\.com\/(?:video\/)?(\d+(?:\/[\w-]+)?);

Allow fine-tuning hls.js configuration

hls.js accepts a bunch of different configuration parameters which can be used to fine-tune the player's performance and behaviors: https://github.com/video-dev/hls.js/blob/master/docs/API.md#fine-tuning.

hls-video-element owns the Hls instance and does not provide a way to inject additional configuration parameters: https://github.com/muxinc/media-elements/blob/main/packages/hls-video-element/hls-video-element.js#L45.

Would it be possible to add this as a feature?

[HLS] Issue with video playback via Airplay

Description of the issue

When trying to use Airplay on an iPhone, the function button available, but there is no video stream transmission to the receiving device, only the audio stream is sent. When playing full screen on iPhone, the native Airplay icon is also missing.

Steps to reproduce

  1. Open HLS Video example.
  2. Add the Airplay tag to the example code.
<media-controller>
  <hls-video
    src="https://stream.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg.m3u8"
    slot="media"
    crossorigin
    muted
  ></hls-video>
  <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
  <media-control-bar>
    <media-play-button></media-play-button>
    <media-seek-backward-button></media-seek-backward-button>
    <media-seek-forward-button ></media-seek-forward-button>
    <media-mute-button></media-mute-button>
    <media-volume-range></media-volume-range>
    <media-time-range></media-time-range>
    <media-time-display showduration remaining></media-time-display>
    <media-playback-rate-button></media-playback-rate-button>
    <media-fullscreen-button></media-fullscreen-button>
    <media-airplay-button></media-airplay-button>
  </media-control-bar>
</media-controller>
  1. Click the Airplay button and select the device receiving the audio and video stream.
  1. Start playing the video.

Expected behavior

Audio and video are played on the device selected in the Airplay menu.

Actual behavior

Only audio is played on the device selected in the Airplay menu, video continue playing on the mobile.

System information

  • media-chrome version: 3.2.2
  • hls-video-element version: 1.2.2
  • iOS: 17.4.1 / 17.5

Allow supplying extra parameters to the YouTube element

const params = {
// ?controls=true is enabled by default in the iframe
controls: attrs.controls === '' ? null : 0,
autoplay: attrs.autoplay,
loop: attrs.loop,
mute: attrs.muted,
playsinline: attrs.playsinline,
preload: attrs.preload ?? 'metadata',
// origin: globalThis.location?.origin,
enablejsapi: 1,
showinfo: 0,
rel: 0,
iv_load_policy: 3,
modestbranding: 1,
};

According to this page:
https://developers.google.com/youtube/player_parameters

The YouTube embed supports multiple parameters but they can not be passed using this package.

Personally I am missing start, end and cc_load_policy

Old issue

muxinc/youtube-video-element#26

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.