|
|
|
@ -18,7 +18,7 @@ import java.util.jar.Manifest |
|
|
|
object MusicServiceStarter { |
|
|
|
private val TAG = "MusicServiceStarter" |
|
|
|
//播放单曲 |
|
|
|
fun startServiceWithCommand(context: Context, command: String, song: Map<String,String>? = null, volume: Float? = null, position: Int? = null) { |
|
|
|
fun startServiceWithCommand(context: Context, command: String, song: Map<String,Any>? = null, volume: Float? = null, position: Int? = null) { |
|
|
|
Log.i(TAG, "liwei------------------- startServiceWithCommand: $command $song") |
|
|
|
val intent = Intent(context, MusicService::class.java).apply { |
|
|
|
putExtra("command", command) |
|
|
|
|