Hi maciform.
I tried both calling presentStreamForChannelNamed after setting the view hierarchy I use on the application and also when there’s no view set already (just on “application” function in application delegate class) with no result.
I tried also a even easier test making a new project in Xcode using single view application template, and calling presentStreamForChannelNamed on the viewDidLoad function inside ViewController.m file, with no result aswell.
Anyway I noticed in your answer (modal view controller with a player) that I wouldn’t be able really to embed the viewer in my application the way I look for, that is, overprinting some game interface on the video in order to make it interactive (interactive in gameplay sense, making game actions related to the content of the video).
While trying to achieve it in a different way I noticed that embedding the UIWebView with the parameters “mediaPlaybackRequiresUserAction = NO” and “allowsInlineMediaPlayback = YES” and opening the URL “http://twitch.tv/{USER_ID}/hls” enables me to draw custom user interface with responsive control on top of the video the way I wanted. Is there any practical difference compared to the presentStreamForChannelNamed function?
I wanted to ask you also if there’s any legal/ToS problem about placing custom user interface in front of the video playback (for instance, it’s ok to have items unintentionally masking out part of the commercials when they appear).
Thank you very much.