GithubHelp home page GithubHelp logo

Comments (11)

stonko1994 avatar stonko1994 commented on September 18, 2024

Which player-version are you using?
Can you provide the steps how you include and setup the player?

from bitmovin-player-ui.

josephlodero avatar josephlodero commented on September 18, 2024

"bitmovin-player-ui": "^2.18.0"

and i just imported it in my page.
import * as bitmovinPlayer from 'bitmovin-player-ui'

constructor(
) {
let player = bitmovinPlayer.player('id');
let config = {
source: {
dash: 'https://path/to/mpd/file.mpd',
hls: 'https://path/to/hls/playlist/file.m3u8',
smooth: 'https://path/to/manifest/file/Manifest'
}
}

player.setup(config).then(
  function(player) {
    console.log('Successfully created Bitmovin Player instance');
  },
  function(reason) {
    console.log('Error while creating Bitmovin Player instance');
  }
);

}

from bitmovin-player-ui.

protyposis avatar protyposis commented on September 18, 2024

If you really are importing the player from the UI package, that's the issue. For the player you need bitmovin-player instead of bitmovin-player-ui.

from bitmovin-player-ui.

stonko1994 avatar stonko1994 commented on September 18, 2024

Another thing: You need to move the player initialization to the ionViewDidEnter method or at least out of the constructor. Because the HTML and therefore the #player-element isn't accessible there.

from bitmovin-player-ui.

josephlodero avatar josephlodero commented on September 18, 2024

thanks for the reply guys..
i already change the import into bitmovin-player
"bitmovin-player": "^7.3.10",

and put the player initialization to ionViewDidEnter
image

but still got the error:
image

from bitmovin-player-ui.

stonko1994 avatar stonko1994 commented on September 18, 2024

First you could use lastest release version:

"bitmovin-player": "^7.8.3",
"bitmovin-player-ui": "^2.18.0",

A working sample for ionic3 look like:
in the html file:

<ion-content>
...
<div id="player"></div>
...
</ion-content>

in the ts file:

  import bitmovinPlayer from 'bitmovin-player';
  import bitmovinPlayerUI from 'bitmovin-player-ui';

  ...

  ionViewDidEnter() {
    let config = {
      key: 'YOUR KEY HERE',
      style: {
        ux: false,
      },
      source: {
        progressive: '//bitdash-a.akamaihd.net/content/sintel/Sintel.mp4',
        poster: '//bitdash-a.akamaihd.net/content/sintel/poster.png',
      }
    };

    let player = bitmovinPlayer('player');
    player.setup(config).then(() => {
      let uiManager = bitmovinPlayerUI.UIManager.Factory.buildDefaultUI(player, {});
      console.log('success');
    }).catch(() => {
      console.log('failure');
    })
  }

For the css for the playerUI follow these steps and add @import 'bitmovinplayer-ui'; to your .scss file

from bitmovin-player-ui.

josephlodero avatar josephlodero commented on September 18, 2024

Hi! Thank You for your help..
I already follow your instruction and i got this error:
image

from bitmovin-player-ui.

josephlodero avatar josephlodero commented on September 18, 2024

okay i already got it.
i just included this to my copy.config.js:
image

from bitmovin-player-ui.

josephlodero avatar josephlodero commented on September 18, 2024

Hi @stonko1994
can you please help me with these error?
image
it always happen when im going back to the list of video and revisit the page

from bitmovin-player-ui.

stonko1994 avatar stonko1994 commented on September 18, 2024

Unfortunately this stacktrace doesn't provide much information. But it seems that it's not UI related.

from bitmovin-player-ui.

h0jeZvgoxFepBQ2C avatar h0jeZvgoxFepBQ2C commented on September 18, 2024

Hi! Thank You for your help.. I already follow your instruction and i got this error: image

I have this issue now, with the latest version. @josephlodero where do you set this config?

from bitmovin-player-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.