hls-server | serving HTTP Live Streaming compatible media streams | Video Utils library
kandi X-RAY | hls-server Summary
kandi X-RAY | hls-server Summary
Middleware for serving HTTP Live Streaming (HLS) compatible media streams.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hls-server
hls-server Key Features
hls-server Examples and Code Snippets
Community Discussions
Trending Discussions on hls-server
QUESTION
I used npm hls-server to setup an hls streaming server on my dev machine. Then i took android sample app and tried adding another video with url that of my localhost. The video plays fine inside the sample app but i am unable to cast it to chromecast. I tried changing mediatype and also setup cors proxy using npm package cors-anywhere.
I used ffmpeg to generate hls playlist and .ts files. Would be great if someone can help out.
...ANSWER
Answered 2018-Feb-27 at 18:58The problem was with my HLS stream. What I did was to use sample receiver app from google and attached debugger to see error code/exceptions. Then i took another video and used ffmpeg to produce hls again which worked out quite fine.
QUESTION
So I created an express server that gets an mp3 file (which is stored locally right now, but will be taken from mongo db later) and uses ffmpeg to make .m3u8 and .ts files. The files are successfully sent to the client and there are no errors while playing it on the client. I used hls.js to play these files in Chrome. But the server still has those files stored locally. Is there any way the server can know when to delete these files that it stored locally? There are a lot of files generated by ffmpeg so I can't just let them stay there forever.
I used the ffmpeg part of code from hls-server github repo.
my server file index.js ...ANSWER
Answered 2018-Dec-06 at 04:38This is what I do in my ffmpeg process:
-hls_list_size 6 -hls_flags delete_segments
That effectively rolls them. It automatically deletes the oldest one when creating a new one.
Now, I might be doing something wrong because I retain more than 6 files, but it certainly is deleting most of them.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hls-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page