Forum Discussion
tar
10 years agoVisitor
So the problem is the next: if a node that contains Audio is being added to the m.global directly or as a child of other node in m.global - then it will never stop playing even if Home button is pressed.
My setup is:
MyPlayer (Group) - > Audio Node
MyPlayerScreen (Group) - > MyPlayer (initialized once, set to global, taken from global after next screen initialization)
Cases:
1. Don't add MyPlayer to the global Scene or m.global -> Audio stops when leaving MyPlayerScreen, which is not acceptable.
2. Add MyPlayer to the m.global
Audio does not stop after pressing Home button
2. Add MyPlayer to the m.global.scene child
Same result. Audio does not stop after pressing Home button.
But I need to access my player globally, and it should play on any screen. How can I achieve that any other way?
My setup is:
MyPlayer (Group) - > Audio Node
MyPlayerScreen (Group) - > MyPlayer (initialized once, set to global, taken from global after next screen initialization)
Cases:
1. Don't add MyPlayer to the global Scene or m.global -> Audio stops when leaving MyPlayerScreen, which is not acceptable.
2. Add MyPlayer to the m.global
m.global.addField("myPlayer", "node", false)
m.global.myPlayer = m.myPlayerAudio does not stop after pressing Home button
2. Add MyPlayer to the m.global.scene child
m.global.scene.AppendChild(m.myPlayer)
Same result. Audio does not stop after pressing Home button.
But I need to access my player globally, and it should play on any screen. How can I achieve that any other way?