alongubkin / alongubkin/phonertc

iOS: Change default resolution

Aberta
#57 3 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
Objective-C
Estrelas
864
Forks
298
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi, just wonder how to change default resolutions. Because it looks like ipad mini cannot handler 640*480 quite well.

I change the constrains to

```
self.constraints = [[RTCMediaConstraints alloc]
initWithMandatoryConstraints:
@[
[[RTCPair alloc] initWithKey:@"OfferToReceiveAudio" value:@"true"],
[[RTCPair alloc] initWithKey:@"OfferToReceiveVideo" value:(self.doVideo ? @"true" : @"false")],
++[[RTCPair alloc] initWithKey:@"maxWidth" value:@"320"],
++[[RTCPair alloc] initWithKey:@"minWidth" value:@"320"],
++[[RTCPair alloc] initWithKey:@"maxHeight" value:@"240"],
++ [[RTCPair alloc] initWithKey:@"minHeight" value:@"240"],
++ [[RTCPair alloc] initWithKey:@"maxFrameRate" value:@"15"],
]
optionalConstraints:
@[
[[RTCPair alloc] initWithKey:@"internalSctpDataChannels" value:@"true"],
[[RTCPair alloc] initWithKey:@"DtlsSrtpKeyAgreement" value:@"true"],
]
];
```

But threw this error: "CreateAnswer called with invalid constraints". I have been googling for a while and still no answer, could you guys help me with this ? Thank you

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.