Both the title and question body of Stack Overflow question "How to download a video from an M3U8 file" ask how to download a M3U8 video based on a local file.
How to download a video from an M3U8 file
I have an M3U8 file saved locally.
I want to download video file from the above file. I have googled a lot and found M3U8 parser. But it did't help me.
I have attempted to download the video using the following code, but it always returns nil.
NSString *str = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"1" ofType:@"m3u8"] encoding:NSUTF8StringEncoding error:nil]; M3U8SegmentInfoList *list= [M3U8Parser m3u8SegmentInfoListFromPlanString:str baseURL:[NSURL URLWithString:@"http://hls.ted.com/talks/2238.m3u8?sponsor=Ripple"]]; NSLog(@"%@",list);
How can I download this video?
From the question text and title, it doesn't look like there's any constraints on what type of solution is being sought. However, based on the question's tags (ios, objective-c), it seems as though the asker is specifically attempting to download the video on an iOS mobile device using Objective-C. However, none of the answers work on an iOS mobile device, or use Objective-C.
What should be done with old questions like this with multiple upvoted answers that address the question actually asked, but which ignore the constraints suggested by the question tags?
Should the asker's apparent intent be thrown away and the tags removed, matching the question to the answers? Should the question be updated to make it clear it's looking for iOS/Objective-C answers, thus invalidating the answers? Should it be left as is, with an implication that the tags are more about the approach the user took, rather than a request for a certain type of answer?