AlexAplin / nndownload

Download and process links from Niconico (nicovideo.jp)
MIT License
214 stars 28 forks source link

Stream from official Niconama broadcast #10

Closed AlexAplin closed 6 years ago

AlexAplin commented 6 years ago

Easy enough to get the RTMP tokens with the player API, e.g. http://watch.live.nicovideo.jp/api/getplayerstatus?v=lv305524399. Official and user broadcasts are different. We could also take the streamlink/streamlink approach for live broadcasts and launch a player directly after. For region locked streams, the region must match to request the API, but the RTMP link can be used in outside regions.

AlexAplin commented 6 years ago

We'll print the result to file for now and add VLC bindings later if there's a reliable way to do it.