http stream not working

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: OK


so I assume that the stream is ok.


The app open the black player view, a wheel is spinning than stop.


Any idea?

using this url...works


https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

how could I check what's wrong with my stream (there are several ios app using the same stream)

Thanks!

Just quoting your notes above:


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


That's quite a few warnings. Also, a negative number associated with an EXTINF tag is very strange. The validator is failing to continue after only a single segment, which also suggests things are not right.


Please visit our streaming landing page at https://developer.apple.com/streaming to compare your playlist manifest with some of the samples provided. Also, please note that we have just released an HLS specification document at the following URL: https://developer.apple.com/services-account/download?path=/iOS/tvOS_beta/tvOS_beta_Software_Installation_Guide.pdf

http stream not working
 
 
Q