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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -