feat: video publishing (#42)
- Prepare webrtc abstraction ( for future wasm support ) - Added track publish support for videos - Added LogoTrack example to simple_room demo - Lot of cleanup - There are compiler warnings I'll solve on our v1 release
This commit is contained in:
@@ -21,7 +21,7 @@ namespace livekit {
|
||||
webrtc::RtpTransceiverInit to_native_rtp_transceiver_init(
|
||||
RtpTransceiverInit init) {
|
||||
{
|
||||
webrtc::RtpTransceiverInit native;
|
||||
webrtc::RtpTransceiverInit native{};
|
||||
native.direction =
|
||||
static_cast<webrtc::RtpTransceiverDirection>(init.direction);
|
||||
native.stream_ids = std::vector<std::string>(init.stream_ids.begin(),
|
||||
@@ -95,6 +95,7 @@ void RtpTransceiver::stop_standard() const {
|
||||
void RtpTransceiver::set_codec_preferences(
|
||||
rust::Vec<RtpCodecCapability> codecs) const {
|
||||
std::vector<webrtc::RtpCodecCapability> std_codecs;
|
||||
|
||||
for (auto codec : codecs)
|
||||
std_codecs.push_back(to_native_rtp_codec_capability(codec));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user