Monday, 15 April 2013

php - Live Streaming a Video File -



php - Live Streaming a Video File -

i have create theatre effect on website such video needs streamed users of website can see simultaneously.

i have checked ustream, livstream etc allow webcam streamed online. functionality need similar how see cricket/soccer match online users see same clip. difference have video needs streamed.

please help.

regards

it's not possible php because can't handle multiple http request in php script. however, can node.js. can first store each user's http request , time in array, find out first 1 watch video. calculate video's elapsed time , piece video. send video current client.

another solution (if decided utilize node.js)

simulate playing of video on server side using settimeout when first user request video. when other users request video piece , send client. because simulate playing on server side, can no need calculate elapsed time of video.

the slicing of video can done ffmpeg easily.

php video-streaming live-meeting

No comments:

Post a Comment