yt-dm-stream-url
v4.1.1
Published
Get the streaming url's from yt & dm
Downloads
44
Maintainers
Readme
yt-dm-stream-url
Node project to get the live m3u8 streaming links from youtube & dailymotion
Installation
Node.js required
npm install yt-dm-stream-url
Usage
Require YouTube channel-id.
Example:
https://www.youtube.com/channel/your_youtube_channel_id
https://www.youtube.com/watch?v=your_youtube_video_id
https://www.dailymotion.com/video/your_dailymotion_video_id
https://www.hungama.com/live-tv/your_hungama_video_id/
Note:
Only supports links given in above formats
import yt from 'yt-dm-stream-url';
// returns .m3u8 link for the live stream
await yt.getStream("https://www.youtube.com/channel/UCiLfeVOBJoAPUbiKxrHBcuw")
.then(data => console.log(data))
OR
await yt.getStream("https://www.hungama.com/live-tv/dil-se/41239464/")
.then(data => console.log(data))
Example output:
'https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1671561211/ei/m6uhY42gMteA4-EPlYu0kAM/ip/223.178.21.214/id/2yj5oU6ZfNM.1/source/yt_live_broadcast/requiressl/yes/hfr/1/playlist_duration/30/manifest_duration/30/maudio/1/vprv/1/go/1/pacing/0/nvgoi/1/keepalive/yes/fexp/24001373,24007246/dover/11/itag/0/playlist_type/DVR/sparams/expire,ei,ip,id,source,requiressl,hfr,playlist_duration,manifest_duration,maudio,vprv,go,itag,playlist_type/sig/AOq0QJ8wRQIhAI4HISSkAiN76lFG62EP0h6nN9rob9jUz2_fz3ADyzNfAiAbi-JOQNbbKVpa8dXiu11lpAM_UadQIsrQv2XVMcUi4Q==/file/index.m3u8'
Contribute
Did you find a bug? Do you have an idea or a feature request? Open an issue!