2.4.0-rc.1 • Published 12 days ago

@bitmovin/player-integration-yospace v2.4.0-rc.1

Weekly downloads
134
License
MIT
Repository
github
Last release
12 days ago

Bitmovin Player Yospace Integration

This is an open-source project to enable the use of a third-party component (Yospace) with the Bitmovin Player Web SDK.

Maintenance and Update

This project is not part of a regular maintenance or update schedule. For any update requests, please take a look at the guidance further below.

Contributions to this project

As an open-source project, we are pleased to accept any and all changes, updates and fixes from the community wishing to use this project. Please see CONTRIBUTING.md for more details on how to contribute.

Reporting player bugs

If you come across a bug related to the player, please raise this through your support ticketing system.

Need more help?

Should you want some help updating this project (update, modify, fix or otherwise) and can't contribute for any reason, please raise your request to your Bitmovin account team, who can discuss your request.

Support and SLA Disclaimer

As an open-source project and not a core product offering, any request, issue or query related to this project is excluded from any SLA and Support terms that a customer might have with either Bitmovin or another third-party service provider or Company contributing to this project. Any and all updates are purely at the contributor's discretion.

Thank you for your contributions!

Usage

This integration completely encapsulates the usage of Yospace. After creating the player it can be used like a normal Bitmovin Player instance.

Sample Apps

  1. Following the instructions on Yospace Developer 6.4 Step 1 to add Yospace's private npm registry to your setup
  2. Run npm install
  3. Run npm start

Basic Setup

With NPM

  1. Install the Yospace Ad Management SDK: npm i -S @yospace/admanagement-sdk
    • Hint: Yospace uses a private NPM registry and you need log in credentials provided by Yospace. Please refer to the Yospace Developer docs for details.
  2. Install the Bitmovin Player Yospace Integration: npm i -S @bitmovin/player-integration-yospace
  3. Import the BitmovinYospacePlayer into your code: import { BitmovinYospacePlayer } from '@bitmovin/player-integration-yospace';
  4. Import the Bitmovin Player core into your code: import { Player } from 'bitmovin-player/modules/bitmovinplayer-core';
  5. Add the relevant Bitmovin Player modules to the Player object using the static Player.addModule(...) API
  6. Create a new player instance, and pass the BitmovinPlayerStaticAPI to it: new BitmovinYospacePlayer(Player, container, config)
  7. Load a YospaceSourceConfig with your Yospace HLS/DASH URL. It's a PlayerConfig with Yospace-specific extension. Most important extension is the assetType, which needs to be set. In addition, HLS is picked before DASH, so if the user wants to play a dash stream the hls config has to be omitted.
const playerConfig: PlayerConfig = {
  key: 'YOUR-PLAYER-KEY',
};

const playerContainer = document.getElementById('player');
const bitmovinYospacePlayer = new BitmovinYospacePlayer(Player, playerContainer, playerConfig);

// Create the UI afterwards (see https://github.com/bitmovin/bitmovin-player-ui for details)
const uiManager = UIFactory.buildDefaultUI(player);

// Load a new yospace source
const source: YospaceSourceConfig = {
  // omit 'hls' field if dash stream is intended
  hls: 'your yospace url',
  dash: 'your yospace url',

  // The type of the asset, can be imported: `import { YospaceAssetType } from '@bitmovin/player-integration-yospace';`
  assetType: YospaceAssetType.VOD,
  // one of:
  // - bitmovin.player.ads.yospace.YospaceAssetType.LINEAR
  // - bitmovin.player.ads.yospace.YospaceAssetType.VOD
};

bitmovinYospacePlayer.load(source);

Advanced Setup

Policy

As there can be different rules for different use-cases we provide a BitmovinYospacePlayerPolicy interface which can be implemented. In this policy you can define which actions should be allowed during playback.

You can set the policy right after initialization by calling:

bitmovinYospacePlayer.setPolicy(...); // pass in your policy object which implements BitmovinYospacePlayerPolicy

We also provide a default policy.
See BitmovinYospacePlayerPolicy for more details.

Config

You can pass a third optional parameter to the player constructor:

const yospaceConfig: YospaceConfiguration = {
  debug: true,
};
// ...
const bitmovinYospacePlayer = new BitmovinYospacePlayer(Player, playerContainer, conf, yospaceConfig);

Tizen

Tizen Config

  • Include the following Tweaks to the PlayerConfig:
tweaks: {
    ...
    file_protocol : true, // Required if app is being loaded from file system
    app_id : "Ff4zhu5kqV.TizenBitmovinPlayerAppMode" // this Tizen App Id should also be allow-listed in Player License and optionally, Analytics License
}
  • Make sure the app_id is allow-listed in your Player's License
  • In the YospaceConfig set the param YospaceConfig.disableServiceWorker to true
  • In the YospaceConfig set the param YospaceConfig.useTizen to true
// Yospace configuration
const yospaceConfig = {
    ...
    disableServiceWorker: true, // Disable Service Worker for Tizen Web App use
    useTizen: true,
};

Tizen Demo

  • Run npm run build-tv
  • Import the Tizen folder(as General -> Existing Project) into your Tizen Studio and run as a Tizen Web Application

Limitations

  • No support for ad tracking during live streams in Safari if EMSG tags are used. (EMSG tags are not supported by Safari)

Development, Contribution, Releases

Set up environment

  1. Use node.js version specified in .nvmrc
  2. Set up your access to the private npm registry of Yospace
  3. Run npm ci
  4. Use npm run start to run a webpack dev server

Branching & Releasing

  • This repo uses git-flow and semantic versioning
  • PRs should be made against develop branch
  • PRs should always contain an update of the CHANGELOG.md file
  • New versions will be manually released into the main branch and tagged there
  • Tagged versions will be manually published to npm

Principles

  • The Bitmovin Player shall not be packaged into the JS file created by the build of this integration. To achieve this, types can be imported and used, but no code must be imported/used (including string enums!)
2.4.0-rc.1

12 days ago

2.4.0-rc.0

25 days ago

2.3.1

3 months ago

2.3.0

1 year ago

2.2.0

1 year ago

2.2.0-rc.0

1 year ago

2.1.0

2 years ago

2.0.0-a.0

2 years ago

2.0.0

2 years ago

2.0.0-b.0

2 years ago

1.2.25

3 years ago

1.2.24

3 years ago

1.2.20-2

3 years ago

1.2.20-1

3 years ago

1.2.23

3 years ago

1.2.21

3 years ago

1.2.20

3 years ago

1.2.19

3 years ago

1.2.18

3 years ago

1.2.17

3 years ago

1.2.17-rc.1

3 years ago

1.2.16

4 years ago

1.2.15

4 years ago

1.2.14

4 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.3-rc1

4 years ago

1.2.2

4 years ago

1.2.2-rc2

4 years ago

1.2.2-rc1

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1-rc1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-rc101

4 years ago

1.0.0-rc100

4 years ago

1.0.0-rc99

4 years ago

1.0.0-rc98

4 years ago

1.0.0-rc97

4 years ago

1.0.0-rc96

4 years ago

1.0.0-rc95

4 years ago

1.0.0-rc94

4 years ago

1.0.0-rc93

4 years ago

1.0.0-rc92

4 years ago

1.0.0-rc91

4 years ago

1.0.0-rc90

4 years ago

1.0.0-rc85

4 years ago

1.0.0-rc86

4 years ago

1.0.0-rc84

4 years ago

1.0.0-rc89

4 years ago

1.0.0-rc87

4 years ago

1.0.0-rc88

4 years ago

1.0.0-rc83

4 years ago

1.0.0-rc81

4 years ago

1.0.0-rc82

4 years ago

1.0.0-rc80

4 years ago

1.0.0-rc79

4 years ago

1.0.0-rc78

4 years ago

1.0.0-rc77

4 years ago

1.0.0-rc74

4 years ago

1.0.0-rc75

4 years ago

1.0.0-rc76

4 years ago

1.0.0-rc73

4 years ago

1.0.0-rc72

4 years ago

1.0.0-rc71

4 years ago

1.0.0-rc70

4 years ago

1.0.0-rc69

4 years ago

1.0.0-rc68

4 years ago

1.0.0-rc67

4 years ago

1.0.0-rc66

4 years ago

1.0.0-rc65

4 years ago

1.0.0-rc64

4 years ago

1.0.0-rc63

4 years ago

1.0.0-rc61

4 years ago

1.0.0-rc62

4 years ago

1.0.0-rc60

4 years ago

1.0.0-rc58

4 years ago

1.0.0-rc59

4 years ago

1.0.0-rc57

4 years ago

1.0.0-rc56

4 years ago

1.0.0-rc55

4 years ago

1.0.0-rc53

4 years ago

1.0.0-rc54

4 years ago

1.0.0-rc52

4 years ago

1.0.0-rc51

4 years ago

1.0.0-rc50

4 years ago

1.0.0-rc49

4 years ago

1.0.0-rc48

4 years ago

1.0.0-rc47

4 years ago

1.0.0-rc46

4 years ago

1.0.0-rc45

4 years ago

1.0.0-rc44

4 years ago

1.0.0-rc43

4 years ago

1.0.0-rc42

4 years ago

1.0.0-rc41

4 years ago

1.0.0-rc40

4 years ago

1.0.0-rc39

5 years ago

1.0.0-rc38

5 years ago

1.0.0-rc37

5 years ago

1.0.0-rc36

5 years ago

1.0.0-rc35

5 years ago

1.0.0-rc34

5 years ago

1.0.0-rc33

5 years ago

1.0.0-b33

5 years ago

1.0.0-rc32

5 years ago

1.0.0-rc31

5 years ago

1.0.0-rc30

5 years ago

1.0.0-rc29

5 years ago

1.0.0-rc28

5 years ago

1.0.0-rc26

5 years ago

1.0.0-rc25

5 years ago

1.0.0-rc24

5 years ago

1.0.0-rc23

5 years ago

1.0.0-rc22

5 years ago

1.0.0-rc21

5 years ago

1.0.0-rc20

5 years ago

1.0.0-rc19

5 years ago

1.0.0-rc18

5 years ago

1.0.0-rc17

5 years ago

1.0.0-rc16

5 years ago

1.0.0-rc15

5 years ago

1.0.0-rc14

5 years ago

1.0.0-rc13

5 years ago

1.0.0-rc12

5 years ago

1.0.0-rc10

5 years ago

1.0.0-rc9

5 years ago

1.0.0-rc8

5 years ago

1.0.0-rc7

5 years ago

1.0.0-rc6

5 years ago

1.0.0-rc5

5 years ago

1.0.0-rc4

5 years ago

1.0.0-rc3

5 years ago

1.0.0-rc2

5 years ago

1.0.0-rc1

5 years ago