Skip to content

Commit

Permalink
use proper session initialization for DVRLIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Oct 7, 2024
1 parent 121ead8 commit 0578299
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/ts/InternalBitmovinYospacePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import {
BreakType,
CONNECTION_ERROR,
CONNECTION_TIMEOUT,
DEBUG_ALL,
DebugFlags,
MALFORMED_URL,
PlayerEvent as YsPlayerEvent,
ResourceType,
Session,
SessionDVRLive,
SessionLive,
SessionProperties,
SessionState,
SessionVOD,
TimedMetadata,
UNKNOWN_FORMAT,
YoLog,
DebugFlags,
} from '@yospace/admanagement-sdk';

import type {
Expand Down Expand Up @@ -53,8 +53,10 @@ import {
import { DefaultBitmovinYospacePlayerPolicy } from './BitmovinYospacePlayerPolicy';
import { ArrayUtils } from 'bitmovin-player-ui/dist/js/framework/arrayutils';
import {
AdImmunityConfig,
AdImmunityConfiguredEvent,
AdImmunityEndedEvent,
AdImmunityStartedEvent,
BitmovinYospacePlayerAPI,
BitmovinYospacePlayerPolicy,
CompanionAdType,
Expand All @@ -72,8 +74,6 @@ import {
YospacePolicyErrorCode,
YospacePolicyErrorEvent,
YospaceSourceConfig,
AdImmunityStartedEvent,
AdImmunityConfig,
} from './BitmovinYospacePlayerAPI';
import { YospacePlayerError } from './YospaceError';
import type {
Expand Down Expand Up @@ -308,6 +308,9 @@ export class InternalBitmovinYospacePlayer implements BitmovinYospacePlayerAPI {
case YospaceAssetType.VOD:
SessionVOD.create(url, properties, onInitComplete);
break;
case YospaceAssetType.DVRLIVE:
SessionDVRLive.create(url, properties, onInitComplete);
break;
default:
Logger.error('Undefined YospaceSourceConfig.assetType; Could not obtain session;');
}
Expand Down

0 comments on commit 0578299

Please sign in to comment.