react-native-opentok icon indicating copy to clipboard operation
react-native-opentok copied to clipboard

Can we set opentok publisher view resolution ?

Open RoyalDeveloper2015 opened this issue 8 years ago • 6 comments

I want to set Opentok publisher stream resolution , so Could you tell me how to setting streamming resolution using this SDK.

RoyalDeveloper2015 avatar Nov 03 '17 00:11 RoyalDeveloper2015

You can use styles for it like i.e

<OpenTok.PublisherView
  style={{ height: 100, width: 200 }}
  sessionId={sessionId} 
  onPublishStart={() => { console.log('started')}} 
/>

dratwas avatar Nov 03 '17 09:11 dratwas

I think that is the size of OpenTok PublisherView but I want the streaming resolution. when I check that streaming resolution via OpenTok Playground , that is set 600 * 480. I want to set the resolution with 1024 * 768 when I do streaming. is it possible using this link ? Looking forward your solving. Thanks.

RoyalDeveloper2015 avatar Nov 03 '17 09:11 RoyalDeveloper2015

OTPublisherSettings *_publisherSettings = [[OTPublisherSettings alloc] init]; _publisherSettings.name = @"Bob's video"; _publisherSettings.audioTrack = NO; _publisherSettings.videoTrack = YES; _publisherSettings.cameraResolution = OTCameraCaptureResolutionHigh; _publisherSettings.cameraFrameRate = OTCameraCaptureFrameRate30FPS; _publisher = [[OTPublisher alloc] initWithDelegate:self settings:_publisherSettings];

here is original Opentok SDK for iPhone and there is option for setting Resolution and is there same function on this SDK ?

RoyalDeveloper2015 avatar Nov 03 '17 16:11 RoyalDeveloper2015

@RoyalDeveloper2015 There is no such a thing right now, but we could implement it, is a cool feature – good tip – thank you. Are you interested in making a PR?

jukben avatar Nov 06 '17 13:11 jukben

yes, if I can contribute to this , it would be appreciate.

RoyalDeveloper2015 avatar Nov 09 '17 21:11 RoyalDeveloper2015

I've already added for that and how can I commit that to this ?

RoyalDeveloper2015 avatar Nov 09 '17 22:11 RoyalDeveloper2015