software developers at work

Android OpenSDK Methods

This page lists all the methods available in the Streamaxia OpenSDK Android library.

Method and Description

getCurrentVideoOutputResolution()
Returns the current output resolution

getFramerate()
Get current framerate.

getKeyframeInterval()
Get current keyframe interval.

getSupportedPictureSizes(int orientation)
Get the list of supported streaming resolutions for the current camera.

isAudioSoftEncode()
Check if it is using the audio soft encoder.

isMute()
Check if the publisher is currently set on mute.

pauseRecord()
When invoked it will pause the recording of the video.

resumeRecord()
When invoked it will resume the recording of the video, if the pauseRecord()

setAudioSoftEncode(boolean audioSoftEncode)
Set audio soft encode.

setCameraFacing(int id)
Set the camera by id.

setEncoderHandler(EncoderHandler handler)
Sets the event event on the Publisher object.

setFramerate(int framerate)
Set the streaming and recording framerate.

setKeyframeInterval(int keyframeInterval)
Set the streaming keyframe interval.

setMute()
When invoked will set the encoder to send only video, with no audio.

setRecordEventHandler(RecordHandler handler)
Sets the publisher event on the Publisher object.

setRtmpHandler(RtmpHandler handler)
Sets the publisher event on the Publisher object.

setScreenOrientation(int orientation)
Sets the orientation of the Android RTMP video output.

setVideoBitRate(int bitRate)
When invoked sets a new bitrate.

setVideoOutputResolution(int width, int height, int orientation)
Set the Android RTMP video output resolution.

startPublish(java.lang.String rtmpUrl)
When invoked will start the process of streaming; Please note that you will need to provide your own media server, like Wowza.

startRecord(java.lang.String recordingPath)
When invoked it will start the local recording/saving of the video

stopPublish()
When invoked will stop the streaming process

stopRecord()
When invoked it will stop the last initiated recording.

switchCamera()
When invoked will switch the camera.

switchToHardEncoder()
When invoked will switch the encoder to hardware encoding.

switchToSoftEncoder()
When invoked will switch the encoder to software encoding.

Thank you for using Streamaxia!

Share This Story, Choose Your Platform!