<div dir="ltr"><div><div>I'm having a problem with libvlc for Android. The method setNetworkCaching seems to do nothing. Even when I set the network caching to 20000 (that's 20000ms, I guess), the player starts inmediately. There is no difference at all from 1000 or 5000.<br>
<br></div>This is my code:<br><br> // Initialize the multimedia framework<br> try {<br> mLibVLC = LibVLC.getInstance();<br> mLibVLC.init(PlayerActivity.currentActivity);<br> } catch(LibVlcException e) {<br>
Log.d("RBT","Error initializing the libVLC multimedia framework!");<br> PlayerActivity.currentActivity.finish();<br> }<br> <br> // Unset verbose mode<br> mLibVLC.setVerboseMode(false);<br>
<br> // Set 20 seconds for network caching<br> mLibVLC.setNetworkCaching(20000);<br> <br> // Load media list, clear it and add stream<br> MediaList list = mLibVLC.getPrimaryMediaList();<br>
list.clear();<br> list.add(LibVLC.PathToURI("<a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a>"));<br><br></div> // Play<br>
mLibVLC.playIndex(0);<br>
mLibVLC.play();<br><div><div><br><div><br><div>I traced the libvlcmethod setNetworkCaching to this mail in August: <a href="https://mailman.videolan.org/pipermail/android/2013-August/002535.html" target="_blank">https://mailman.videolan.org/pipermail/android/2013-August/002535.html</a><br>
<br></div><div>Am I doing something wrong? Thank you.<br></div></div></div></div></div>