Open simonwalkersamuel opened 7 years ago
Not entirely sure, have never tried drop box.
but if it was going to work you would need a direct link to the audio. you fed it a link to the drop box page which is not going work.
just use mc.play_media(dblink, 'audio/mp3') and use the real location of that file, not the url you provided.
mc = cast.media_controller mc.play_media('https://dl.dropboxusercontent.com/content_link/WWK9zaBuvyVW2nASiUNSbOnUBPC9M44VHDq3B3JkXERFNvtERAWdlTHr3MB63s8e/file?dl=0&duc_id=dropbox_duc_id', 'audio/mp3') print(mc.status)
Hi,
This might be a naive question, but is it possible to play an audio file from dropbox or google drive? I've amended the example code from the readme to try and play an MP3 file, but I just hear the default 'chromecast sound' played and nothing else. I've also tried an MP4, alongside changing the MIME definition to 'audio/mp3', 'audio/mp4' and 'audio/mpeg', none of which seem to help...
Is dropbox simply not supported? I tried with google drive, but that didn;t work either. Perhaps I'm misunderstanding what can be done with the chromecast protocol?