Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-Veltmans committed Dec 20, 2024
1 parent b23a1f5 commit 6a2caf5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions conviva/src/integration/ConvivaHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Constants,
type ConvivaMetadata,
type VideoAnalytics,
ConvivaDeviceMetadata,
ConvivaDeviceMetadata
} from '@convivainc/conviva-js-coresdk';
import type { YospaceConnector } from '@theoplayer/yospace-connector-web';
import { CONVIVA_CALLBACK_FUNCTIONS } from './ConvivaCallbackFunctions';
Expand Down Expand Up @@ -244,7 +244,11 @@ export class ConvivaHandler {
private reportMetadata() {
const src = this.player.src ?? '';
const streamType = this.player.duration === Infinity ? Constants.StreamType.LIVE : Constants.StreamType.VOD;
const assetName = this.customMetadata[Constants.ASSET_NAME] ?? this.convivaMetadata[Constants.ASSET_NAME] ?? this.currentSource?.metadata?.title ?? 'NA';
const assetName =
this.customMetadata[Constants.ASSET_NAME] ??
this.convivaMetadata[Constants.ASSET_NAME] ??
this.currentSource?.metadata?.title ??
'NA';
const playerName = this.customMetadata[Constants.PLAYER_NAME] ?? 'THEOplayer';
const metadata = {
[Constants.STREAM_URL]: src,
Expand Down Expand Up @@ -328,7 +332,7 @@ export class ConvivaHandler {
private readonly onSourceChange = () => {
this.maybeReportPlaybackEnded();
this.currentSource = this.player.source;
this.customMetadata = {}
this.customMetadata = {};
};

private readonly onEnded = () => {
Expand Down

0 comments on commit 6a2caf5

Please sign in to comment.