-
Notifications
You must be signed in to change notification settings - Fork 66
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
Flip Flop Camera #131
Comments
You can flip the preview or the stream using this methods: //only affect to preview (stream result no change)
rtmpCamera2.getGlInterface().setIsPreviewHorizontalFlip(true);
rtmpCamera2.getGlInterface().setIsPreviewVerticalFlip(true);
//only affect to stream result (preview no change)
rtmpCamera2.getGlInterface().setIsStreamHorizontalFlip(true);
rtmpCamera2.getGlInterface().setIsStreamVerticalFlip(true); |
same works on rtspServerCamera1? |
I am using surfaceView and RtspServerCamera1. I need to flip and flop on stream side. Thnx for help. |
Hello, You can't flip using SurfaceView. You will have to change to OpenGlView and then you can use that methods. |
it works on android 7.0 ? |
It works with Android 5.1+ |
where can I find rtsp + openGL sample? do you have any sample? Thank you |
You don't need change any code. |
I changed XML but crashes. Where is my mistake? Can you help? package com.pedro.sample import android.graphics.SurfaceTexture import java.io.IOException class CameraDemoActivity : AppCompatActivity(), ConnectChecker, ClientListener, private lateinit var httpServer: MyHTTPServer private lateinit var rtspServerCamera1: RtspServerCamera1 override fun onCreate(savedInstanceState: Bundle?) {
// window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
// rtspServerCamera1.prepareVideo(1920, 1080, 25, 1024 * 1200, 0)
} private fun startHttpServer() {
} override fun onRequestReceived(param1: String, param2: String) { private fun prepare(): Boolean { private fun adaptPreview() { override fun onNewBitrate(bitrate: Long) {} override fun onConnectionSuccess() { override fun onConnectionFailed(reason: String) { override fun onConnectionStarted(url: String) {} override fun onDisconnect() { override fun onAuthError() { override fun onAuthSuccess() { override fun onClientConnected(client: ServerClient) { override fun onDestroy() { override fun onClientDisconnected(client: ServerClient) { override fun onSurfaceTextureAvailable(surface: SurfaceTexture, width: Int, height: Int) { // // Ekranı 90 derece döndürme işlemi için Matrix oluştur override fun onSurfaceTextureSizeChanged(surface: SurfaceTexture, width: Int, height: Int) { } override fun onSurfaceTextureDestroyed(surface: SurfaceTexture): Boolean { override fun onSurfaceTextureUpdated(surface: SurfaceTexture) {} |
How can I flip flop camera?
The text was updated successfully, but these errors were encountered: