grooveshark

Control Embedded Grooveshark Widgets using Javascript?

萝らか妹 提交于 2019-12-07 14:24:58
问题 How would I play/pause an embedded Grooveshark widget using Javascript? Would like to play separate single-song widgets in sequence, ala separate tracks on a soundcloud user's page. I didn't see anything officially supported, and couldn't find anything via googling. 回答1: I took a quick glance at the decompiled actionscript and turned up the following ExternalInterface callbacks: getVersion() getCurrentSong() setSongCompleteCallback(string) setErrorCallback(string) setStatusCallback(string)

Stop Android MediaPlayer automatically launched by webpage within WebView

笑着哭i 提交于 2019-12-07 12:53:40
问题 one of the activities of my Android app contains a WebView that displays the GrooveShark player webpage. When the user taps on the play button of the webpage the activity automatically launches a default MediaPlayer that plays the track. Everything works fine, the problem arises when the user closes this activity and the MediaPlayer, although is not playing the track anymore, it remains alive ... even when the app is closed, the MediaPlayer is still alive. The only way to kill it is by

Continuous HTML5 audio/video playback in iOS?

我的梦境 提交于 2019-12-07 09:22:45
问题 I'm working on a mobile web app and want to allow for continuous playback of HTML5 audio or video in both Android and iOS (i.e. queue up a playlist of YouTube videos or Grooveshark songs and have them all play in a row automatically). Android doesn't seem to be an issue, but everything I've read has suggested that Safari prevents audio from playing unless it's initiated by a user, and prevents continuous play if the screen becomes locked. That said, Grooveshark's mobile web app will play an

Control Embedded Grooveshark Widgets using Javascript?

痴心易碎 提交于 2019-12-06 01:34:15
How would I play/pause an embedded Grooveshark widget using Javascript? Would like to play separate single-song widgets in sequence, ala separate tracks on a soundcloud user's page . I didn't see anything officially supported, and couldn't find anything via googling. I took a quick glance at the decompiled actionscript and turned up the following ExternalInterface callbacks: getVersion() getCurrentSong() setSongCompleteCallback(string) setErrorCallback(string) setStatusCallback(string) setSongChangeCallback(string) playSong() pauseSong() resumeSong() stopSong() replaceSongs(array) In theory,

Continuous HTML5 audio/video playback in iOS?

本小妞迷上赌 提交于 2019-12-05 16:53:07
I'm working on a mobile web app and want to allow for continuous playback of HTML5 audio or video in both Android and iOS (i.e. queue up a playlist of YouTube videos or Grooveshark songs and have them all play in a row automatically). Android doesn't seem to be an issue, but everything I've read has suggested that Safari prevents audio from playing unless it's initiated by a user, and prevents continuous play if the screen becomes locked. That said, Grooveshark's mobile web app will play an entire playlist of songs in my iPhone 5 (iOS 7). It'll play the next song even if I'm in another Safari

Send HTTP Post Payload with Java

一曲冷凌霜 提交于 2019-12-01 18:04:15
问题 I'm trying to connect to the grooveshark API, this is the http request POST URL http://api.grooveshark.com/ws3.php?sig=f699614eba23b4b528cb830305a9fc77 POST payload {"method":'addUserFavoriteSong",'parameters":{"songID":30547543},"header": {"wsKey":'key","sessionID":'df8fec35811a6b240808563d9f72fa2'}} My question is how can I send this request via Java? 回答1: Basically, you can do it with the standard Java API. Check out URL, URLConnection, and maybe HttpURLConnection. They are in package java