plugins/browser-plugin-media-tracking/src/buildMediaEvent.ts
Function getHTMLMediaElementEntities
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getHTMLMediaElementEntities(el: HTMLAudioElement | HTMLVideoElement, conf: TrackingOptions): MediaEntities {
// In cases where the media does not have explicit id, we use the container id passed from the configuration.
const htmlId = el.id || conf.id;
const data: MediaElement = {
htmlId,