vlc-example-streamplayer icon indicating copy to clipboard operation
vlc-example-streamplayer copied to clipboard

Could be possible to set VlcOptions

Open amadeu01 opened this issue 7 years ago • 5 comments

On class VlcVideoLibrary

We could pass VlcOptions as a parameter like

public VlcVideoLibrary(Context context, VlcListener vlcListener, SurfaceView surfaceView, ArrayList<String> defaultOptions)

Here we have option of add some flags

amadeu01 avatar Mar 12 '18 01:03 amadeu01

This project is only a example to get stream. For now I have no plan to extend functionality. If I have time I will add this. It is easy to do so maybe this weekend I can implement this.

pedroSG94 avatar Mar 15 '18 11:03 pedroSG94

Thanks.

On Thu, 15 Mar 2018 08:08 Pedro Sánchez, [email protected] wrote:

This project is only a example to get stream. For now I have no plan to extend functionality. If I have time I will add this. It is easy to do so maybe this weekend I can implement this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pedroSG94/vlc-example-streamplayer/issues/11#issuecomment-373340255, or mute the thread https://github.com/notifications/unsubscribe-auth/ALF59DREr0Q-cZ7-d0Vak1JUA5Y7CXUcks5tekulgaJpZM4Sl-Db .

amadeu01 avatar Mar 15 '18 12:03 amadeu01

You can set it now with setOptions method: https://github.com/pedroSG94/vlc-example-streamplayer/blob/master/app/src/main/java/com/pedro/vlctestapp/MainActivity.java#L36

pedroSG94 avatar Mar 19 '18 12:03 pedroSG94

Thanks

amadeu01 avatar Mar 19 '18 12:03 amadeu01

how do i reduce the lag in my rtsp? i am using ArrayList<String> options = new ArrayList<>(); options.add("--network-caching=20000"); options.add("--live-caching=20000"); options.add("--sout-mux-caching=20000"); options.add(":clock-jitter=0"); options.add(":clock-synchro=0"); below the vlcVideoLibrary.setOptions(Arrays.asList(options)); even tried to pass the options the vlcOptions.java file but not able to reduce the lag does anyone have an idea how to reduce lag to the minimum

AadityaRathod97 avatar Mar 24 '21 12:03 AadityaRathod97