VLC Extension: Remember last file position

Discuss your Lua playlist, album art and interface scripts.
scientificswede
New Cone
New Cone
Posts: 3
Joined: 19 May 2012 10:13

VLC Extension: Remember last file position

Postby scientificswede » 13 Feb 2013 22:32

Hi all, I made a script that makes VLC remember the last play position on every file it plays. The only quirk is you have to activate it each time in the View menu.
http://scientificswede.blogspot.se/2012 ... h-lua.html

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: VLC Extension: Remember last file position

Postby mederi » 14 Feb 2013 16:27

This script works for me on Windows XP, but I had to alter the script a bit to use a different path for "pos.txt" file.

Code: Select all

-- datafile=vlc.misc.userdatadir().."/pos.txt" datafile="D:/films/pos.txt"
There is a problem how VLC handles paths. UTF-8 path does not match ANSI Windos-1250 codepage of my Windows XP. There is one non-English character in the vlc.misc.userdatadir() path causing troubles. VLC should automatically convert all input/output stuff between UTF-8 and native codepage of OS.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 15 guests