pedroSG94 / vlc-example-streamplayer

Example code how to play a stream with VLC
GNU General Public License v3.0
229 stars 93 forks source link

Could be possible to set VlcOptions #11

Open amadeu01 opened 6 years ago

amadeu01 commented 6 years ago

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

pedroSG94 commented 6 years ago

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.

amadeu01 commented 6 years ago

Thanks.

On Thu, 15 Mar 2018 08:08 Pedro Sánchez, notifications@github.com 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 .

pedroSG94 commented 6 years ago

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

amadeu01 commented 6 years ago

Thanks

AadityaRathod97 commented 3 years ago

how do i reduce the lag in my rtsp? i am using ArrayList 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