MCPcopy Create free account
hub / github.com/TelegramMessenger/tgcalls / makeVideoSource

Method makeVideoSource

tgcalls/platform/android/AndroidInterface.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> AndroidInterface::makeVideoSource(rtc::Thread *signalingThread, rtc::Thread *workerThread) {
58 JNIEnv *env = webrtc::AttachCurrentThreadIfNeeded();
59 _source = webrtc::CreateJavaVideoSource(env, signalingThread, false, false);
60 return webrtc::VideoTrackSourceProxy::Create(signalingThread, workerThread, _source);
61}
62
63bool AndroidInterface::supportsEncoding(const std::string &codecName) {
64 if (hardwareVideoEncoderFactory == nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected