Note that there are some explanatory texts on larger screens.

plurals
  1. POPlaying HLS (.m3u8) using QTKit in MacOS 10.6.8
    primarykey
    data
    text
    <p>I'm creating an app that supports playing hls files (.m3u8) on a Mac OS environment, and I've just found out that AVFoundation is only available for Mac OS 10.7 onwards. </p> <p>So, I've been left with QTKit. </p> <p>Apple's documentation on HLS says that HLS can be played on Mac OS using AVFoundation and QTKit frameworks. (Well, they used the word 'AND'... and I'm hoping QTKit alone can play m3u8 files --- since QuickTime X player plays them well)</p> <p>Anyways, I've tweaked Apple's MyMediaPlayer sample code to accomodate .m3u8 files. (Sample code can be seen here: <a href="http://developer.apple.com/library/mac/#samplecode/MyMediaPlayer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009203" rel="nofollow">http://developer.apple.com/library/mac/#samplecode/MyMediaPlayer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009203</a>)</p> <p>and here's the QTMovie initWithAttributes code snippet:</p> <pre><code>NSDictionary *attrs = [NSDictionary dictionaryWithObjectsAndKeys: absoluteURL, QTMovieURLAttribute, [NSNumber numberWithBool:YES], QTMovieOpenForPlaybackAttribute , [NSNumber numberWithBool:YES], QTMovieOpenAsyncRequiredAttribute, [NSNumber numberWithBool:YES], QTMovieOpenAsyncOKAttribute, nil]; [self willChangeValueForKey:@"movie"]; mMovie = [[QTMovie alloc] initWithAttributes:attrs error:outError]; [self didChangeValueForKey:@"movie"]; </code></pre> <p>What I'm trying to play is this:</p> <p><strong>prog_index.m3u8</strong> --> which I made using MediaFileSegmenter of Apple.</p> <p>Please tell me if QTKit framework alone can play HLS files. And if it can, what am I doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload