Twitch-M3u8-Module
npm install twitch-m3u8-module
import getM3u8 from "twitch-m3u8-module";
const m3u8 = await getM3u8("twitch")
console.log(m3u8)
//=> ["http://video-weaver.....m3u8", "http://video-weaver.....m3u8", "http://video-weaver.....m3u8"]
Arguments |
Type |
Description |
StreamerID |
string |
Twitch Streamer ID |
import getM3u8 from "twitch-m3u8-module";
const m3u8 = await getM3u8("twitch","1b31jzoa3bjlasd546d6ksrsall8g")
console.log(m3u8)
//=> ["http://video-weaver.....m3u8", "http://video-weaver.....m3u8", "http://video-weaver.....m3u8"]
Arguments |
Type |
Description |
StreamerID |
string |
Twitch Streamer ID |
ClientToken |
string |
Twitch Account Token |
ex) [0] = 1080p60, [1] = 720p60 ....
[
"http://video-weaver.....m3u8",
"http://video-weaver.....m3u8",
"http://video-weaver.....m3u8",
];