Friday, 15 June 2012

RTP RTSP implementation in javascript -



RTP RTSP implementation in javascript -

i have client programme , server program. server on localhost , has .mpeg video.

using node js supposed stream video server. client requests messages, such play/pause/resume/rewind etc. guess have utilize rtsp, figure out send on rtp. don't know start.

all have far regex filter message, illustration on client there buttons play/pause/setup etc. can grab text. , have switch. if setup should do?

p.s not allowed utilize rtsp modules or rtp modules. gotta scratch.

when streaming mpeg file on wire have tackle rtsp , rtp separately. rtsp used signaling, session establishing , starting underlying rtp stream.if need in node.js, recommend loading library implements rtsp/rtp(creating own quite undertaking, doable well).

some info on loading c++ libraries in node.js that: how can utilize c++ library node.js?

so basically, mpeg file, need extract raw h264 stream. recommend ffmpeg or other libraries/code understands mpeg file structure. need packetize encoded frames within of rtp packets; send client server. client depacketize encoded frames actual frame; , decoded/display them on screen .

i recommend reading http://www.ietf.org/rfc/rfc3984.txt info on standard way packetize h264 video.

this general approach, gives general idea. info helps, luck.

javascript rtsp

No comments:

Post a Comment