An extension that save the last played item of a playlist to continue later on.
Copy VPR.lua
file to
-
Linux:
~/.local/share/vlc/lua/extensions/
and~/.local/share/vlc/lua/extensions/playlist/
-
Windows:
C:\Program Files\VideoLAN\VLC\lua\extensions\
andC:\Program Files\VideoLAN\VLC\lua\playlist\
Create directories if do not exist
-
Create a text file with the following format: (only for the first time)
-
First line:
VPR84296c0939f946089f45c97b9981afde
-
Second line: The last played file URI like:
file:///tmp/Videos/Video1.mkv
. Empty line to start from beginning -
Other lines: Each line should be a file URI like:
file:///tmp/Videos/Video1.mkv
. Each line is a playlist item
-
-
Then open the created file with VLC
-
Enable
VPR
extension in VLC fom View --> VPR (this should be enabled each time VLC opens)
-
Please don't place the file anywhere that VLC doesn't have permission to read or write
-
File or URL can be used
-
Look at the
PlaylistTextFileExample.txt
If a text file with the first line of VPR84296c0939f946089f45c97b9981afde
opened in VLC this extension will create a playlist with URI from line 3 to the last (each line one item).
And put the address of the playlist text file with an indentifier string to each item's description (to be able to update last played item).
Every time a new item starts playing, it's description will be checked. If the indetifier and a file address exist then the second line of the file will change to the URI of the current playing item.