I am developing a video player in Swift using AVPlayer
. I need to add cuepoints
to show ads at certain times.
Currently my player can play PRE
, MID
and POST
type videos using the IMA SDK
.
Could someone give me an example of how to implement the cuepoint functionality?
I have tried to use IMACuepoint
using the IOS IMA SDK
documentation as a reference (https://developers.google.com/interactive-media-ads/docs/sdks/ios/client-side/reference/Classes/IMACuepoint) without success. I think it is not very clear.
I also tried to launch an ad when the video time coincides with the cuepoint time using an observer
, but the player crashed.
Thank you!!
Javier Núñez León is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.