Android Google Music app stops when my intro video plays

前端 未结 3 509
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 13:40

I\'m using a VideoView in my Android app to display the intro animation.

If the Google Music App is playing music in the background, calling videoview.start() stops

3条回答
  •  被撕碎了的回忆
    2020-12-18 14:35

    Taken from openVideo() in VideoView.java

     Intent i = new Intent("com.android.music.musicservicecommand");
     i.putExtra("command", "pause");
     mContext.sendBroadcast(i);
    

提交回复
热议问题