how to play and manage multiple videos in ios
Posted: Mon Mar 17, 2014 7:03 am
Hi guys,
I got a big problem in managing multiple ios players(video players) in a single card.
My aim is to play and pause atleast two ios players simultaneously in a singel card.
for example iosplayer1 is running, at this time i have to pause the running video and have to play another video(video2).
but when video2 is playing automatically first paused video is stopping, and playerfinished event is firing.
and also we have another problem , we are unable to find which iosplayer is fired playerfinished event.(if we have two players.)
I have tried this concept using layers, 1 layer- iosplayer1, and 2nd layer-iosplayer2 , even this concept also running only one player at a time, pushing other player to stop.
so, i implemented iosplayer1 on card1, iosplayer2 on card2, its works fine, but i need touchMove, touchEnd should be worked on these cards. i.e if touchMove is fired on card1 , touchEnd can recognised in card1 only, we cannot recognise touchEnd of card1 in card2 .
Simply touchMove, touchEnd functions can work on single card only, is there is chance to eork them on multple card?
if i unable to explain my problem clearly iam sorry, please help me,.
THANKYOU
I got a big problem in managing multiple ios players(video players) in a single card.
My aim is to play and pause atleast two ios players simultaneously in a singel card.
for example iosplayer1 is running, at this time i have to pause the running video and have to play another video(video2).
but when video2 is playing automatically first paused video is stopping, and playerfinished event is firing.
and also we have another problem , we are unable to find which iosplayer is fired playerfinished event.(if we have two players.)
I have tried this concept using layers, 1 layer- iosplayer1, and 2nd layer-iosplayer2 , even this concept also running only one player at a time, pushing other player to stop.
so, i implemented iosplayer1 on card1, iosplayer2 on card2, its works fine, but i need touchMove, touchEnd should be worked on these cards. i.e if touchMove is fired on card1 , touchEnd can recognised in card1 only, we cannot recognise touchEnd of card1 in card2 .
Simply touchMove, touchEnd functions can work on single card only, is there is chance to eork them on multple card?
if i unable to explain my problem clearly iam sorry, please help me,.
THANKYOU