Confirmed users
620
edits
Ethantseng (talk | contribs) |
Ethantseng (talk | contribs) |
||
| Line 82: | Line 82: | ||
* RTSP Controller | * RTSP Controller | ||
* Stagefright Library | * Stagefright Library | ||
[[File:RTSP_Framework_Overview.jpg| | [[File:RTSP_Framework_Overview.jpg|right|1024px]] | ||
==== HTML Media Element ==== | |||
Code path: | |||
m-c/content/html/content/public/HTMLMediaElement.h | |||
m-c/content/html/content/src/HTMLMediaElement.cpp | |||
m-c/content/media/MediaDecoder.h/cpp | |||
m-c/content/media/MediaResource.h/cpp | |||
m-c/content/media/RtspMediaResource.h/cpp | |||
==== | RtspMediaResource provides an interface to deliver and control RTSP media data to RtspOmxDecoder. <br> | ||
Note that the design and behavior of RTSP streaming are quite different from HTTP streaming. Please refer to the comments in RtspMediaResource.h for more detail. <br> | |||
<br> | |||
==== RTSP Channel ==== | |||
Code path: | |||
m-c/netwerk/protocol/RtspHandler.h/cpp | |||
m-c/netwerk/protocol/RtspChannelChild.h/cpp | |||
m-c/netwerk/protocol/RtspChannelParent.h/cpp | |||
Unlike other channels in Necko, RtspChannelChild is a dummy channel used to aid MediaResource creation in HTMLMediaElement. Network control and data flows are managed by RtspController objects, which is also responsible for IPC with the parent process. <br> | |||
For now, the existence of RtspChannelParent is only to support HTTP->RTSP redirection. <br> | |||
<br> | |||
==== RTSP Controller ==== | |||
Code path: | |||
m-c/netwerk/base/public/nsIStreamingProtocolController.idl | |||
m-c/netwerk/protocol/rtsp/controller/RtspController.h/cpp | |||
m-c/netwerk/protocol/rtsp/controller/RtspControllerChild.h/cpp | |||
m-c/netwerk/protocol/rtsp/controller/RtspControllerParent.h/cpp | |||
=== TCP-Interleaved RTP === | === TCP-Interleaved RTP === | ||
[[File:RTSP_Connect_and_Play_Activity_Diagram.jpg|left|1024px]] | [[File:RTSP_Connect_and_Play_Activity_Diagram.jpg|left|1024px]] | ||
[[File:RTSPSource_State_Diagram.jpg|left|1024px]] | [[File:RTSPSource_State_Diagram.jpg|left|1024px]] | ||