<divclass="textblock"><p><aclass="anchor"id="md_docs_html_INDEX"></a> To use uvgRTP, you must first create a <aclass="el"href="classuvgrtp_1_1context.html">uvgrtp::context</a> object</p>
<p>Then you need to allocate a <aclass="el"href="classuvgrtp_1_1session.html">uvgrtp::session</a> object from the context object by calling <aclass="el"href="classuvgrtp_1_1context.html#aa109aa2a419933359d225d19bcf3b2f9"title="Create a new RTP session.">uvgrtp::context::create_session()</a></p>
<p>Finally, you need to allocate a <aclass="el"href="classuvgrtp_1_1media__stream.html">uvgrtp::media_stream</a> object from the allocated session object by calling <aclass="el"href="classuvgrtp_1_1session.html#a71aad1226214b1b0b1ba60a46c048ab2"title="Create a bidirectional media stream for an RTP session.">uvgrtp::session::create_stream()</a></p>
<p>This object is used for both sending and receiving, see documentation for <aclass="el"href="classuvgrtp_1_1media__stream.html#ab2b7507d5b2c76bef74c9bceec07ba18"title="Send data to remote participant with a custom timestamp.">uvgrtp::media_stream::push_frame()</a>, <aclass="el"href="classuvgrtp_1_1media__stream.html#ae2fe9e8d9b67e25f103a78a25417149f"title="Poll a frame indefinitely from the media stream object.">uvgrtp::media_stream::pull_frame()</a> and <aclass="el"href="classuvgrtp_1_1media__stream.html#a74a558b23866976e52c5903996544a27"title="Asynchronous way of getting frames.">uvgrtp::media_stream::install_receive_hook()</a> for more details. </p>