Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from krimovish/WBC-569
Browse files Browse the repository at this point in the history
WBC-569 Update Bitdash player to Version 6.x
  • Loading branch information
Krimovish committed Dec 19, 2016
2 parents aca275a + 73dd5ad commit 0fc1661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/bitdash-directive.js
Expand Up @@ -19,7 +19,7 @@ module.exports = function ($window) {
},
link: function (scope) {
var config = scope.config; // die config wird automatisch durch den controller erweitert
var player = $window.window.bitdash('mi-bitdash-player');
var player = $window.window.bitmovin.player('mi-bitdash-player');
// tech support - flash and hls
var supportedTech = player.getSupportedTech();
// force HLS / Flash playback if available
Expand Down Expand Up @@ -47,7 +47,7 @@ module.exports = function ($window) {
if (player.isReady() && !flashForce) {
// funktioniert derzeit nur für den NON-Flash ... flashie selbst fällt sehr laut hin ... Dreck
player.destroy();
player = $window.window.bitdash('mi-bitdash-player');
player = $window.window.bitmovin.player('mi-bitdash-player');
}

// if (flashForce) {
Expand Down
6 changes: 3 additions & 3 deletions test/bitdash-directive.spec.js
Expand Up @@ -12,9 +12,9 @@ describe('BitdashDirective', function () {
var window = jasmine.createSpy('window');
player = jasmine.createSpyObj('player', ['getSupportedTech', 'isReady', 'destroy', 'setup']);
player.isReady.and.returnValue(true);
window.bitdash = function () {
return player;
};
window.bitmovin = {
player: function () { return player;}
};

var winMock = {window: window};
var docMock = angular.element(document);
Expand Down

0 comments on commit 0fc1661

Please sign in to comment.