marijnkampf / Random-Photo-Screensaver

Source of Random Photo Screensaver
http://www.abscreensavers.com/random-photo-screensaver/open-source
Other
44 stars 14 forks source link

Possible to use VLC for video playback? #140

Open rajdude opened 1 year ago

rajdude commented 1 year ago

Hello Marijn, Is it possible to configure RPS to use some other video player like VLC?

Right now I see that RPS invokes Windows Media Player (or sometimes movies) via Internet Explorer. The resulting video playback is very choppy / jerky. Here is what I have tried so far

None of these things helped.

I really love your software. Works perfectly fine with my photos. I hope it can play my videos also nicely. Please let me know if you want me to test something. Thanks!

PS:

if(typeof getVideoObject != 'function'){
    function getVideoObject(source, settings) {
        var playCount = 1;
        var stretch = "";
        if (settings.stretchSmallVideos) stretch = " stretch";
        if (settings.loop) playCount = 9999;
        html = '<object class="object media' + stretch + '" id="mediaPlayer" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"'
        >>> >>>>+ 'codebase="C:\Program Files (x86)\VideoLAN\VLC\axvlc.dll"'<<<<<<<<<
                + 'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
                + '<param name="FileName" value="' + source + '" />'
                + '<param name="Mute" value="' + settings.mute + '"/>'
morcus commented 6 months ago

Hello Rajdude,

I am facing the same issue with high quality gopro videos recorded in 4k. I tried everything you have mention but none of them have any effect.

My computer is quite powerful (amd 3700x + nvidia 3080) and I read the files from a SSD. Were you able to find any solution?

Thank you.