Comments (11)
Which player-version are you using?
Can you provide the steps how you include and setup the player?
from bitmovin-player-ui.
"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.
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.
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.
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
from bitmovin-player-ui.
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.
Hi! Thank You for your help..
I already follow your instruction and i got this error:
from bitmovin-player-ui.
okay i already got it.
i just included this to my copy.config.js:
from bitmovin-player-ui.
Hi @stonko1994
can you please help me with these error?
it always happen when im going back to the list of video and revisit the page
from bitmovin-player-ui.
Unfortunately this stacktrace doesn't provide much information. But it seems that it's not UI related.
from bitmovin-player-ui.
Hi! Thank You for your help.. I already follow your instruction and i got this error:
I have this issue now, with the latest version. @josephlodero where do you set this config?
from bitmovin-player-ui.
Related Issues (20)
- seekbar on safari in livestream is visible
- SOURCE_HLS_STREAM_ERROR with Safari Native Player HOT 1
- How to make autoplay keep fullscreen mode?
- npm ERR! Build failed with error code: 1 while running npm install HOT 2
- Full screen button on player for Android App
- Bitmovin encoding distorts colors HOT 1
- Livestream stutters at higher playback speed HOT 1
- Overlapping Subtitle Queues break Subtitles in Safari HOT 1
- getMaxTimeShift value is negative non-zero for Safari HLS live streams HOT 1
- Feature Request: Use Document Picture-in-Picture Web API HOT 4
- pausedTimeshiftUpdater is not cleared HOT 2
- Accessing UIManager when replacing the built-in UI through location HOT 3
- I want to update the version of player HOT 1
- bleacherreport.com - impossible to go to exit fullscreen HOT 9
- when the UI autohides with the SettingsPanel open, one touch is need to make the visible SettingsPanel interactive again HOT 2
- seekbar markers overflowing player in some UI configurations HOT 3
- overlapping issue with seekbar thumbnails HOT 1
- error ReferenceError: self is not defined HOT 4
- <button> should not have superfluous aria attributes HOT 1
- listbox does not implement listbox a11y pattern HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitmovin-player-ui.