Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cd .. && rm -rf mediaPlayerPlugin.zip && zip -r mediaPlayerPlugin.zip mediaPlayerPlugin/ -x "*/package-lock.json" -x "*/build.sh" -x "*/node_modules/*" -x "*/coverage/*" -x "*/test/*"
4 changes: 4 additions & 0 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
},
"settings": {
"enabled": false
},
"language": {
"enabled": true,
"languageJsonPath": "resources/languages.json"
}
},
"widget": {
Expand Down
14 changes: 14 additions & 0 deletions resources/languages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"sections": {
"general": {
"title": "General",
"labels": {
"playbackSpeedTitle": {
"title": "Playback Speed",
"defaultValue": "Playback Speed",
"placeholder": "Playback Speed"
}
}
}
}
}
11 changes: 9 additions & 2 deletions widget/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@
});
};
}])
.run(['$rootScope',function ($rootScope) {
.run(['$rootScope',function ($rootScope) {
buildfire.appearance.navbar.hide(null, (err) => {
if (err) return console.error(err);
console.log("Navbar is hidden");
});

buildfire.navigation.onBackButtonClick = function () {
console.log('Back Button called-----------------------------');
if ($rootScope.openPlaylist) {
Expand All @@ -99,6 +104,8 @@
else
buildfire.navigation._goBackOne();
}
}]);

}])

})
(window.angular, window.buildfire);
31 changes: 26 additions & 5 deletions widget/app.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,30 @@
//created MediaPlayerWidgetServices module
angular
.module('MediaPlayerWidgetServices', [])
.provider('Buildfire', [function () {
this.$get = function () {
return buildfire;
};
}]);
.provider('Buildfire', [
function () {
this.$get = function () {
return buildfire;
};
},
])
.factory('Strings', [ 'Buildfire', function (Buildfire) {
const Strings = function () {
this.getString = function (key, callback) {
Buildfire.language.get({ stringKey: key }, (err, res) => {
if (err) {
console.error(err);
callback(err, null);
} else {
callback(null, res);
}
});
};
};

return Strings;
},
]);


})(window.angular, window.buildfire);
Loading