-
Notifications
You must be signed in to change notification settings - Fork 2
fix(InteractiveVideo): Added Player end and pause events and play and resume methods to the Managed Ad View #290
Conversation
… resume methods to the Managed Ad View
adPaused: function() { postMessageToBridge("\(AdEvent.adPaused.rawValue)"); }, | ||
adPlaying: function() { postMessageToBridge("\(AdEvent.adPlaying.rawValue)"); } | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added adPlaying
and adPaused
events for the WebSDK to communicate back up
func adPaused() { | ||
callback?(placementId, .adPaused) | ||
logger.info("Event callback: adPaused for placement \(placementId)") | ||
} | ||
|
||
func adPlaying() { | ||
callback?(placementId, .adPlaying) | ||
logger.info("Event callback: adPlaying for placement \(placementId)") | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exposed hooks in the Native SDK for adPlaying
and adPaused
case adPaused = 9 | ||
case adPlaying = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added cases for adPlaying
and adPaused
these are not breaking changes.
func playVideo() { | ||
webView.evaluateJavaScript("playVideo();") | ||
} | ||
|
||
func pauseVideo() { | ||
webView.evaluateJavaScript("pauseVideo();") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two new methods for playing and pausing a video, these are the subject of our discussions at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
# [8.6.0](v8.5.7...v8.6.0) (2023-04-19) ### Bug Fixes * **Bumper:** calling dismiss on the presenting viewcontroller if one exists and cleaning up the timer ([#292](#292)) ([a88f15c](a88f15c)) * **CI:** Locked in Circle CI macos.x86.medium.gen2 resource class ([#279](#279)) ([8e18233](8e18233)) * **Interactive Video:** Added Video Leave Warning dialog and close at end option to IV. ([#280](#280)) ([a7d38a8](a7d38a8)) * **InteractiveVideo:** Added Player end and pause events and play and resume methods to the Managed Ad View ([#290](#290)) ([9f53899](9f53899)) * **Settings:** Added a settings screen to the test app for testing. ([#284](#284)) ([5dcd9ce](5dcd9ce)) * **Test Ads:** Made the duration parameter optional in the Decodable object ([#283](#283)) ([2fbf955](2fbf955)) ### Features * **Network:** Adds retry mechanism for the failed networking requests ([#278](#278)) ([a7a43d6](a7a43d6))
🎉 This PR is included in version 8.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
JIRA
AAG-3024
DESCRIPTION
Added Player end and pause events and play and resume methods to the Managed Ad View, this also includes a refactor for the Javascript message handlers.
NOTE: the play / pause javascript functions are not final as we are still discussing how to control this with the AA Mid team.
SCREENSHOTS
n/a