platypush/platypush/backend/http/static/js/plugins/media/players/chromecast.js

24 lines
421 B
JavaScript
Raw Normal View History

2019-06-18 18:14:24 +02:00
mediaPlayers.chromecast = {
iconClass: function(item) {
if (item.type === 'audio') {
return 'fa fa-volume-up';
} else {
return 'fab fa-chromecast';
}
},
scan: async function() {
return await request('media.chromecast.get_chromecasts');
},
status: function(device) {
},
play: function(item) {
},
stop: function() {
},
};