Want to implement a very basic RTP stream in PHP:
The RTP information for the stream:
* The codec specifies G.711 mu-Law.
* The packet size specifies 20 ms.
Basically, i would have a wav or au file in the above codec, i want to make php send this info as an rtp stream to a specific IP (which is set to recieve) on port 20002
I'm thinking something like:
n: attachment; filename=".$file."\n");
$fp = fopen($filename, 'rb');
print fread($fp, 4096); }
Where audio/mp3 would be replaced with something more appropriate and i would call the script like rtsp://domain/test.php.
I have no idea where to start or if RTSP even accepts headers, or how to make php broadcast on port 20002.
Any reasonable insight would be rewarded.