Hi All,
I have a http stream to view on apple tv. This is a snippet of the code
NSURL *url = [NSURL URLWithString:@"
http://192.168.0.135/web/stream.m3u?ref=1%3A0%3A1%3A266%3A200%3A1D%3AEEEE0000%3A0%3A0%3A0%3A&name=MTV8"
UIView *view = self.view;
AVPlayerViewController *playerViewController = [[AVPlayerViewController alloc] init];
playerViewController.player = [AVPlayer playerWithURL:url];
self.avPlayerViewcontroller = playerViewController;
[self resizePlayerToViewSize];
[view addSubview:playerViewController.view];
view.autoresizesSubviews = TRUE;the HTTP stream has been validated using the command line tool
mediastreamvalidator -V -t 30 -d atv "http:/
1%3A0%3A1%3A266%3A200%3A1D%3AEEEE0000%3A0%3A0%3A0%3A&name=MTV8"
mediastreamvalidator: Beta Version 1.1(150608)
User agent: AppleCoreMedia/1.0.0.12A365b (Apple TV; U; CPU OS 8_0 like Mac OS X; en_us)
Timeout: 30 second(s)
Validating master playlist http:/
Sep 26 2015 09:32:04.676: Validation starting: /1:0:1:266:200:1D:EEEE0000:0:0:0:
Sep 26 2015 09:32:04.676: Download requested: /1:0:1:266:200:1D:EEEE0000:0:0:0:
Segment processing interrupted: http://192.168.0.135/web/stream.m3u?ref=1%3A0%3A1%3A266%3A200%3A1D%3AEEEE0000%3A0%3A0%3A0%3A&name=MTV8
--------------------------------------------------------------------------------
http://192.168.0.135/web/stream.m3u?ref=1%3A0%3A1%3A266%3A200%3A1D%3AEEEE0000%3A0%3A0%3A0%3A&name=MTV8
--------------------------------------------------------------------------------
Playlist Syntax:
Warning: (-12646:0) Illegal MIME type
--> Detail: MIME type: application/text
Warning: (0:-12268) Unknown tag in playlist
--> Line: #EXTVLCOPT--http-reconnect=true program=614
Warning: (-12646:-12264) Negative number in EXTINF
--> Line: #EXTINF:-1,MTV8
Warning: (0:-12264) extra characters at end of line
--> Line: #EXTINF:-1,MTV8
Warning: (-12646:-12311) Stream type unrecognized
Processed 1 out of 1 segments: OKso I assume that the stream is ok.
The app open the black player view, a wheel is spinning than stop.
Any idea?