feat(ad): add data to onReceiveAdEvent (#3378)
* feat(ad): add adData to onReceiveAdEvent * fix: remove adData from response if empty * fix: add getAdData to stub file * chore: fix build without IMA * fix: rename `adData` to `data` --------- Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
This commit is contained in:
committed by
GitHub
parent
de4159f0c2
commit
d05231d76b
@@ -32,7 +32,7 @@ export enum AdEvent {
|
||||
*/
|
||||
AD_PERIOD_STARTED = 'AD_PERIOD_STARTED',
|
||||
/**
|
||||
* Android only: Fires when the ad's current time value changes. Calling getAdData() on this event will return an AdProgressData object.
|
||||
* Android only: Fires when the ad's current time value changes. The event `data` will be populated with an AdProgressData object.
|
||||
*/
|
||||
AD_PROGRESS = 'AD_PROGRESS',
|
||||
/**
|
||||
|
@@ -115,6 +115,7 @@ export type OnPictureInPictureStatusChangedData = Readonly<{
|
||||
}>;
|
||||
|
||||
export type OnReceiveAdEventData = Readonly<{
|
||||
data?: Record<string, string>;
|
||||
event: AdEvent;
|
||||
}>;
|
||||
|
||||
|
@@ -174,7 +174,7 @@ export interface ReactVideoProps extends ReactVideoEvents {
|
||||
source?: ReactVideoSource;
|
||||
drm?: Drm;
|
||||
style?: StyleProp<ViewStyle>;
|
||||
adTagUrl?: string; // iOS
|
||||
adTagUrl?: string;
|
||||
audioOnly?: boolean;
|
||||
automaticallyWaitsToMinimizeStalling?: boolean; // iOS
|
||||
backBufferDurationMs?: number; // Android
|
||||
|
Reference in New Issue
Block a user