|
Hermes 0.7.0
Linux game streaming host
|
Definitions for RTSP streaming. More...
#include <moonlight-common-c/src/Limelight-internal.h>#include <moonlight-common-c/src/Rtsp.h>#include <array>#include <cctype>#include <format>#include <set>#include <unordered_map>#include <utility>#include <boost/asio.hpp>#include <boost/bind.hpp>#include "config.h"#include "globals.h"#include "input.h"#include "logging.h"#include "network.h"#include "process.h"#include "rtsp.h"#include "stream.h"#include "sync.h"#include "video.h"Go to the source code of this file.
Classes | |
| struct | rtsp_stream::encrypted_rtsp_header_t |
| class | rtsp_stream::socket_t |
| class | rtsp_stream::rtsp_server_t |
Typedefs | |
| using | rtsp_stream::msg_t = util::safe_ptr<RTSP_MESSAGE, free_msg> |
| using | rtsp_stream::cmd_func_t = std::function<void(rtsp_server_t *server, tcp::socket &, launch_session_t &, msg_t &&)> |
Functions | |
| void | rtsp_stream::free_msg (PRTSP_MESSAGE msg) |
| void | rtsp_stream::print_msg (PRTSP_MESSAGE msg) |
| void | rtsp_stream::cmd_not_found (tcp::socket &sock, launch_session_t &, msg_t &&req) |
| void | rtsp_stream::respond (tcp::socket &sock, launch_session_t &session, POPTION_ITEM options, int statuscode, const char *status_msg, int seqn, const std::string_view &payload) |
| bool | rtsp_stream::launch_session_raise (std::shared_ptr< launch_session_t > launch_session) |
| void | rtsp_stream::launch_session_clear (uint32_t launch_session_id) |
| Clear state for the specified launch session. | |
| bool | rtsp_stream::cancel_pending_launch (const std::string_view &uuid) |
| int | rtsp_stream::session_count () |
| Get the number of active sessions. | |
| int | rtsp_stream::shared_session_count () |
| std::string_view | rtsp_stream::last_termination_reason () |
| Get a short identifier for why the most recent session ended. | |
| std::shared_ptr< stream::session_t > | rtsp_stream::find_session (const std::string_view &uuid) |
| std::optional< bool > | rtsp_stream::session_is_isolated (const std::string_view &uuid) |
| std::list< std::string > | rtsp_stream::get_all_session_uuids () |
| bool | rtsp_stream::terminate_session (const std::string_view &uuid) |
| void | rtsp_stream::terminate_shared_sessions () |
| void | rtsp_stream::terminate_sessions () |
| Terminates all running streaming sessions. | |
| int | rtsp_stream::send (tcp::socket &sock, const std::string_view &sv) |
| void | rtsp_stream::respond (tcp::socket &sock, launch_session_t &session, msg_t &resp) |
| void | rtsp_stream::cmd_option (rtsp_server_t *server, tcp::socket &sock, launch_session_t &session, msg_t &&req) |
| std::string | rtsp_stream::surround_params (int config) |
| The surround-params value the RTSP DESCRIBE reply advertises for an audio layout. | |
| void | rtsp_stream::cmd_describe (rtsp_server_t *server, tcp::socket &sock, launch_session_t &session, msg_t &&req) |
| void | rtsp_stream::cmd_setup (rtsp_server_t *server, tcp::socket &sock, launch_session_t &session, msg_t &&req) |
| void | rtsp_stream::cmd_announce (rtsp_server_t *server, tcp::socket &sock, launch_session_t &session, msg_t &&req) |
| void | rtsp_stream::cmd_play (rtsp_server_t *server, tcp::socket &sock, launch_session_t &session, msg_t &&req) |
| void | rtsp_stream::start () |
| Runs the RTSP server loop. | |
Variables | |
| rtsp_server_t | rtsp_stream::server {} |
Definitions for RTSP streaming.
Definition in file rtsp.cpp.
| using rtsp_stream::cmd_func_t = std::function<void(rtsp_server_t *server, tcp::socket &, launch_session_t &, msg_t &&)> |
| using rtsp_stream::msg_t = util::safe_ptr<RTSP_MESSAGE, free_msg> |
| bool rtsp_stream::cancel_pending_launch | ( | const std::string_view & | uuid | ) |
| void rtsp_stream::cmd_announce | ( | rtsp_server_t * | server, |
| tcp::socket & | sock, | ||
| launch_session_t & | session, | ||
| msg_t && | req ) |
| void rtsp_stream::cmd_describe | ( | rtsp_server_t * | server, |
| tcp::socket & | sock, | ||
| launch_session_t & | session, | ||
| msg_t && | req ) |
| void rtsp_stream::cmd_not_found | ( | tcp::socket & | sock, |
| launch_session_t & | session, | ||
| msg_t && | req ) |
| void rtsp_stream::cmd_option | ( | rtsp_server_t * | server, |
| tcp::socket & | sock, | ||
| launch_session_t & | session, | ||
| msg_t && | req ) |
| void rtsp_stream::cmd_play | ( | rtsp_server_t * | server, |
| tcp::socket & | sock, | ||
| launch_session_t & | session, | ||
| msg_t && | req ) |
| void rtsp_stream::cmd_setup | ( | rtsp_server_t * | server, |
| tcp::socket & | sock, | ||
| launch_session_t & | session, | ||
| msg_t && | req ) |
| std::shared_ptr< stream::session_t > rtsp_stream::find_session | ( | const std::string_view & | uuid | ) |
| std::list< std::string > rtsp_stream::get_all_session_uuids | ( | ) |
| std::string_view rtsp_stream::last_termination_reason | ( | ) |
| void rtsp_stream::launch_session_clear | ( | uint32_t | launch_session_id | ) |
| bool rtsp_stream::launch_session_raise | ( | std::shared_ptr< launch_session_t > | launch_session | ) |
| void rtsp_stream::respond | ( | tcp::socket & | sock, |
| launch_session_t & | session, | ||
| msg_t & | resp ) |
| void rtsp_stream::respond | ( | tcp::socket & | sock, |
| launch_session_t & | session, | ||
| POPTION_ITEM | options, | ||
| int | statuscode, | ||
| const char * | status_msg, | ||
| int | seqn, | ||
| const std::string_view & | payload ) |
| int rtsp_stream::send | ( | tcp::socket & | sock, |
| const std::string_view & | sv ) |
| int rtsp_stream::session_count | ( | ) |
| std::optional< bool > rtsp_stream::session_is_isolated | ( | const std::string_view & | uuid | ) |
| std::string rtsp_stream::surround_params | ( | int | config | ) |
The surround-params value the RTSP DESCRIBE reply advertises for an audio layout.
Channel count, stream count, coupled-stream count, then the channel mapping, with the normal-quality 5.1 and 7.1 mappings rotated to undo the rotation Moonlight applies to them.
| config | An audio::stream_config_e value. |
GFE advertises incorrect mapping for normal quality configurations, as a result, Moonlight rotates all channels from index '3' to the right To work around this, rotate channels to the left from index '3', over the channels of this layout: 6 for 5.1, 8 for 7.1.
| bool rtsp_stream::terminate_session | ( | const std::string_view & | uuid | ) |
| void rtsp_stream::terminate_sessions | ( | ) |
| void rtsp_stream::terminate_shared_sessions | ( | ) |