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:
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,
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.
IMA SDK Team |