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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -