You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eliza <el...@ChinaBuckets.com> on 2019/08/19 02:47:14 UTC

stream media service

Hello,

Can anybody point me the right way to run MP handler as a stream media 
service?

I just got the requirement but have no ieda on it.

Thanks.

Re: stream media service (RTMP / custom protocols)

Posted by Randolf Richardson <ra...@modperl.pl>.
	A cursory CPAN search for RTMP yielded a small number of results, 
and this Wikipedia article explains that the protocol was released by 
Adobe but that the documentation is incomplete:

		https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol
		"Real-Time Messaging Protocol (RTMP) was initially a proprietary 
protocol developed by Macromedia for streaming audio, video and data 
over the Internet, between a Flash player and a server.  Macromedia 
is now owned by Adobe, which has released an incomplete version of 
the specification of the protocol for public use."

	Without proper documentation, implementation could be a lot more 
difficult (albeit also educational), and might even require some 
reverse-engineering (which typically runs the risk of overlooking 
subtleties or missing important features).

	If you're using TCP, then you should be able to implement this with 
ModPerl, but if you're using UDP (which, as I understand, is 
generally preferred for these types of protocols) then you'll 
probably be better off with a specialist daemon (VideoLAN/VLC my be 
able to do this) to serve this in a more direct and efficient way.  
Of course, the advantage of using ModPerl for this is that you can 
implement specifically customized user-centric access control.

	As far as I know, Apache HTTPd doesn't have any options for 
listening for UDP packets, and the history in this likely involves 
the fact that HTTP was designed with only TCP in mind.  While ModPerl 
can cetainly be used to implement different protocols (I've done this 
before, and I recall once seeing an implementation of an SMTP server 
written in Perl that takes advantage of this capability of ModPerl), 
these protocols will most likely all need to be TCP-based.

> Hi
> 
> on 2019/8/21 0:13, Randolf Richardson wrote:
> > Which streaming protocol(s) do you need to implement?
> 
> we use RTMP.
> 
> regards.

Randolf Richardson - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/



Re: stream media service

Posted by Eliza <el...@ChinaBuckets.com>.
Hi

on 2019/8/21 0:13, Randolf Richardson wrote:
> Which streaming protocol(s) do you need to implement?

we use RTMP.

regards.

Re: stream media service

Posted by Randolf Richardson <ra...@modperl.pl>.
	Which streaming protocol(s) do you need to implement?

> Hello,
> 
> Can anybody point me the right way to run MP handler as a stream media 
> service?
> 
> I just got the requirement but have no ieda on it.
> 
> Thanks.


Randolf Richardson - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/