Skip to content

Files

Latest commit

bf05356 · Jul 22, 2020

History

History
executable file
·
40 lines (30 loc) · 1.27 KB

client_sdk_codec_configuration.md

File metadata and controls

executable file
·
40 lines (30 loc) · 1.27 KB

Introduction

This document provides the guide to configurate owt client publish/subscribe codec.

System Requirements

  • Ubuntu 18.04
  • owt-server v4.3.x
  • owt-client-android v4.3

OWT Client Android

Configurate codec in Android conference sample

  • Click "SETTINGS" button
    • Choose "vp9" in "Publish Video Codec"
  • Click "CONNECT" button
  • Click "PUBLISH" button
  • Click "SUBSCRIBE" button
    • Choose stream in "Remote Stream List"
    • Choose "vp9" in "VideoCodec List"

avatar

Android conference sample code

  //Publish vp9 stream
  VideoEncodingParameters vp9 = new VideoEncodingParameters(VP9);
  PublishOptions options = PublishOptions.builder().addVideoParameter(vp9).build();
  conferenceClient.publish(localStream, options, callback);

  //Subscribe vp9 stream
  VideoSubscriptionConstraints videoOption = videoOptionBuilder.addCodec(new VideoCodecParameters(VP9)).build();
  SubscribeOptions options = SubscribeOptions.builder(true, true)
                                             .setAudioOption(audioOption)
                                             .setVideoOption(videoOption)
                                             .build()
  conferenceClient.subscribe(remoteStream, options, callback)