nklhtv/react-native-vlc2

rtsp: slow closing after play

Closed this issue · 11 comments

I tried to call pause () with componentWillUnmount but also slowly.
How to stop the vlc so that there is no delay when the component is destroyed?

Can you give me video url to help me reproduce this issue?

rtsp://root:1234@176.193.75.143:7888/videoMain

may be create stop method which will force clear vlcIt may be necessary to make a stop method which will force the components?

The bottleneck is somewhere else. I will debug it tomorrow or by the end of the week.

I conducted the investigation and found out that this problem is libvlc with rtsp work and fixed in version 2.1.0

This plugin still use libvlc 2.0.6
The latest version must be compiled

Hi, there are a lot of changes in the latest versions.
I used de.mrmaffen:libvlc-android:2.1.12
In this version there is no Callback -> public void onNewLayout replace OnNewVideoLayoutListener -> public void onNewVideoLayout also no Callback -> public void onHardwareAccelerationError expelled
everything works a bug in this version is fixed, but since the onNewLayout method is not called and the display is not correctly displayed
I can not understand where I should now make the image adjustment in version 2.1.12
OnNewVideoLayoutListener is triggered when the screen changed and not at startup
do you have any ideas?
screen

lib 2.1.12: https://github.com/mrmaffen/vlc-android-sdk/blob/master/libvlc-android/src/main/java/org/videolan/libvlc/IVLCVout.java

Fixes #9

it's work! 👍

soon it will be released in npm