2020-02-08 15:26:38 +00:00
|
|
|
//
|
|
|
|
// Created by loki on 2/2/20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SUNSHINE_RTSP_H
|
|
|
|
#define SUNSHINE_RTSP_H
|
|
|
|
|
|
|
|
#include <atomic>
|
|
|
|
|
|
|
|
#include "crypto.h"
|
|
|
|
#include "thread_safe.h"
|
|
|
|
|
|
|
|
namespace stream {
|
|
|
|
struct launch_session_t {
|
|
|
|
crypto::aes_t gcm_key;
|
|
|
|
crypto::aes_t iv;
|
2021-05-19 19:44:42 +00:00
|
|
|
|
|
|
|
bool host_audio;
|
2020-02-08 15:26:38 +00:00
|
|
|
};
|
|
|
|
|
2020-03-18 20:12:05 +00:00
|
|
|
void launch_session_raise(launch_session_t launch_session);
|
|
|
|
int session_count();
|
2020-02-08 15:26:38 +00:00
|
|
|
|
2020-02-09 23:33:12 +00:00
|
|
|
void rtpThread(std::shared_ptr<safe::signal_t> shutdown_event);
|
2020-02-08 15:26:38 +00:00
|
|
|
|
2021-05-17 19:21:57 +00:00
|
|
|
} // namespace stream
|
2020-02-08 15:26:38 +00:00
|
|
|
|
|
|
|
#endif //SUNSHINE_RTSP_H
|