mymikemiller / a-simple-lastfm-scrobbler

Automatically exported from code.google.com/p/a-simple-lastfm-scrobbler
GNU General Public License v3.0
0 stars 0 forks source link

Support Xperia MediaScape (by Sony Ericsson) #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It hasn't been released yet, but it would be great to support it.

Original issue reported on code.google.com by tgwizard on 25 Feb 2010 at 11:12

GoogleCodeExporter commented 9 years ago
Got an email from a user asking about this. I don't know if it works or not.

Original comment by tgwizard on 27 Apr 2010 at 7:42

GoogleCodeExporter commented 9 years ago
I have an XPERIA X10 with Mediascape and have been trying to find a scrobbling 
app that supports it. It doesn't 
work.

The process name is com.sonyericsson.android.mediascape if that helps any.

Original comment by kalle...@gmail.com on 2 May 2010 at 4:11

GoogleCodeExporter commented 9 years ago
Herm, I tried downloading the source and editing HeroMusicReceiver to read sony 
ericsson instead, rebuilding 
and trying that on my phone. Didn't work :/.

tried "com.sonyericsson.android.mediascape.playstatechanged" (and edited the 
other lines respectively)
and "com.sonyericsson.android.mediascape.music.playstatechanged" (etc) 

Original comment by kalle...@gmail.com on 2 May 2010 at 5:52

GoogleCodeExporter commented 9 years ago
Oh yeah, and when I say "doesn't work" I obviously mean it doesn't show up 
under detected music players. 
And when I edited HeroMusicReceiver I also changed the manifest <receiver> tag 
for HeroMusicReceiver.

Bluetoothing mediascape.odex over to my laptop and running strings on it, there 
are no hits for 
"playstatechanged" or "metachanged".

"playbackcomplete" shows up in a section with these:
PICASA_SETTING
PIVOT_ANIM_DURATION
PLAYBACKCOMPLETE
PLAYBACKSERVICE_STATUS
PLAYER_EVENT_CHANGETRACK
PLAYER_EVENT_LOOP
PLAYER_EVENT_NEXT
PLAYER_EVENT_NOTIFY_DELETE
PLAYER_EVENT_PAUSE
PLAYER_EVENT_PLAY
PLAYER_EVENT_PREV
PLAYER_EVENT_SEEK
PLAYER_EVENT_SHUFFLE
PLAYER_EVENT_STOP
PLAYLIST_ID

In a separate section "com.android.music" can be found:
com.android.music
com.android.music.MediaPlaybackActivity
com.android.music.musicservicecommand
com.facebook.katana
com.sonyericsson.android.camera.intent.action.FINISH
com.sonyericsson.android.camera.intent.action.LAUNCH
com.sonyericsson.android.contentmanager.service.facerecognition.FaceRecognitionS
ervice
com.sonyericsson.android.mediascape.Action.View
com.sonyericsson.android.mediascape.IMusicPlayerService
com.sonyericsson.android.mediascape.MediaPlayerListener
com.sonyericsson.android.mediascape.category.Home
com.sonyericsson.android.mediascape.extra.resource_id
com.sonyericsson.android.mediascape.plugin.action.ITEM_SELECTED
com.sonyericsson.android.mediascape.plugin.action.PLUGIN_ADDED
com.sonyericsson.android.mediascape.plugin.action.PLUGIN_DATA_CLEARED
com.sonyericsson.android.mediascape.plugin.action.PLUGIN_REMOVED
com.sonyericsson.android.mediascape.plugin.action.PLUGIN_REPLACED
com.sonyericsson.android.mediascape_preferences
com.sonyericsson.android.metadatacleanup.METADATA_CLEANUP
com.sonyericsson.android.semcSigCommon.Action.Edit
com.sonyericsson.android.semcSigCommon.Action.Share
com.sonyericsson.android.semcSigCommon.Action.View
com.sonyericsson.android.signature.SET_WALLPAPER

dunno if this helps at all...

Original comment by kalle...@gmail.com on 2 May 2010 at 7:00

GoogleCodeExporter commented 9 years ago
I tried reverse-engineering the broadcasts that the Samsung music apps use with
little success (see
http://code.google.com/p/a-simple-lastfm-scrobbler/issues/detail?id=37). 
Hopefully we
can do better here.

I've also asked Sony Ericsson on their forum here:
http://developer.sonyericsson.com/community/message/131166#50716
(with frames: 
http://developer.sonyericsson.com/wportal/devworld/forum?cc=gb&lc=en)

PLAYER_EVENT_PLAY and the others seem more like intent actions used to alter the
media playback than to broadcast status info.

Perhaps you could run and export a LogCat of when you start/pause etc. some 
music?

Original comment by tgwizard on 2 May 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Here's my logcat:
I/ActivityManager( 1195): Start proc com.sonyericsson.fmradio for broadcast 
com.sonyericsson.fmradio/.FMBroadcastReceiver: pid=32375 uid=10016 gids={}
I/ActivityManager( 1195): Process 
com.google.android.apps.maps:LocationFriendService (pid 32365) has died.
I/dalvikvm(32375): Debugger thread not active, ignoring DDM send (t=0x41504e4d 
l=38)
I/dalvikvm(32375): Debugger thread not active, ignoring DDM send (t=0x41504e4d 
l=52)
I/SemcMusicPlayer(30549): Play song: /sdcard/Music/Digital_Only_Albums/Severed 
Fifth/Denied By Reign/severedfifth-deniedbyreign-edgeofdesign.ogg
I/SemcMusicPlayer(30549): Play song: /sdcard/Music/Digital_Only_Albums/Severed 
Fifth/Denied By Reign/severedfifth-deniedbyreign-edgeofdesign.ogg
E/BluetoothEventLoop.cpp( 1195): event_filter: Received signal 
org.bluez.AudioSink:Playing from /org/bluez/1282/hci0/dev_40_2B_A1_60_E9_D3
E/BluetoothEventLoop.cpp( 1195): event_filter: Received signal 
org.bluez.AudioSink:PropertyChanged from 
/org/bluez/1282/hci0/dev_40_2B_A1_60_E9_D3
E/BluetoothEventLoop.cpp( 1195): event_filter: Received signal 
org.bluez.AudioSink:PropertyChanged from 
/org/bluez/1282/hci0/dev_40_2B_A1_60_E9_D3
D/BluetoothA2dpService( 1195): A2DP state : device: 40:2B:A1:60:E9:D3 State:2->4
W/AudioFlinger( 1100): write blocked for 421 msecs, 26 delayed writes, thread 
0x91908
I/ActivityManager( 1195): Process com.sonyericsson.fmradio (pid 32375) has died.

Original comment by jon@sprig.gs on 22 Dec 2010 at 12:39

GoogleCodeExporter commented 9 years ago
Then, when changing tracks: 
I/SemcMusicPlayer(30549): Play song: /sdcard/Music/Digital_Only_Albums/Nine 
Inch Nails/Ghosts I-IV/09 Ghosts I.mp3

However, pausing/stopping the track does nothing. I think patching into the 
intents from the SemcMusicPlayer is doomed :(

Original comment by jon@sprig.gs on 22 Dec 2010 at 12:46