Giter Site home page Giter Site logo

clappr / hlsjs-playback Goto Github PK

View Code? Open in Web Editor NEW
29.0 12.0 19.0 8.4 MB

Clappr HLS Playback based on hls.js

License: BSD 3-Clause "New" or "Revised" License

JavaScript 86.08% Shell 2.78% HTML 8.49% CSS 2.65%
hls-playback clappr hlsjs hls-stream playback-video clappr-plugin

hlsjs-playback's Introduction

Huge changes in the latest version. See 0.4.0 version changelog for more information

jsDelivr hits (npm scoped)


Clappr Monorepo

Look for Clappr and related packages under the /packages directory. Applications like the clappr.io documentation site are under the /apps directory.

Documentation

Visit https://clappr.github.io to view the full documentation.

Run the Development Server

  1. Run yarn install to install all dependencies
  2. Run yarn dev will start the development server.
  3. Visit http://localhost:8080 to view your application.

hlsjs-playback's People

Contributors

andrefilimono avatar ariselseng avatar barbosa avatar bikegriffith avatar davidjb avatar dayvson avatar dependabot[bot] avatar flavioribeiro avatar greenkeeper[bot] avatar greenkeeperio-bot avatar hounvs avatar jhonatangcavalcanti avatar joaopaulovieira avatar kslimani avatar leandromoreira avatar leaofelipe avatar leftees avatar nicholasasimov avatar paluh avatar pedrochamberlain avatar rheber avatar ronag avatar sjlu avatar svanscho avatar tchakabam avatar thiagopnts avatar tjenkinson avatar towerz avatar vagnervjs avatar wahajdar avatar

Stargazers

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

Watchers

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

hlsjs-playback's Issues

update more often with last hlsjs

hi,
That would be great if hls-playback (and so clappr in general) could be up to date with last hlsjs release.
Right now you use 1.2.4 (Oct 1 22) while last is 1.3.5 (2 days ago). There are tons of improvements since...

Thanks

Update hls.js version

Could you please update the Hls.js version to a recent one?

Hls.js v1.5.x has no API changes but brings nice features, like the Managed Media Source Extensions API, which allows using Hls.js on iPhones, which is crucial for our project: P2P video delivery with Clappr.

Ask for integration help.

Hi, thank you for all your efforts.
I was constantly asked for the implementation of custom and standard HlS integration with plyr-react.
Could we get help from your team with our custom integration, I tried on my own for some fit-to-code solutions, but I know that a dedicated team on this idea itself, can be more likely to scale and remain.
I would be happy if we can talk more about possibilities for a custom HLS player from your package integrated with ours to make people happy.

Sorry, I asked it here in issues, I couldn't find the discussion section.

chintan9/plyr-react#688

Exposing hls.js events

Hi,

I would like to create a custom closed caption rendering plugin which works with hls streams. To do so, hls.js offers a property called renderTextTracksNatively which disables native rendering of captions. It also exposes two new events, one of which is called Hls.Events.CUES_PARSED. This event will fire when new captions or subtitle cues are parsed.

Is there a way to expose hls.js event handlers from hlsjs-playback in a similar fashion to how clappr exposes events?

var player = new Clappr.Player({
  source: "http://your.video/here.mp4",
  plugins: [HlsjsPlayback, MyCustomCC],
  playback: {
    hlsjsConfig: { 
      renderTextTracksNatively : false,
    },
  }
});

// inside MyCustomCC plugin
this.listenTo(
  this.core.activePlayback,
  Events.CUES_PARSED,
  this._onCuesParsed
);

Subtitles/ClosedCaptions never loaded for VOD

With the given VOD

https://senvuvod.azureedge.net/pvvodsoc-fl/_definst_/mp4:azrsoc/archives/PV750/2020/2020-06-25/9637_Senate%20sitting%20no.%2027_13-30-41_VL.mp4/playlist.m3u8?audioindex=2

HLSJS.Events.SUBTITLE_TRACK_LOADED is never triggered
HLSJS.Events.SUBTITLE_TRACKS_UPDATED gets triggered

Therefore the closed captions are never loaded. I tried removing this._playbackType === Playback.LIVE from the following code

// Live stream subtitle tracks detection hack (may not immediately available)
if (this._ccTracksUpdated && this._playbackType === Playback.LIVE && this.hasClosedCaptionsTracks)
  this._onSubtitleLoaded()

but the hasClosedCaptionsTrack was still false when it ran. To fix my issue, I added the following to the _onTimeUpdate method

if (this._ccTracksUpdated && this.hasClosedCaptionsTracks)
  this._onSubtitleLoaded();

Is there a better way to do this?

Low latency hls test. (question)

Hi!
To test HLS with low latency, I rebuilt [email protected] using [email protected].
With my ll-hls stream, the delay decreased by almost 30 seconds!
But there is also something strange.
When I compare the latency of my build and the clean one [email protected] or safari hls implementation, my build for some reason loses them 2 seconds.
What do you think in hlsjs-playback could increase the delay?
Any suggestions. Thanks!)

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.