ios - Save live streaming video to document directory -


I want to save the device document listing the video stream to see me running .m3u8 url and offline. I'm not sure the weather is possible.

You can download something like the segment m3u8 file:

  NSString * Result = Zero; NSError * Error = Zero; NSDRAUL * urlToRequest = [NSWR URLWithString: _streamURL]; If (urlToRequest) {result = [NSString stringWithContentsOfURL: urlToRequest Encoding: NSUTF8StringEncoding error: & amp; Error]; }   

The result variable will store the m3u8 file contents.

Use the following code segment for parsing are:

  NSMutableArray * rows = [[Results component Sepretedbistred: @ "\ n"] Mutivcopi] ; In the (line Ansstiing * line) {if ([line rangeOfString: @ "segment"]. Location! = NSNotFound) {NSLog (@ "segment:% @", line); }}    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -