Google Cast BreakClip mime-type "application/x-mpegURL" error

312 views
Skip to first unread message

ABDELKADER DIB

unread,
Oct 18, 2022, 7:54:25 AM10/18/22
to Interactive Media Ads SDK

Hello,


I am getting this error on my Cast Receiver App when i am trying to add Ad Breaks with a VMAP Ad URL. I tested with the doubleclick ad server. When the VAST INLINE reponse from the ad server provides a MediaFile with the mime-type "application/x-mpegURL", the Cast SDK throws and error 104. Find below some logs :

app.js:1433 MediaCast.onPlayerLoadComplete app.js:1433 sendStreamInformation: {"version":1,"action":"stream_information","duration":2108} cast_receiver_framework.js:116 [ 6.103s] [cast.framework.media.util] cannot guess mime type from given contenId/Type. Assume that this is video/mp4 th @ cast_receiver_framework.js:116 2app.js:1433 Media Manager MEDIA STATUS app.js:1433 MediaCast.onLoadStart app.js:1433 MediaCast.setState LOAD app.js:454 ---> STATE :: LOAD app.js:1433 MediaCast.isMediaState app.js:1433 MediaCast.clearTimerState cast_receiver_framework.js:116 [ 6.219s] [StitchingPlayer] player event: break clip error cast_receiver_framework.js:116 [ 6.224s] [cast.receiver.MediaManager] Sending error message to : app.js:1433 Media Manager ERROR: {"type":"ERROR","detailedErrorCode":104} app.js:1433 MediaCast.onError

It seems to be case sensitive issue. When i try with an other static URL where i can change the type to "application/x-mpegurl", it works. In SDK Cast, i do not find an api to set the list of accepted mime-types.

Have someone already experienced this error ?

Best regards, 

kaderdib

IMA SDK

unread,
Oct 18, 2022, 1:50:27 PM10/18/22
to ab...@bouyguestelecom.fr, ima...@googlegroups.com
Hi Kaderdib,

Thank you for raising this to us. Could you please provide to us a sample project where the issue can be observed? This will greatly help us in our investigation. Kindly provide us via reply privately to author option or using the followings steps below.
 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002fb77dQAA&entry.80707362=00154117

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.



Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2fb77d:ref

ABDELKADER DIB

unread,
Oct 19, 2022, 3:13:59 AM10/19/22
to Interactive Media Ads SDK
Hi Teejay Wennie,

You can observe this issu with this Google Cast Sample : https://github.com/googlecast/CastReceiver
addBreaks with a VMAP URL :

function addBreakToMedia(mediaInformation) {
  mediaInformation.vmapAdsRequest = {
    adTagUrl: 'https://castsample.com/vmap?rand=' + Math.floor(Math.random()* 10000)
  };
}

On the VMAP URL side, in the last VAST Inline reponse, you have to set only mediaFiles with the type "application/x-mpegURL".

Best regards,
Kaderdib

IMA SDK

unread,
Oct 19, 2022, 11:50:24 AM10/19/22
to ab...@bouyguestelecom.fr, ima...@googlegroups.com
Hi Kaderdib,

Thank you for getting back to us. I'll be flagging this to a wider team for further investigation. I'll update this thread the soonest the team share their feedback.

IMA SDK

unread,
Oct 24, 2022, 8:46:38 AM10/24/22
to ima...@googlegroups.com, ab...@bouyguestelecom.fr
Hi Kaderdib,

It looks like you are using the Cast Application Framework's Ad Breaks feature in your Cast receiver. Unfortunately, while that functionality performs a similar task to the IMA SDK, it is a different code base, which is managed by the Cast team.

To file an issue with the Cast team, you can use the support link in the Cast Developer Console.

Thanks,

Greg Schoppe

ABDELKADER DIB

unread,
Oct 24, 2022, 9:03:46 AM10/24/22
to Interactive Media Ads SDK
Hi Greg,

Thank you for this feedback. 
Yes, we use the adBreaks feature of the cast receiver.
We will ask the cast team.

Best regards,
kaderdib

Reply all
Reply to author
Forward
0 new messages