You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am going to add some features to your app, but I can't enable/disable camera
I'm trying the following to disable :
let factory = PeerConnectionFactory.sharedInstance.factory
if let stream = factory.mediaStream(withLabel: "ARDAMS") {
stream.removeVideoTrack(PeerConnectionFactory.sharedInstance.createLocalVideoTrack())
}
and to enable it :
let factory = PeerConnectionFactory.sharedInstance.factory
if let stream = factory.mediaStream(withLabel: "ARDAMS") {
stream.addVideoTrack(PeerConnectionFactory.sharedInstance.createLocalVideoTrack())
}
but without solution?
The text was updated successfully, but these errors were encountered:
I am going to add some features to your app, but I can't enable/disable camera
I'm trying the following to disable :
let factory = PeerConnectionFactory.sharedInstance.factory
if let stream = factory.mediaStream(withLabel: "ARDAMS") {
stream.removeVideoTrack(PeerConnectionFactory.sharedInstance.createLocalVideoTrack())
}
and to enable it :
let factory = PeerConnectionFactory.sharedInstance.factory
if let stream = factory.mediaStream(withLabel: "ARDAMS") {
stream.addVideoTrack(PeerConnectionFactory.sharedInstance.createLocalVideoTrack())
}
but without solution?
The text was updated successfully, but these errors were encountered: