Networking/Archive/RTSP: Difference between revisions

Jump to navigation Jump to search
Line 78: Line 78:
== Implementation ==
== Implementation ==
=== Framework Overview ===
=== Framework Overview ===
[[File:RTSP_Framework_Overview.jpg|center|1024px]] <br style="clear:both;" />
This class diagram illustrates the most important components in our current RTSP framework.
This class diagram illustrates the most important components in our current RTSP framework.
We can divide the framework into four major sub-modules:
We can divide the framework into four major sub-modules:
Line 85: Line 84:
* RTSP Controller
* RTSP Controller
* Stagefright Library
* Stagefright Library
[[File:RTSP_Framework_Overview.jpg|left|1024px]] <br style="clear:both;" />


==== HTML Media Element ====
==== HTML Media Element ====
Line 127: Line 127:
However, please note that currently we still depend on the utilities from Android foundation, such as ABuffer, ALooper and AMessage, etc. <br>
However, please note that currently we still depend on the utilities from Android foundation, such as ABuffer, ALooper and AMessage, etc. <br>
The class RTSPSource is used directly by RtspController to perform operations, such as establishing RTSP connection and sending RTSP requests.
The class RTSPSource is used directly by RtspController to perform operations, such as establishing RTSP connection and sending RTSP requests.
<br><br>
=== Shutdown/Close RtspMediaResource ===
This sequence diagram illustrates a series of actions involved in closing RtspMediaResource. <br>
This digram also reveals the components and their relationships between HTMLMediaElement and RTSP modules. <br>
[[File:Close_RtspMediaResource.jpg|left|1024px]] <br style="clear:both;" />
<br><br>
<br><br>


Line 150: Line 156:
This activity diagram illustrates a series of actions to transit from DISCONNECTED to CONNECTING, CONNECTED and PLAYING states. <br>
This activity diagram illustrates a series of actions to transit from DISCONNECTED to CONNECTING, CONNECTED and PLAYING states. <br>
It also reveals the flow chart of failing back to TCP-interleaved RTP transport. <br>
It also reveals the flow chart of failing back to TCP-interleaved RTP transport. <br>
[[File:RTSP_Connect_and_Play_Activity_Diagram.jpg|center|1024px]] <br style="clear:both;" />
[[File:RTSP_Connect_and_Play_Activity_Diagram.jpg|left|1024px]] <br style="clear:both;" />
<br>
<br>
This diagram models the state machine of RTSPSource class. <br>
This diagram models the state machine of RTSPSource class. <br>
[[File:RTSPSource_State_Diagram.jpg|center|1024px]] <br style="clear:both;" />
[[File:RTSPSource_State_Diagram.jpg|left|1024px]] <br style="clear:both;" />
Confirmed users
620

edits

Navigation menu