Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video is not playing with TLS1.3 camera server #26

Open
RajendraNayak opened this issue Mar 11, 2024 · 0 comments
Open

Video is not playing with TLS1.3 camera server #26

RajendraNayak opened this issue Mar 11, 2024 · 0 comments

Comments

@RajendraNayak
Copy link

Hi Team,
I am using this android SDK for my app.
SDK is working well & video is playing perfectly in app when backend camera server has TLS1.2 environment however video is not playing when it’s TLS 1.3
I am getting “Unable to connect to server” error.

I am using below config for MediaPlayer, do I need to set any additional parameters in order to work with TLS1.3?

Please help me, thanks in Advance.
Rajendra

MediaPlayerConfig.setLogLevelForJavaPart(MediaPlayerConfig.LogLevel.TRACE);
MediaPlayerConfig.setLogLevelForMediaPart(MediaPlayerConfig.LogLevel.DEBUG);

this.context = context;
this.url = url;
this.cameraEntity = entity;
this.id = siteId
this.config = new MediaPlayerConfig();
this.config.setConnectionUrl(this.url);
this.config.setConnectionBufferingTime(1000);
this.config.setConnectionDetectionTime(1000);
this.config.setAspectRatioMode(0);
this.isReconnecting = false;

this.config.setConnectionNetworkProtocol(3);
this.config.setInterruptOnClose(1);
this.config.setFastDetect(1);
this.config.setDecodingType(0);
this.config.setStartPreroll(0);

this.player = new MediaPlayer(context, false);
this.player.setSourceCommandNotifyListener(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant