Set VP8 as preferred codec when setting remote description.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2017-12-13 14:17:36 +01:00
Родитель a85a582015
Коммит 16d47c72b4
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -110,7 +110,8 @@
- (void)setRemoteDescription:(RTCSessionDescription *)sessionDescription
{
__weak NCPeerConnection *weakSelf = self;
[_peerConnection setRemoteDescription:sessionDescription completionHandler:^(NSError *error) {
RTCSessionDescription *sdpPreferringCodec = [ARDSDPUtils descriptionForDescription:sessionDescription preferredVideoCodec:@"VP8"];
[_peerConnection setRemoteDescription:sdpPreferringCodec completionHandler:^(NSError *error) {
NCPeerConnection *strongSelf = weakSelf;
if (strongSelf) {
[strongSelf peerConnectionDidSetSessionDescriptionWithError:error];