How setup streamcache (for slow internet) like in Youtube?

Hello,

the kodilibrary is outside and should be streamed over the internet (VPN). It is working but the connection is to slow, only 8mbit Download. The Upload on Libraryside is 10mbit. So i have seen some Videos that is it possible to use a cache for the playing movies. For example: I start an movie and it is loading every time, so the playback is that that is enough in cache for playing without pause. The library itself is connected with NFS/SMB, i’ve tested both. SMB it’s feeling a little bit better over the internet.
I played around with the cache, here is my XML File:

Code:
cat .kodi/userdata/advancedsettings.xml
<!-- Created using Easy Advanced Settings addon -->
<advancedsettings>
    <network>
        <buffermode>1</buffermode>
        <cachemembuffersize>0</cachemembuffersize>
        <curlclienttimeout>500</curlclienttimeout>
        <readbufferfactor>10.0</readbufferfactor>
    </network>
    <videoscanner>
        <ignoreerrors>true</ignoreerrors>
    </videoscanner>
</advancedsettings>

It is a little bit better then before… but playback hangs about every 3 minutes, then stock and hangs…. and when i pause the playback, download/streaming will be also stopped, but that should run through.

So what is to do that i can have an nice playback? There are all HDfiles, with about 4 – 10GB.

Thanks a lot Smile