pedroSG94 / vlc-example-streamplayer

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

Reconnecting #17

Open liccowee opened 6 years ago

liccowee commented 6 years ago

How can i reconnecting it back if the host streaming has some interruption?

I try to initalize everything again but got this error E/VLC: [00000075cd32e890/399a] libvlc decoder: failed to create video output

pedroSG94 commented 6 years ago

https://wiki.videolan.org/VLC_command-line_help Try with options:

":http-reconnect"
596151023 commented 6 years ago

How do I add this?

pedroSG94 commented 6 years ago

in setOptions method add my string command

596151023 commented 6 years ago

How to deal with the black screen and the screen not moving during playing?

ayalus commented 6 years ago

Hello @pedroSG94, im trying to use the function you recommend in the following format. doesn't seem to reconnect at any point. could you provide a snipper or tell me what im missing in order for the player to reconnect after any interruption? private String[] options = new String[]{":http-reconnect"}; then vlcVideoLibrary.setOptions(Arrays.asList(options)); But it does not work for me.