No PAUSED callback from IMA SDK in DAI

46 views
Skip to first unread message

Vishnu Ch

unread,
Nov 8, 2024, 5:58:05 AMNov 8
to Interactive Media Ads SDK
Hey,

I have tested using the BasicExample sample app for DAI right from the latest release going back to 3.18.x. 
None of them seem to be sending the PAUSED event to the attached listener's `onAdEvent` method. The same seems to be working for CSAI.

Can you please let me know if this is a known limitation from IMA, or a bug from my end? If it is the former, I would really appreciate if this can be called out somewhere on the dev website.

Thanks!

IMA SDK

unread,
Nov 8, 2024, 7:45:55 AMNov 8
to chvis...@gmail.com, ima...@googlegroups.com
Hi Vishnu,

Thank you for contacting IMA SDK Support Team.

I've raised this concern to the wider team and will intimate you once i get any update on this. Meanwhile, your patience is important.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGioq:ref" (ADR-00274821)

Thanks,
 
Google Logo IMA SDK Team


IMA SDK

unread,
Nov 25, 2024, 5:58:22 PMNov 25
to ima...@googlegroups.com, chvis...@gmail.com
Hi Vishnu,

I would recommend to use IMAVideoDisplayDelegate for pause and play the ads.
Refer below code snippet for your reference.
class ViewController: UIViewController, IMAAdsLoaderDelegate, IMAStreamManagerDelegate, IMAVideoDisplayDelegate {

************************************************************************************
    var imaVideoDisplay = IMAAVPlayerVideoDisplay()
    private var isPlaying = Bool() {
        didSet {
            if isPlaying {
                imaVideoDisplay.play()
                self.playButton.isSelected = true
            } else {
                imaVideoDisplay.pause()
                self.playButton.isSelected = false
            }
        }
    }

  func requestStream() {
        imaVideoDisplay = IMAAVPlayerVideoDisplay(avPlayer: contentPlayer!)
        imaVideoDisplay.delegate = self
************************************************************************************
}
    
    func videoDisplayDidPause(_ videoDisplay: any IMAVideoDisplay) {/*  This will fire when pausing through imaVideoDisplay*/}
    
    func videoDisplayDidResume(_ videoDisplay: any IMAVideoDisplay) {/*This will fire when resuming through imaVideoDisplay*/}

Thanks
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGioq:ref" (ADR-00274821)

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Reply all
Reply to author
Forward
0 new messages