Random-Photo-Screensaver icon indicating copy to clipboard operation
Random-Photo-Screensaver copied to clipboard

Possible to use VLC for video playback?

Open rajdude opened this issue 1 year ago • 1 comments

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

  • Checking the "use GPU rendering for IE" in RPS' settings
  • Unchecked "use video smoothing" in WMP's options
  • Tried editing the monitor.js file as you suggested in issue #30

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:

  • In VLC, all my videos play very smoothly.
  • All my content (photos and videos) are kept on a networked machine which I call server
  • Network connection between this machine and my server is 10Gbps Fiber channel, so there is no network bottleneck
  • I really did not understand what needs to be done to monitor.js so that VLC is executed by RPS. but I tried changing this line to this:
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 + '"/>'

rajdude avatar Apr 03 '23 21:04 rajdude