webrtc: ensure that keyframe is requested at start of stream
This commit is contained in:
parent
1c806508f4
commit
60f7aa1ceb
@ -129,14 +129,14 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
char *name;
|
char *name = NULL;
|
||||||
std::string id;
|
std::string id;
|
||||||
std::shared_ptr<rtc::PeerConnection> pc;
|
std::shared_ptr<rtc::PeerConnection> pc;
|
||||||
std::shared_ptr<ClientTrackData> video;
|
std::shared_ptr<ClientTrackData> video;
|
||||||
std::mutex lock;
|
std::mutex lock;
|
||||||
std::condition_variable wait_for_complete;
|
std::condition_variable wait_for_complete;
|
||||||
bool had_key_frame;
|
bool had_key_frame = false;
|
||||||
bool requested_key_frame;
|
bool requested_key_frame = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::shared_ptr<Client> findClient(std::string id)
|
std::shared_ptr<Client> findClient(std::string id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user