Why I can't play a song(from another app) while playing my game(canvas +)?


#1
  • Cocoon Version:
    What Cocoon version are you using to compile (i.e. 1.0.0)?
    Latest

  • Basic description of the problem:
    Describe the issue
    my Song stopped playing when i opened the app

  • Device info:
    Model, OS version…
    android oreo

  • Steps will reproduce the problem:

  1. First step
  2. Second step
  • Expected result:
    What’s the expected result?
    i can play both my favourite song and game

  • Error log
    Relevant error log. Or you can attach the log file if it’s too big

  • Testcase:
    Attach a compressed test case to reproduce the issue

  • Other information:
    Any other information that you feel is relevant

  • Webview engine(s):
    Webview engine that you are using

  • Used plugins (if relevant):
    Any relevant plugins that you are using
    i didnt find the plugin yet. i hope we can share the plugin for android device here

  • Framework/game engine (if relevant):
    The Framework that you are using


#2

I encountered this too, here's the answer that helped me: How to make android keep playing music while playing our Cocoon games?


#3

thanks for the solutions
ya, my game can play its music but when it comes to music from another app it will stop the music when we open our games.
i want we can play music from another app while we’re playin’ our games(canvas+)
but it works with webview+
it’s okay for a simple and light game but not for the heavier game(for webview+, i think)