2017년 3월 16일 목요일

Music List


I have read the tutorial on how to use a list to play two different audio sounds as one starts the other stops and this is a convenient method for two or three audio sounds however is there a block or blocks that can be used to enable an audio to stop as another one starts to play . I would like to make this:  package several music files as a standalone Android music library Can anyone offer advice 

-- 
You would need to use some logic to test for the player's state.
For example,
if Player1.isPlaying (
Player1.stop
Player2.start
)
Or, if you just use one player, simply changing the player source and then calling Player1.start will stop the existing sound.

--
phantomfoot 
Many thanks for the reply 

--

댓글 없음:

댓글 쓰기