mardi 30 août 2016

Implement jwplayer on Emberjs

I want to implement jwplayer on an emberjs app, i use bower to install jwplayer and i include it on ember cli build.

app.import('bower_components/jwplayer/jwplayer.js');

The problem is when im trying on the application route to setup the jwplayer:

init() { this._super(...arguments);

jwplayer.key='t7jmHu1/RAgJaW/NYESUcyMbUjuFcEeBqDTr/Q==';

jwplayer("video").setup({
    file: "http://ift.tt/2bUfbYw"
});

}

Anyone knows how to fix this?




Aucun commentaire:

Enregistrer un commentaire