IMA SDK tvOS v3.5.0 - Stream initialization failed (HTTP 404 in error description)

168 views
Skip to first unread message

Mirek Alcer

unread,
Sep 4, 2017, 11:40:54 AM9/4/17
to Interactive Media Ads SDK
Hi,

i am using IMA SDK TVOS v3.5.0. I am trying to simply request non-live stream advertisement by using 

streamRequest = IMAVODStreamRequest(contentSourceID: adsContentSourceID, videoID: adsVideoID)    
...
adsStreamManager
?.requestStream(streamRequest!)


I tested it with adsContentSourceID=4285 and adsVideoID=0_r6ci3aq2, but in IMAStreamManagerDelegate method for handling errors i received some HTTP 404. If I test it with IDs from BasicExample, code works OK. So my question is :


1. What does this error mean, what is (or at least can be) its cause ?

2. I understand this is from some internal SDK request. Is there any way to log (print) this request ?

3. Is there source code available for tvOS version of IMA SDK ?


To put there full info, I am also putting printed error.debugDescription value ...


"Optional(Error Domain=IMAHttpError Code=404 \"Stream initialization failed: \n<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=device-width\">\n  <title>Error 404 (Not Found)!!1</title>\n  <style>\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n  </style>\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n  <p><b>404.</b> <ins>That’s an error.</ins>\n  <p>  <ins>That’s all we know.</ins>\n\" UserInfo={NSLocalizedDescription=Stream initialization failed: \n<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=device-width\">\n  <title>Error 404 (Not Found)!!1</title>\n  <style>\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n  </style>\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n  <p><b>404.</b> <ins>That’s an error.</ins>\n  <p>  <ins>That’s all we know.</ins>\n})"

Joshua Lagonera (IMA SDK Team)

unread,
Sep 5, 2017, 2:35:54 AM9/5/17
to Interactive Media Ads SDK
Hi there,

Are you using any third party SDK? Do note that the IMA SDK does not officially support tvOS, so we would not be able to guarantee that it will be working properly.

Regards,
Joshua Lagonera
IMA SDK Team

Mirek Alcer

unread,
Sep 5, 2017, 3:57:10 AM9/5/17
to Interactive Media Ads SDK
Hello Joshua,

I am not sure what do You mean by third party SDK. I am using latest version of IMA SDK for tvOS which is available here (according release history, its version 3.5.0)  https://developers.google.com/interactive-media-ads/docs/sdks/tvos/download .

I understand there is no guarantee, but I as am very limited to diagnose them as available SDK is is distributed in form of tvOS framework, any help would be most appreciated.

Best Regards
   Miroslav Alcer

Dne úterý 5. září 2017 8:35:54 UTC+2 Joshua Lagonera (IMA SDK Team) napsal(a):

Chris Feldman (IMA SDK Team)

unread,
Sep 5, 2017, 3:03:17 PM9/5/17
to Interactive Media Ads SDK
Hi Mirek,

I think there was some confusion here. Our client-side SDK does not support tvOS, but our DAI SDK does. I should be able to provide some guidance:

1. What does this error mean, what is (or at least can be) its cause ?
The 404 error that you're seeing is a "Stream initialization failed" error. Given that it is working with the sample stream from the BasicExample, this is likely an issue with your stream configuration. I would recommend contacting your Technical Account Manager to ensure that your stream is set up properly.

2. I understand this is from some internal SDK request. Is there any way to log (print) this request ?
The DFP documentation for DAI outlines the process for debugging a DAI stream. The SDK also has a debug mode that will increase the SDK log output.
 
3. Is there source code available for tvOS version of IMA SDK ?
We do not make the SDK source code available.

Regards,
Chris Feldman
IMA SDK Team 
Reply all
Reply to author
Forward
0 new messages