Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
rtsp.h File Reference

Declarations for RTSP streaming. More...

#include <array>
#include <atomic>
#include <cstddef>
#include <cstdint>
#include <string>
#include "crypto.h"
#include "thread_safe.h"
Include dependency graph for rtsp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rtsp_stream::launch_session_t::audio_negotiation_t
 Audio-related capabilities and codec choice exchanged during RTSP setup. More...
struct  rtsp_stream::encrypted_rtsp_header_t
 Encrypted RTSP message header used by GameStream. More...
struct  rtsp_stream::launch_session_t
 RTSP launch session state shared with stream setup. More...

Functions

void rtsp_stream::launch_session_clear (uint32_t launch_session_id)
 Clear state for the specified launch session.
void rtsp_stream::launch_session_raise (std::shared_ptr< launch_session_t > launch_session)
 Queue a launch session until the RTSP client connects.
int rtsp_stream::session_count ()
 Get the number of active sessions.
void rtsp_stream::start ()
 Runs the RTSP server loop.
void rtsp_stream::terminate_sessions ()
 Terminates all running streaming sessions.
void rtsp_stream::terminate_sessions_by_cert (std::string_view cert)
 Terminate active sessions associated with a client certificate.

Variables

constexpr auto rtsp_stream::RTSP_SETUP_PORT = 21
 GameStream base-port offset used for the RTSP setup listener.

Detailed Description

Declarations for RTSP streaming.

Function Documentation

◆ launch_session_clear()

void rtsp_stream::launch_session_clear ( uint32_t launch_session_id)

Clear state for the specified launch session.

Parameters
launch_session_idThe ID of the session to clear.

◆ launch_session_raise()

void rtsp_stream::launch_session_raise ( std::shared_ptr< launch_session_t > launch_session)

Queue a launch session until the RTSP client connects.

Parameters
launch_sessionSession state prepared by the GameStream launch handler.

◆ session_count()

int rtsp_stream::session_count ( )

Get the number of active sessions.

Returns
Count of active sessions.

◆ terminate_sessions_by_cert()

void rtsp_stream::terminate_sessions_by_cert ( std::string_view cert)

Terminate active sessions associated with a client certificate.

Parameters
certCertificate data or object used by the operation.