Questions tagged [hls.js]

hls.js is a JavaScript library which implements an HTTP Live Streaming client

About

hls.js is a JavaScript library which implements an HTTP Live Streaming client. It relies on HTML5 video and MediaSource Extensions for playback.

It works by transmuxing MPEG-2 Transport Stream and AAC/MP3 streams into ISO BMFF (MP4) fragments. This transmuxing could be performed asynchronously using Web Worker if available in the browser. hls.js also supports HLS + fmp4, as announced during WWDC2016.

Links

135 questions
0
votes
1 answer

Use same mediaSource in two videoElement

I would like to know If it is possible to use the same mediaSource in two videoElement instances. My goal is use a m3u8's HLS file with several cameras and two video instances syncronized with different cameras.
0
votes
1 answer

How do I add a personal script to an existing node.js library?

I have a local copy of the hls.js library and I need to include a personal script with custom functions in it. How do I go about adding a new script to the library and how do I use the function written in the new script? Let's say that I want to add…
Marko Nikolov
  • 323
  • 4
  • 11
0
votes
0 answers

Play self generated ts playlist in iOS

I have written a java program that accepts frames from camera using rtsp, creates MPEG2-TS file along with index.m3u8. This ts generation is done by simply adding PATs/PMTs etc. by simple bit level operations(i.e, without using any library like…
0
votes
0 answers

HLS Split and Serve Playlist

I want to split and serve a m3u8 playlist to a hls.js client running in a browser. The playlist is big and split and serve is the only option. When I split and serve till BigBuckBunny_4000_00004.ts as given by the playlist below, movie played till…
sethuv
  • 418
  • 6
  • 22
0
votes
0 answers

Play ts files from browsers in android using hls.js

I have some TS files with index.m3u8 that can be played fairly in VLC and browsers like chrome and firefox in windows 7 (using hls.js). From a android 4.4.2 device, I tried to run the html file,, firefox - it is working fine chrome 36.0 - it is…
0
votes
0 answers

Videogular 2 with HLS (hls.js) on ionic 3 : No video in emulators

I prepared copy of needed files in assets (hls.min.js and videogular2/fonts) I imported hls.min.js and css in index.html I imported modules in my…
0
votes
1 answer

How to handle React life cycle with http live streaming HLS?

I'm using this hls.js player along with React to stream m3u8. I have one component VideoPlayer that sets up the hls.js player. This component has a couple of state properties, like isPlaying and isMuted. I have custom buttons that onClick call…
user1087973
  • 518
  • 1
  • 6
  • 19
0
votes
1 answer

Enable EME in Hls js

Currently I am using hls js with video js and I need to use EME with hls js. Is it possible to use EME with hls js ? https://www.w3.org/TR/encrypted-media/ https://github.com/dailymotion/hls.js/tree/master
0
votes
2 answers

FFmpeg mp4 to m3u8 but audio not working

Command I'm using ffmpeg -y -i video.mp4 -vcodec libx264 -preset superfast -r 25 -vb 240000 -s 426x240 -aspect 1.77 -acodec libfdk_aac -ab 128k -ar 48000 -an -g 30 -r 30 -hls_time 3 -hls_list_size 0 -hls_allow_cache 1 -hls_playlist_type vod…
-1
votes
0 answers

React video player for livestreams

I am building a livestreaming website and I need a video player. My livestreams are from hls/m3u8 files. I am looking for one that has livestream controls (like twitch.tv), such as no video timeline, a play button that brings to live, a auto quality…
-1
votes
1 answer

Hls.js record file

Hello and thanks for reading, I have a Hls stream with an m3u8 playlist. The Video is playing just fine on an Html page with a Video element and https://github.com/video-dev/hls.js But if I download the segments to join them they are only white…
-1
votes
1 answer

How to stream live TS (transport stream) files on HTML player?

I want to stream a transport stream file on a HTML player. Is there a way to implement it? I have tried these following approaches to play the TS file- a) Put it in a video tag: I simply wrote a video tag But it showed me a blank screen. b) I tried…
-1
votes
1 answer

how to use hlsConfig in react-hls-player

I came across https://www.npmjs.com/package/react-hls-player where it is mentioned how to use hls player in reactjs This is sample code i have written but i couldn't figureout how to use hlsConfig object. Can someone help me how and where to use…
Sahil Saxena
  • 83
  • 1
  • 8
-1
votes
2 answers

Streaming saved HLS videos using Nginx or Node

We have to stream stored HLS (.m3u8, not live) files to the clients on local server. Multiple clients requests multiple videos at the same time and the stored m3u8 segments have to be served from the server. I'm seeing two alternatives 1)…
Tarun Voora
  • 1,230
  • 1
  • 17
  • 34
-1
votes
1 answer

How to implement HLS common encryption media

I want to encrypy my HLS media using common encryption. Is there any third party tool can I use ? I could achieve AES 128 encryption from Bento SDK I want to achieve Common encryption for HLS appreciate if someone can help
Chinthaka Devinda
  • 699
  • 3
  • 12
  • 29
1 2 3
8
9