rdkcentral / Lightning-SDK

SDK for Lightning framework
Apache License 2.0
130 stars 69 forks source link

Dash support for mediaplayer #119

Closed krishdarling143 closed 4 years ago

krishdarling143 commented 4 years ago

@g-zachar @wouterlucas import {Lightning, MediaPlayer} from 'wpe-lightning-sdk'; import 'dashjs/dist/dash.all.debug'

export default class DRM extends Lightning.Component { static _template(){ return { MediaPlayer:{ type: MediaPlayer },

}

}

_init(){ console.log(dashjs) const video = this.tag("MediaPlayer").videoEl;
this.dash = dashjs.MediaPlayer().create();
this.dash.initialize(); console.log(this.dash) this.dash.attachView(video);

} _handleEnter(){ this.dash.attachSource('https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd');

}} video is playing but not visible

michielvandergeest commented 4 years ago

Answering on Slack. Closing this issue to keep the repo clean from support questions