Skip to content

Commit c78dcd5

Browse files
committed
make sure embedded music player has an URI
1 parent ebe0f34 commit c78dcd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/scripts/sepiaFW.client.controls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ function sepiaFW_build_client_controls(){
193193
SepiaFW.audio.stop(SepiaFW.audio.getMusicPlayer());
194194
}
195195

196-
//Embedded Player
197-
if (SepiaFW.ui.cards.allowWebPlayer || controlData.service.indexOf("_embedded") > 0){
196+
//Embedded Player - TODO: check if service has web-player support
197+
if (controlData.uri && (SepiaFW.ui.cards.allowWebPlayer || controlData.service.indexOf("_embedded") > 0)){
198198
//just skip, cards will do the rest...
199199
//YouTube
200200
//if (controlData.service.indexOf("youtube") == 0){}

0 commit comments

Comments
 (0)