I am developing an application to play Niconico videos.
Using Alamofire
Ranking acquisition → Video ID acquisition → Video URL acquisition → Video page up to HEAD
I gave the video URL to AVPlayer, but it doesn't play
How can I stream it?
Thank you for your cooperation
ios objective-c iphone
Niconico video files can be retrieved via RTSP over HTTP.
When I searched iOS RTSP, there were several player libraries, so it might be less troublesome to find RTSP-enabled players than to implement themselves.
However, there are three types of Niconico video, mp4/flv/swf, and if the format is not supported, conversion processing is required. (The video type can be determined by flashvars.movie_type)
Niconico videos should be streamed in flv format.
Therefore, instead of getting the URL of the video page, you need to get the video number that starts with sm, nm, etc., and get the flv video information in xml from the web API and parse it.
For detailed API specifications, please refer to the URL below.
http://dic.nicovideo.jp/a/%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BBapi
771 GDB gets version error when attempting to debug with the Presense SDK (IDE)
776 M2 Mac fails to install rbenv install 3.1.3 due to errors
856 Uncaught (inpromise) Error on Electron: An object could not be cloned
1235 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2025 OneMinuteCode. All rights reserved.