I initially had a really annoying problem when trying to get it working, though none of your fault. Turned out that one of the VLC luac scripts was using pow(), which has been deprecated. This led to a cryptic error result when trying to fetch the status endpoint, but once I figured out the cause I could just download the non-compiled script for the correct VLC version, modify it and replace the luac file with my modified lua. Just thought I'd mention it in case someone else runs into the same issue.
While local playing and sync works well, I've now started getting problems when used with Intiface Central.. Getting the two to connect seemed a bit glitchy, then it worked for a while, but eventually Restim freezes entirely (stim signal continues to play but UI becomes unresponsive and I need to kill the process). I haven't been able to pinpoint what's the cause yet, but have you used it with the latest version of Intiface and it works well for you?
When syncing with VLC it seems like the video file path is urlencoded, which causes QUrl to say that it is invalid if the filename contains spaces. I changed class VLC(MediaSource) to:
Code: Select all
id = attributes.value('id') # playlist id
uri = attributes.value('uri')
url = QUrl.fromPercentEncoding(uri.encode('ascii'))
if id == self.playlist_id:
self.filename = url
self.query_media_duration()
xml.skipCurrentElement()
Also it would be really nice if Restim could make continuous attempts to connect to IntifaceCentral if configured to do so. Currently you have to restart the app to do so, right?
And a final feature request, it would be nice if Restim saved the media player sync setting (e.g. VLC), tried to connect at least on startup, and if the connection fails just print a log message and fall back to the internal media player.