Embeded video not playing

11 views
Skip to first unread message

Flutter Dev

unread,
Sep 10, 2024, 5:28:15 PMSep 10
to Interactive Media Ads SDK

We are experiencing an issue with playing videos from Bunny CDN using ExoPlayer in our Android application. Despite following all the provided instructions and ensuring that we have configured all necessary parameters, headers, and settings, the private videos are still not playing in ExoPlayer.

Interestingly, the same videos play without issues using React Player, which suggests that the problem is specific to ExoPlayer.

Here are some details regarding our setup:

  • ExoPlayer Version:2.18.5
  • Error Messages:  Playback error
      com.google.android.exoplayer2.ExoPlaybackException: Source error
          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:223)
          at android.os.HandlerThread.run(HandlerThread.java:67)
      Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403

We have verified that all required parameters and headers are correctly set according to Bunny’s documentation, but ExoPlayer still fails to play the videos. We have also attempted various troubleshooting steps.

Could you please provide guidance or any potential solutions to resolve this issue? If there are specific settings or configurations required for ExoPlayer that may not be covered in the general documentation, your assistance would be greatly appreciated.

here is private video url:- https://vz-4aa86377-b82.b-cdn.net/bcdn_token=PWeYf62CJmqeCTc0PrkHdjD2EF0SCqTabR7JD6-1Iyc&expires=1726053789&token_path=%2F92a87eaa-7b93-4fc1-a83c-59ac60331112%2F/92a87eaa-7b93-4fc1-a83c-59ac60331112/playlist.m3u8



Thank you for your support and assistance.

Best regards,

IMA SDK

unread,
Sep 11, 2024, 8:07:55 AMSep 11
to devflu...@gmail.com, ima...@googlegroups.com

Hi,

Thank you for contacting the IMA SDK support team.

When debugged by running the In the Exoplayer sample application, we found that the base URL “https://vz-4aa86377-b82.b-cdn.net/.........." is Forbidden. A 403 error indicates forbidden where the server is denying you access for some reason (needs a cookie, wrong permissions, etc.). 

When I checked the same in Chrome with the provided URL, the result was 403 Forbidden, and seems like this URL is restricted, and available for Denmark. I hope you are checking from Denmark only.

I would suggest cross-verifying the media URL and replacing it with a valid URL.  If the issue persists even after replacing the provided m3u8 file with the valid URL, contact us again with a valid media URL and VAST details.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vG0iZ:ref" (ADR-00267620)

Thanks,
 
Google Logo IMA SDK Team


Reply all
Reply to author
Forward
0 new messages