android - Music player controlled from ADB -
i writing automation scripts android device, communicate device on adb. know if there music player can play mp3 , controlled via adb.
i need following controls -
- start mp3 playback
- stop mp3 playback
- toggle repeat mode
is possible achieve same via google music player in android m?
in android m, can play mp3 using following command -
am start -a android.intent.action.view -d <filename> -n com.google.android.music/.audiopreview -f 1
it starts playback correctly, not able stop or play in loop.
have tried following stop music:
adb shell input keyevent 127
Comments
Post a Comment