Am new to this apps development. We are having two section am handling the php file that support the array which is json encode. We are doing a youtube playlist which is nee to play continuously.

Right now am sending two video details. When the user start the video first video will play and then the second video will start to loop twice or trice. then will move to the next video.

I am not able to edit the apps code, what i can do is with the php code section. Can anyone tell me what is happening here.

Is there any way to get the video details that loading in the apps without interfering with the code.

Is there any way to know the buffer system used by the apps using php only. Like when the buffer get empty or when the apps call the php file for reference etc.

Please anyone ... help me its urgent.