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
In my app i have a option to change the video size, I have tried by changing it by modifying Video Configuration File and also tested via debugging in Library it is uploading the right modified size,
But when i am testing on VLC at receiving end. Video size is not changed.
This particular thing is working when i am trying to change Video Configuration after killing the app as it is creating a new session for the streaming, but while i tried the same option of changing the video resolution during the app. It is not reflecting on server end?
Is there any way to recreate Session of the app?
suggestions please
The text was updated successfully, but these errors were encountered:
I spent some time doing research on this and I have a solution that actually works:
Add a refreshVideoSource in LFLiveSession.m:
-(void)refreshVideoSource {
_videoCaptureSource = nil;
_audioCaptureSource = nil;
}
1.5) Also add headers to LFLiveSession.h:
-(void) refreshVideoSource;
Change resolution like this:
[self.session stopLive];
[self.session setRunning:NO];
[self.session refreshVideoSource];
self.session = nil;
// RECREATE HERE YOUR session OBJECT WITH THE NEW LFLiveVideoConfiguration
[self.session setRunning:YES];
[self.session startLive:stream];
I am unable to resize the video dynamically while using in the App. I have tried it by changing video configuration file in my view controller file.
I have created a session using
var session: LFLiveSession = LFLiveSession(audioConfiguration: LFLiveAudioConfiguration.defaultConfiguration(for: LFLiveAudioQuality.medium), videoConfiguration: LFLiveVideoConfiguration.defaultConfiguration(for: LFLiveVideoQuality.medium2), captureType: LFLiveCaptureTypeMask.captureDefaultMask)!
method.
In my app i have a option to change the video size, I have tried by changing it by modifying Video Configuration File and also tested via debugging in Library it is uploading the right modified size,
But when i am testing on VLC at receiving end. Video size is not changed.
This particular thing is working when i am trying to change Video Configuration after killing the app as it is creating a new session for the streaming, but while i tried the same option of changing the video resolution during the app. It is not reflecting on server end?
Is there any way to recreate Session of the app?
suggestions please
The text was updated successfully, but these errors were encountered: