Skip to content

Going live from android video is zoomed in web and IOS #152

Description

@Amitdygon

Here My first Android live image
Screenshot_20220531_142341

Here what i got into web
image

code to send ar view

` val outBitmap = Bitmap.createBitmap(arFragment!!.arSceneView.width, arFragment!!.arSceneView.height, Bitmap.Config.ARGB_8888)
arFragment?.arSceneView?.let { PixelCopy.request(it, outBitmap, { copyResult ->
if (copyResult == PixelCopy.SUCCESS) {
sendARView(outBitmap)
}

            }, mSenderHandler!!)
    }

`

Code to init agora
` rtcEngine()?.setParameters("{"rtc.log_filter": 65535}")
rtcEngine()?.setChannelProfile(io.agora.rtc.Constants.CHANNEL_PROFILE_LIVE_BROADCASTING)
rtcEngine()?.enableDualStreamMode(true)
rtcEngine()?.setVideoEncoderConfiguration(
VideoEncoderConfiguration(
VideoEncoderConfiguration.VD_640x480,
VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_30,
VideoEncoderConfiguration.STANDARD_BITRATE,
VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_ADAPTIVE
)
)
rtcEngine()?.setClientRole(role)
rtcEngine()?.enableVideo()
mSource = AgoraVideoSource()
mRender = AgoraVideoRender(0, true)
rtcEngine()?.setVideoSource(mSource)
rtcEngine()?.setLocalVideoRenderer(mRender)

        rtcEngine()?.joinChannel(token, channelName, "", 0)`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions