I want to implement audio card like soundclound, basically when I made audio card it was working fine in web, but when I tried playing same card in mobile app but it was redirecting to web browser. so the thing is I want my audio to play in the app itself not to redirect and open a new page on web . let me know if anyone has some idea about implementation of the same.
The only way to implement an audio card for yourself would be to use Twitter's player card option. On mobile, that will end up redirecting to a browser.
The Soundcloud card is a special card implemented by Twitter, and is not generally available to other sites.
Related
I want to send static picture to chromecast from nodejs app. I don't need to send video or audio. I simply want to display some status information on TV. Can I use chromecast for this? Is there any nodejs module for this?
Or maybe more universal approach. Is any way to make chromecast to display fullscreen webpage on TV?
I have an audio file (e.g. mp3) located on Google Drive and accessible at a direct url that looks like https://drive.google.com/file/d/audio_file_id/view where there is a small sliding bar timeline scrubber and play/pause button that let the user hear the audio (and supposedly control the location in the file, but this feature is not working for me on Chrome on mac…; advice on this appreciated).
I would like to start the playback at a specific time. How can this be one? Is there a way to do it like one can do with video files hosted on Google Drive by adding a parameter like t=15s to the video url, like in YouTube?
Drive API doesn't have the seekTo method in Youtube API but you can add the t=123s at the end of the video url and it will work just like it.
sample:
https://drive.google.com/file/d/0Bz6447wI7cGV12546VBmQ2M/view?t=651s
I am a developer for playmoss where users can create playlists with different music services.
We are planning on adding Spotify support to our playlists in a way similar to what bop.fm does.
Context
Taking for example this playlist (in which all songs are available on spotify, at least in Spain)…
https://bop.fm/p/o12l
…if we have the spotify client installed in our computer (tested with a Mac)
As soon as the playlist starts playing we can click the spotify icon on the top right [picture]and we will be playing the songs through spotify.
Using the bop.fm control interface we can pause, play, skip next, even skip to a point in the track with progress bar.
This is similar but even more powerful than the official spotify play button, see an example here:
http://jsfiddle.net/insonorizate/a5jf39yn/
With the play button there is previous, play, pause, next functionality but not seek.
Of course it can not be customized in any way nor called from javascript.
(in bop.fm is possible to open a debuger console and call
Bop.Player.pause()
or
Bop.Player.play()
to pause or play the track beeing played in bop.fm via spotify)
Fiddling a little with the bop.fm page there are some interesting things. Ther is an iframe in the main page poiting to:
https://embed.spotify.com/remote-control-bridge/
Viewing this iframe source we find something like this:
// Expose the OAuth Token to the Javascript
var tokenData = 'NAowChgKB1Nwb3RpZnkSABoGmAEByAEBJReQCFQSFG2Ynvz1oBKgxv2mE1XXz_1Au-cg';
// Pass the remote control to the bridge
var remoteControlBridge = new Spotify.RemoteControlBridge();
remoteControlBridge.init(tokenData);
There's no documentation for Spotify.RemoteControlBridge (0 results for "Spotify.RemoteControlBridge" on google) and there isn't any thing in the documentation of the different apis even close to controling the spotify player in a way similar to this.
Question
How can I control the spotify desktop app from a browser?
Does bop.fm have any special arrangment with spotify and they are using some "secret api"?
Are they exploiting some functionality that I fail to find?
Is it possible to replicate it?
Is it in accordance with the Spotify terms?
Thanks!
You can't control the Spotify Client or Listen to Events the Spotify Web Helper is emitting. Imagine everybody could: every website could potentially play a song without your permission or even know instantly what you are listening to. To prevent this Spotify only allows approved partners to use this feature.
As you figured out the remote-control-bridge provides this functionality. It can communicate with the Spotify Web Helper running on your system, which is secured by an OAuth and a CSRF Token. In the remote-control-bridge you even can see the allowed partners:
Spotify (who knew)
Yahoo
last.fm
coachella.com
bop.fm
sandpit.us
echonest
musixmatch
You can contact them and ask for a partnership. I'm sure they won't bite.
This is actually a little bit documentated on the website of Spotify in the developers section.
I think bop.fm does use their custom Spotify Play Button widget. That makes use of the iframe that you mentioned.
Here you can find the documentation about this functionality of Spotify. You can then modify it to your own needs using Javascript etc.
I am new with the spotify app. I try to display a video in spotify's advertise page. However none of the things that I was trying work (jw player, flow player, youtube iframe. html5). Any hints?
Greetings!
Any external hosts with assets you request need to be added to the RequiredPermissions part of the app manifest:
http://developer.spotify.com/technologies/apps/guidelines/developer/#applicationmanifest
In order to display a video in the spotify you have to fulfill following requirements:
your video file has to be stored on the 3rd party server.
you have to use open-source video player (e.g “JW Player”).
you have to create a html file that will be your lightbox. This is the file that you will embed in the video file and player library.
image file for background of the player.
Destination URL must be open in new browser window.
And don't forget to add the address of host your host to the permissions in spotify's manifest file!!!
Example: here
I am trying to integrate Spotify Play Button into ThingLink Spotify tag so that when the iframe loads, it starts playing automatically. Is there a way to do that with some parameter?
The functionality would be similar to Soundcloud & Vimeo players here:
http://www.thinglink.com/scene/251225958915244034
Without the autoplay, user would have to click on Play twice, which wouldn't be that good of UX.
Thanks!
-Albert
There is no autoplay functionality at present.
Autoplay isn't really what the Play Button is about — it's designed so people can listen to music if they want to. We don't really want to interrupt whatever the user is listening to already (be it something in Spotify, something else, or silence) without express permission to do so first.