Git Product home page Git Product logo

hls_audio_player_example's Introduction

Hits

HLS stream generator

This example presents a simple variant how to generate an HLS stream. Simple playback of the playlist generated on the m3u8 server.

This example does not include the ability to rewind, switch to the next track, etc.

Examples are presented using the next tags: audio, video and hls.js library and Bitmovin player.

Node.js required to start the app.

How to start

  1. yarn install or npm install
  2. yarn start or npm run start - start a project on localhost:5001

Project structure

  1. /sources - original mp3 files

  2. /chunks - audio files after ffmpeg decoding

  3. /utils - instruments for generate /chunks and create ./chunks.json

    3.1. mp3ToHLSChunks.js - mp3 to HLS

    3.2. splitChunksIntoGroups.js - creating data structure for manipulating data about chunks

  4. /web_hls - audio player examples

Examples

  1. HTML5 audio tag (macOS/iOS/Android) - http://localhost:5001/audio.html
  2. HTML5 video tag (macOS/iOS/Android) - http://localhost:5001/video.html
  3. hls.js library - http://localhost:5001/hlsjs.html
  4. Bitmovin player - http://localhost:5001/bit.html

hls_audio_player_example's People

Contributors

dependabot[bot] avatar dipiash avatar

Stargazers

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

Watchers

 avatar  avatar

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.