XTPlayer - Cross platform TCode sync (OSR, SR6) Stream your local media and sync funscripts to almost any device with a browser

That’s worked perfectly. Thanks for your help and time! :slight_smile:

1 Like

How to load subtitles for playback in XTP?

1 Like

You cant currently, sorry.
Ok, that’s not totally true, You can in XTP Web player as long as the subtitle is in vtt format. You can convert srt files to vtt on lots of websites.

You need to name the vtt file the same as the video and funscript for XTP to see it. It should auto load it in the web player. You can also download it from the web player if the web browser supports it. Spoiler alert, no browser on the quest 3 will download it last I tried. I dont know why.
Still should work in the XTP web player, just not external players like heresphere.

1 Like

Thank you for your answer, I will give it a try.

I forked the source code to fix some issues I had getting my Linux VR playback working.

  • Fullscreen video does not work but spawns a gray screen. Caused by Qt::WindowStaysOnTopHint. Removing this fixes the issue.
  • Moving mouse cursor in fullscreen displays the media library, which defeats the point of fullscreen. Also, this breaks vr-video-player which uses the XTPlayer’s window as a data source.
  • grabKeyboard() makes using other software impossible in fullscreen mode. I need to alt tab to a terminal to spawn vr-video-player once XTPlayer is fullscreened.

This is good thanks! I have noticed some issues on my system but this isnt one of them. Full screen needs allot of work on all systems.

Having the media library is in full screen so you can select a new video without exiting full screen and then re launching full screen. I dont think it defeats the purpose at all.
That said, I did recently add an option to change this behavior. It would be in the dev branch I believe I checked this in. Its been a bit.

grabKeyboard is for executing media playback keyboard shortcuts in full screen. This is required otherwise they don’t work.

My main question is, why are you messing with XTPlayer builtin media player when you are using a vr-video-player? Also what is vr-video-player? Ive never heard of this application. Sounds like its a stand alone media player. XTPs built in player is also stand alone and shouldnt affect any other media player..
The funscript system is a different story. It can use the builtin or external media players.

My main question is, why are you messing with XTPlayer builtin media player when you are using a vr-video-player? Also what is vr-video-player?

vr-video-player is the only software I could use to display VR video successfully on Linux. While vr-video-player has a built-in mpv support, this does not support funscripts. Rather, I use the feature that delegates video rendering to any 3rd party software. Once the video playback window exists, vr-video-player copies the data from that window and uses that to render a VR projection using SteamVR.

As XTPlayer is the only software I could reliably use on Linux to display video and playback funscripts, I combined these two.

I wrote more about this in my SteamVR linux guide.

That said, I did recently add an option to change this behavior. It would be in the dev branch I believe I checked this in. Its been a bit.

Sounds good.

I see, this maybe a good reason to support MPV as an external player. Ive not thought of native linux VR players before. I usually use my quest and hopefully the upcoming steam frame to playback VR content.

I may look into adding mpv time sync. You think that would solve your issues?

I may look into adding mpv time sync. You think that would solve your issues?

Do you mean adding the ability for XTPlayer to run videos via mpv while XTPlayer only controls the T-Code? That’s one option, but currently XTPlayer works fine as long there’s a fullscreen window.

Ya, if its not too difficult ill do it. I rather do that than hack around fullscreen. If not, you have a custom build at least.
I believe XTPs built in media player is one of its strengths but due to me lacking knowledge to make it great, its also one of its weaknesses, It may prove beneficial to have another option for desktop media playback on all operating systems.
Ill check it out and stew it over.

I have just discovered the XTPlayer and given it a quick test on MacOS. Great, this works fine! I like the server approach and running everything wireless (Video on iPad, OSR2 wireless as well).

The optimal solution would be to run XTP on my little Linux Server (Intel Nuc, running Ubuntu Server) as a docker container. I wonder if this is possible as it is running in headless mode and there is no possibility to enable XTP Web via the graphical XTP application interface. Or is there a possibility to configure this in a config file?

I believe I put this setting in the command line interface but yes, you can put a file called settings.json Iin The same dir as the appimage and XTP will save and load from that file which you can edit any setting in XTP directly in the json file.
You can export your current settings to a json file in Mac. You’ll need to change the file paths for the system your moving to though.

I’ve heard of some using docker. Wouldn’t mine having a docker image but I’ve not taken the time to learn how to make one.

Thanks for the fast response. I will give it a try and report back if it is running…