Android에서 RTSP 서버를 구현할 수 없습니다.

비닛 샨 딜야

내 카메라 피드를 VLC 미디어 플레이어로 라이브 스트리밍하기 위해 Android에서 경량 RTSP 서버를 구현하려고합니다. 이를 위해 libstreaming 라이브러리를 사용 하고 있습니다. Android Studio에서 라이브러리를 성공적으로 가져 왔고 서버 측 스켈레톤 코드 를 컴파일하고 실행했습니다 . 불행히도 프로그램이 예상대로 작동하지 않습니다. 카메라 미리보기가로드되지 않고 VLC 미디어 플레이어에서 MRL을 읽을 수 없습니다. 전에이 문제에 직면 한 사람이 있습니까? 어떤 도움을 주시면 감사하겠습니다! 미리 감사드립니다. 지금까지 시도한 내용은 다음과 같습니다.

    public class MainActivity extends Activity {

    private final static String TAG = "MainActivity";

    private SurfaceView mSurfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        setContentView(R.layout.activity_main);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

        mSurfaceView = (SurfaceView) findViewById(R.id.surface);

        // Sets the port of the RTSP server to 1234
        Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();
        editor.putString(RtspServer.KEY_PORT, String.valueOf(1234));
        editor.commit();

        // Configures the SessionBuilder
        SessionBuilder.getInstance()
                .setSurfaceView(mSurfaceView)
                .setPreviewOrientation(90)
                .setContext(getApplicationContext())
                .setAudioEncoder(SessionBuilder.AUDIO_NONE)
                .setVideoEncoder(SessionBuilder.VIDEO_H264);

        // Starts the RTSP server
        this.startService(new Intent(this,RtspServer.class));

    }

}

MRL에 액세스하려고합니다 : rtsp : //192.168.2.3 : 1234 /

Umair

시도중인 코드가 좋습니다. URL은 특정 형식을 가져야합니다.

VLC 플레이어의 URL은 rtsp : // phone_local_ip : 1234? h264 = 200-20-320-240이어야합니다.

200 = buf | 20 = fps | 320 = 너비 | 240 = 높이

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

Kotlin(Android Studio)에서 Groupie를 구현할 수 없습니다.

SwiftUI에서 Apple Pay를 구현할 수 없습니다.

JavaScript에서 forEach 루프를 구현할 수 없습니다.

Android 프로젝트에서 Google지도를 구현할 수 없습니다.

Android + Wowza + RTSP. 잘 재생되지만 MediaController를 제어 할 수 없습니다.

vlc를 통해 rtsp 스트림에 연결할 수 없습니다.

Kurento KMS를 RTSP 멀티 캐스트 URI에 연결할 수 없습니다.

React에서 리디렉션을 구현할 수 없습니다.

Runnable에서 run ()을 구현할 수 없습니다.

Python에서 cross_validation을 구현할 수 없습니다.

AppCompatActivity에서 구현할 수 없습니다.

iOS에서 FFmpeg를 사용하여 로컬 rtsp URL을 재생할 수 없습니다.

editext에서 도구 설명보기를 구현할 수 없습니다.

editext에서 도구 설명보기를 구현할 수 없습니다.

ionic에서 RTSP iptv를 스트리밍 할 수 있습니까?

Rails에서 앱 서버와 웹 서버를 구별 할 수 없습니다.

다른 클래스에서 onclick 리스너를 구현하는 버튼을 실행할 수 없습니다.

HTML 웹사이트에서 다크 모드를 구현할 수 없습니다.

gst-rtsp-server를 빌드 할 수 없습니다.

확장 메서드는 ToString을 구현할 수 없습니다.

html 내부에 django를 구현할 수 없습니다.

Angular 7의 FusionCharts에서 Gantt 차트를 구현할 수 없습니다.

일반 구현에서 [Int]를 [Int]로 변환 할 수 없습니다.

C++에서 <pair<int, int*> > 큐를 구현할 수 없습니다.

샘플 프로젝트에서 DisplayPrompt를 구현할 수 없습니다.

C ++ Visual Studio에서 추상 클래스를 구현할 수 없습니다.

Spring Boot에서 Elasticsearch로 Reactive Repository를 구현할 수 없습니다.

IE11에서 rtsp throuth vlc 플러그인을 재생할 수 없습니다.

서버에서 보낸 현재 데이터를 표시 할 수 없습니다.