Skip to content

Commit

Permalink
Merge pull request #173 from bitmovin/feature/fix-player-bundling
Browse files Browse the repository at this point in the history
Fix player bundling
  • Loading branch information
dweinber authored Jun 17, 2024
2 parents 451c8f2 + a8dd613 commit 95b93a4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Fixed

- Event loop on pre-roll ad end

### Added

- `mode` argument to `getCurrentTime` to enable fetching absolute time including ad durations
- `mode` argument to `getDuration` to enable fetching absolute duration including ad durations

### Fixed

- Event loop on pre-roll ad end
- Bitmovin Player getting bundled into the YospaceBitmovinPlayer

## 2.3.1 - 2024-02-14

### Removed
Expand Down
8 changes: 4 additions & 4 deletions src/ts/BitmovinYospacePlayer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
AdaptationAPI,
AudioQuality,
AudioTrack,
Expand Down Expand Up @@ -35,9 +35,9 @@ import { InternalBitmovinYospacePlayer } from './InternalBitmovinYospacePlayer';
import { Bitmovin8Adapter } from 'bitmovin-analytics';

import { ArrayUtils } from 'bitmovin-player-ui/dist/js/framework/arrayutils';
import { PlayerAdvertisingAPI } from 'bitmovin-player/modules/bitmovinplayer-advertising-core';
import { PlayerVRAPI } from 'bitmovin-player/modules/bitmovinplayer-vr';
import { PlayerSubtitlesAPI } from 'bitmovin-player/modules/bitmovinplayer-subtitles';
import type { PlayerAdvertisingAPI } from 'bitmovin-player/modules/bitmovinplayer-advertising-core';
import type { PlayerVRAPI } from 'bitmovin-player/modules/bitmovinplayer-vr';
import type { PlayerSubtitlesAPI } from 'bitmovin-player/modules/bitmovinplayer-subtitles';
import {
BitmovinYospacePlayerAPI,
BitmovinYospacePlayerExports,
Expand Down
10 changes: 5 additions & 5 deletions src/ts/BitmovinYospacePlayerAPI.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
AdBreak,
CompanionAd,
import type {
PlayerAPI,
PlayerEvent,
PlayerEventBase,
PlayerEventCallback,
PlayerExports,
SourceConfig,
} from 'bitmovin-player';
import { TimeMode } from 'bitmovin-player/modules/bitmovinplayer-core';
TimeMode,
} from 'bitmovin-player/modules/bitmovinplayer-core';

import type { AdBreak, CompanionAd } from 'bitmovin-player/modules/bitmovinplayer-advertising-core';

// Enums

Expand Down
8 changes: 4 additions & 4 deletions src/ts/InternalBitmovinYospacePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
YoLog,
} from '@yospace/admanagement-sdk';

import {
import type {
AdEvent,
AdQuartile,
AdQuartileEvent,
Expand Down Expand Up @@ -71,7 +71,7 @@ import {
YospaceSourceConfig,
} from './BitmovinYospacePlayerAPI';
import { YospacePlayerError } from './YospaceError';
import {
import type {
AdConfig,
CompanionAd,
LinearAd,
Expand Down Expand Up @@ -408,7 +408,7 @@ export class InternalBitmovinYospacePlayer implements BitmovinYospacePlayerAPI {
}

getCurrentTime(mode?: TimeMode): number {
if (mode === TimeMode.AbsoluteTime) {
if (mode === 'absolutetime') {
return this.player.getCurrentTime();
}

Expand All @@ -424,7 +424,7 @@ export class InternalBitmovinYospacePlayer implements BitmovinYospacePlayerAPI {
getDuration(mode?: TimeMode): number {
if (!this.session) return 0;

if (mode === TimeMode.AbsoluteTime) {
if (mode === 'absolutetime') {
return this.player.getDuration();
}

Expand Down

0 comments on commit 95b93a4

Please sign in to comment.