tcp - Streaming in PHP -
i'm searching best way i'm trying do, ask here... have webpage in php who's requesting song tcp server. song loaded temporary file on server. while it's loading, want play webpage or user's favorite player. possible refer file player, if it's not loaded ?
thanks !
edit:
i found great open-source player named jw player, seems able want, i'm not sure how ...
its little hard understand asking.
php not have threads limit in multiple tasks, possible so
the problem if fetching file in same php file loads player webpage going have issues.
you have resort several php pages complete task
firstly suer requests server song wishes play, have use ajax infrom server of id, ping script on server saying load video id xxxx in script starts downloading video, active player call file read segments of partially downloaded file , output player.
it complex , possibly error prone, best bet stream directly server2
Comments
Post a Comment