You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* EncodingType reporting: The currentSourceChange event is used to extract the encoding type of the internally selected source. For HLS, this event is dispatched right before the sourceChange event. For HESP sources, it is dispatched after the play event, when a valid endpoint has been selected.*/
/* For HESP sources the encodingType is not available at session startup (play event) and encodingType will have been marked as pending. Once the currentSourceChange event is dispatched, this mark indicates the calculated encodingType can be pushed immediately to conviva and the mark can be reset. */
215
+
ifself.encodingTypeIsPending {
216
+
self.setContentInfo([ENCODING_TYPE:encodingType])
217
+
self.unreportedEncodingType =nil
218
+
self.encodingTypeIsPending =false
219
+
}
220
+
/* For HLS sources we cache the encoding type till the play event (Conviva session creation), at which the cached value will be pushed to conviva and the caching is reset to prevent further reporting. */
metadata.merge(adDescriptionMetadata){(_, new)in new }
269
+
270
+
/* EncodingType reporting:
271
+
1. A customer set encodingType always has precedence over the calculated encodingtype
272
+
2. For HLS sources (unreportedEncodingType is set on earlier currentSourceChange event) we can now report the encodingType.
273
+
3. For HESP sources (unreportedEncodingType is still nil) we mark the encodingType as pending, because the currentSourceChange event will be dispatched after the play event).
0 commit comments