whip-service.h 506 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <obs-module.h>
  3. #include <string>
  4. #define MAX_CODECS 3
  5. struct WHIPService {
  6. std::string server;
  7. std::string bearer_token;
  8. WHIPService(obs_data_t *settings, obs_service_t *service);
  9. void Update(obs_data_t *settings);
  10. static obs_properties_t *Properties();
  11. static void ApplyEncoderSettings(obs_data_t *video_settings,
  12. obs_data_t *audio_settings);
  13. bool CanTryToConnect();
  14. const char *GetConnectInfo(enum obs_service_connect_info type);
  15. };
  16. void register_whip_service();