Image 01
profile-image

pnon10s

Rocky Dotterer , United States of America
VLC Extensions
Resume Media V3.40 (Win/Lin)

VLC Extensions 98 comments

Score 80.2%
Sep 25 2015
I don't think the VLC developers will fix the lua run-time interface to OSX anytime soon. And I don't have access to a Mac right now.

I added some comments to the description and code to see if Mac users are interested in tinkering with the Resume Media display.

Success might be elusive, but if you want to try, have fun!

Rocky - Sep 25 2015
The [Play/Options] menu is different if the VLC playlist is playing (or paused). So, while the VLC playlist is stopped (not playing), you should be able to see the [Add VLC] button.

I changed the description above (under Detailed Features and Notes) to make it a little clearer. I'll change the description in the download files in the next release. Thanks.
- Sep 05 2015
Hi,

The [Play/Options] and [Add VLC] buttons are on the Resume Media window, not VLC. See installation instructions above in the description to install and run Resume Media.

Good luck, Rocky
- Aug 22 2015
If you copy the VLC playlist to a Resume Media table, then Resume Media will place a bookmark in the table next to the last media played in the VLC playlist. It will also remember and display the resume positions.

To copy the VLC playlist to a Resume Media table, click [Play/Options] then [Add VLC].

You can also play your media right from the Resume Media table. The selected media played from Resume Media replaces the current VLC playlist.
- Jul 30 2015
Hi Mark,

VLC now has a "Continue" button that shows above the movie for a few seconds when you restart the movie. If you click "Continue" before it goes away, your movie will resume without needing Resume Media.

Ya, I guess Resume Media can seem complicated at first but, for what it can do, I think it is reasonably well organized. Since it is a free amateur program, I don't want to spend all my time making it pretty with a huge help file. That would take more time than writing the program itself! I use Resume Media all the time to play my library of media files. I only go to a file manager to load the media into the VLC playlist, since that is how Resume Media loads media names into its tables.

If you want to use Resume Media to resume your movie, then the movie needs to be added to a table, either manually or automatically.

* To add it manually, click [Play/Options] and then [Add VLC] to add the VLC playlist to the Resume Media table. If the movie is playing, click [Play/Options] and then [Position] to add the movie and its position to the table.
* To add it automatically, click [Play/Options] and then [Settings]. Near the bottom, change "Block-" to "Allow new table entry when media stops." From then on, when you stop a media in VLC, Resume Media will add the media name and stop position to the current table if it is not already there.

Once in the current table, Resume Media will update the stop position and resume the movie. "Allow-" used to be the default behavior, but since VLC now has the built-in "Continue" feature, it was changed to "Block-" so that new entries wouldn't accidentally be added to a table that a user has customized.

I hope that answers your question.
Good luck, Rocky - Jul 09 2015
I'm glad you like Resume Media. Thank you, too. - May 04 2015
I've been assuming that a lua extension developed in Windows but not containing Windows specific code should have a reasonable chance of working across platforms. That assumption appears to be wrong.

I was hoping the problem was an installation or unique software configuration issue with some Mac users and not a general VLC lua coding compatibility issue with OSX. I apologize to the Mac community for possibly implying that this extension should work on Macs.

I am looking into getting access to a Mac system to make this work. - Apr 14 2015
I've been assuming that a lua extension developed in Windows but not containing Windows specific code should have a reasonable chance of working across platforms. That assumption appears to be wrong.

I need to get my hands on a Mac and then possibly raise any issues in the forums instead of here.

But thanks for your offer. I was hoping it was an installation or unique software configuration issue with some users and not a general coding compatibility issue with OSX. I apologize to the Mac community for possibly implying that this extension should work on Macs. - Apr 14 2015
You need to know basic Windows commands like creating directories and files.

A. Open directory
C:\Users\YourUserName\AppData\Roaming\vlc
and create subdirectory ..\lua\extensions

B. Now open the directory
C:\Users\YourUserName\AppData\Roaming\vlc\lua\extensions
and created a text file named "VLC Resume Media V3.lua"

Then do the following:

1. Click on "Download" to bring up the web file contents.
2. Type Cntl-A to highlight the whole file contents.
3. Type Cntl-C to copy the file contents to the clipboard.
4. Open the VLC Resume Media V3.lua file you created in a text editor like Notepad.
5. Type Cntl-V to copy the contents into the file. Close the file.
6. Open VLC and go to View menu at the top.
7. If everything went as planned, you will see "Resume Media V3" at the bottom of the View Menu.
8. Click it, and the Resume Media dialog window will open.
9. Enjoy!

- Mar 23 2015
That 'read me' file is the Resume Media lua file itself. Just follow the instructions above or in the file. Good luck. - Feb 27 2015
Sorry there are no immediate responses. I moved the Mac help request to the end of the description. Hopefully those who read that far might be motivated to help. I know two Mac users, but neither have been inclined to install VLC so far. I like that Apple respects user privacy. That might be enough for me to switch over. - Feb 18 2015
I have a user with a Mac issue in the recent comments. Does this extension work on your Mac?

Thanks - Rocky - Feb 10 2015
In my 'Latest News', I asked the community if they can help you. Maybe it would be helpful to know your OS version. - Feb 10 2015
Yes! VLC 3 for Windows has a resume feature! When you restart a stopped video, there is a tab above the video which says 'Continue'. Wasn't looking for that. Great! Thanks. - Jan 12 2015
Yes. let me re-emphasize that a resume feature is a good thing for me, also. I am not in competition with VLC, but simply trying to help myself and other users have a better experience. I've been programming long enough to know that code has a real short lifespan. Maybe my program has some features that will still give it value. I tried the 64-bit VLC 3 and the 32-bit VLC 3 and VLC 2.2 for Windows and none have the resume feature that I could tell. Three cheers to the Mac developers. - Jan 12 2015
The whole thing:

1. Click on "Download" to bring up the web file contents.
2. Type Cntl-A to highlight the file contents.
3. Type Cntl-C to copy the file contents to the clipboard.
4. Open the VLC Resume Media V3.lua file you created in a text editor like Notepad.
5. Type Cntl-V to copy the contents into the file.
6. Open VLC and go to View menu at the top.
7. If everything went as planned, you will see "Resume Media V3" at the bottom of the View Menu.
8. Click it, and the Resume Media dialog window will open.
9. Enjoy!

- Jan 07 2015
Read just a little further in the text file you opened or find the message "how to install add ons" in the earlier comments before yours. You have to be a bit windows savy so that you can cut and paste text, make directories and text files and rename files.

There's a good chance that the next version of VLC will install add-ons for you, but it's not there yet. Good luck! - Jan 06 2015
In the new Addons Manager in VLC 3.0 beta, if you click "Extensions" and then "Find more addons online", only a few show up including, of course, VLSub. Any ideas on how to find out how extensions make themselves available to the Addons Manager?
- Dec 31 2014
In the new Addons Manager in VLC 3.0 beta, if you click "Extensions" and then "Find more addons online", only a few show up including, of course, VLSub. Any ideas on how to find out how extensions make themselves available to the Addons Manager?
- Dec 31 2014
Nice work. When a media stops, Resume Media does very little except update the stop position if necessary. If you are moving the slider around, Resume Media doesn't do anything at all. And I have no problem with the bookmark. My guess is that there is a subtle connection issue between an extension and VLC that is triggering a problem in VLC in your particular combination of software. I noticed in my early Resume Media version 3 that VLC would hang far too frequently. The only difference that I could tell was that I was handshaking more frequently with VLC than in version 2. I changed that in the later version 3.

Are you comfortable trying a beta VLC? The development team has addressed many, many issues. I recently tried VLC 3.0 at http://nightlies.videolan.org. They still have not added a resume feature, but Resume Media seems to work fine. I changed the install directory to .../VLCbeta so both versions can run.

It would be cool if that fixed your problem. Let me know. Sorry I'm not more helpful. Good luck.
- Dec 31 2014
I don't see a resume feature either in VLC 3. Resume Media still seems to work, though. - Dec 31 2014
A resume feature would force VLC to create it's own persistent table of information about played media. It could save it in the user data directory - same place as I save it. - Dec 31 2014
Also, what is the 'official' site to try the beta? - Dec 30 2014
That's great! Resume is a feature everyone has been anticipating. Do you know when VLC 2.2 is expected to go into wide release?

Maybe some of the other features of Resume Media will allow it to retain some usefulness. It will be interesting to see if the code will be broken by the new release of VLC.

Rocky, developer of Resume Media
- Dec 29 2014
Have you tried ZeroBrane Studio? It's marvelous! It's so good I donated. What do you code in? - Dec 29 2014
No. VLC does not allow auto-starting of extensions. My guess is that the designers of VLC are concerned that an extension might be too aggressive when controlling VLC. So, VLC gets to start normally before a user can allow an extention to control it. - Dec 27 2014
I've noticed that every once in a while VLC hangs and usually clicking the 'X' will close VLC. I don't know why this occurs and I've never noticed this issue to be particularly associated with Resume Media. Since it doesn't happen too often, I haven't worried about it.

But, just in case I can help, I would need to know predictably repeatable issues:

* Does it happen predictably every time you stop a media that was started in Resume Media?
* Does it happen with any media or only certain ones (file type, maybe)?
* Does it still happen if you play and stop the media from VLC with Resume Media closed?
* Are you using Version 3 of Resume Media. V3 was recalled a day after it was released because of an issue, and released again later. The new release should have been labeled V3.1 to differentiate it, but wasn't.

It will be interesting to see what they've done when the new VLC 2.2 is released.

Good luck
- Dec 25 2014
That would also allow me to stop the media after a tiny duration and then restart it with the user picture config settings. Programming is like a giant box of tinker toys! - Dec 24 2014
Hey! Can you change the duration so a media only plays for a minute? I'll have to try that. New Sample Media Setting in the works! - Dec 24 2014
Ya. I'm just saying the vlcrc config file has to be set before the video starts playing, whereas a user can right-click the video and change the picture while it is playing. If I wait for meta-changed flag that the video is playing, it is too late for me to adjust the picture. Also, VLC doesn't seem to like an extension stopping and restarting a media too quickly, so I can't stop the media, change the config and then restart the media. (I experimented with stopping the media, changing the config and then barraging VLC with play requests with each subsequent meta-changed call. Haha. That almost worked, but it seemed like an ugly solution.) Another instance where a wait function would be useful. *Sigh* For those who say a wait function encourages bad programming habits, I say if the parent program didn't have issues then I might agree with them. Another example of the usefulness of a wait function would be the ability to sample the media by playing, say, a minute of each one.

Do you think users might be interested in other config settings like "crop-top"? I could let them add keys ad hoc to the media in the table.
- Dec 24 2014
Hey Starko,

I bookmarked the tables like you requested. You can resume right where you left off in the table with one click. The only thing I can't do is self-start Resume Media when VLC starts.

Good luck - Dec 10 2014
I am having trouble understanding your problem. You might want to have someone help you explain.

By 'start', do you mean starting Resume Media or starting the VLC playlist? By 'programme gets suspended' do you mean that Resume Media crashes or that the VLC playlist stops after the first entry in the playlist?

In any case, I need to know what operating system and VLC version are you running?

Good luck, jacekb11
- Nov 09 2014
Hi Starko,

I added variable "simple" to the download file. If you set "simple = true" then Resume Media will use a single hidden table and no dialog window. Then you would just start and stop media in the VLC playlist and the media will resume where last stopped. I think this would be more to your liking.

You still have to check Resume Media each time you open VLC.

Also, it turns out that if you click the "X" at the top of the Resume Media table dialog window, the window only stays hidden until the next table update (when Resume Media saves a position in the table). Go figure. That is why I changed my description to hide the table by clicking "_" instead of "X".

Good luck,
Rocky
- Oct 28 2014
Did you mean VLC version 2.1.5? If you really meant 2.0.5, then that was before my time and I would not know how to help you. Major changes in VLC required changes in extension coding. If you really are running an older version of VLC, then maybe the table dialog is opening up improperly. For now, let's assume you are using the latest VLC 2.1.5.

Extensions have to be checkmarked each time VLC is opened. That's the way VLC was written and I have no control over that. Checkmarking an extension is a small price to pay for the potential benefits an extension can provide.

Finally, when a playlist is loaded into VLC, I would not want to keep track of all playlists and presume to know which file in a particular playlist a user wants to resume. Therefore my program triggers when a user starts or stops a specific media.

Please try this if you are still interested in Resume Media:

1. Checkmark Resume Media so that the table dialog opens up. Now play any video. Wait a minute or move the position slider past one minute. Stop the video. If the video name and position do not immediately register in the table, then something is wrong. If they do, then immediately restart the video. If it doesn't resume just before the stop point then something is wrong.

2. If all is well so far, close VLC and reopen it. Recheck Resume Media to reopen the table dialog. If the video is not in the table, then the table is not being saved properly. Let's assume it is there. Then all is working so far.

I understand that you would prefer not to have to checkmark Resume Media each time and that you would like a loaded playlist to go straight to the last file played and that the table dialog does not help you. If you can accept these shortcomings and the above tests worked properly, then this is how I would see you using Resume Media:

Open VLC and check Resume Media each time. Immediately close the table dialog box by clicking the X at the top but leave Resume Media checked. Now play any media from any playlist and the resume feature should work. If it doesn't, then there is something I have not understood. I am sorry if Resume Media does not meet your needs.
- Oct 17 2014
Multiple VLC instances is a great feature for those who want it. Most users load one playlist at a time. To have a second instance of VLC pop up unexpectedly when the first one is expected can be more confusing than helpful. It certainly made programming Resume Media more interesting. I think it is helpful to point out where that feature can be turned off - yes, Playlist and Instances.

What platform and version of VLC are you running? An extension can fail at compile time or run time. If "Resume Media V2" is in the list at the bottom of the VLC View menu, then the lua download file was placed and compiled correctly. If you are able to place a check mark next to "Resume Media V2", that means VLC was able to run Resume Media successfully and the Resume Media Table dialog should appear in the middle of the screen.

It doesn't sound like that happened for you, otherwise the features you are requesting should work fine. With more information, I hope we can get it running for you.
- Oct 17 2014
Good idea! - Oct 09 2014
As far as I know, the system Program Files directories are not meant for everyday modification by the user. They have read/write restrictions also. That's where the AppData directories come in, with different directories for each user. I save the tables in the default user data directory assigned by VLC which is C:\Users\{UserName}\AppData\Roaming\vlc for modern Windows versions. I'm assuming you tried creating the C:\Users\{UserName}\AppData\Roaming\vlc\lua\extensions directory for the UserName that you login with. In that case I don't know why it doesn't work for you. I am sorry. Hopefully someone who knows your issue will weigh in here. I know they are working hard on VLC 2.2 which will automatically install addons. That is the best solution. Good luck Clément.
- Sep 15 2014
Hi Crystalenia,

The good news is that the next version of VLC (2.2) will have an addon manager which will automatically install addons.

Resume Media works fine in VLC 2.1.5. What version of Windows are you using? I'm not sure what you are saying in your last statement except to say that the file should end with .lua and not end with .txt. Sorry to make you double or triple check, but make sure the following directory and file name are exact (substitute your user name for UserName).

C:\Users\UserName\AppData\Roaming\vlc\lua\extensions\VLC Resume Media V2.20.lua

The "VLC Resume Media V2.20.lua" file should contain the download file contents. If you're not sure, go to Start > Programs > Windows Accessories > Notepad. In Notepad do File > Open. At the bottom of the Open window change "Text Documents" to "All Files". Then navigate to the file above and make sure it contains the download contents. Close it without changing anything.

For your sake, I'm hoping you had made a mistake (haha) and that this will fix it.

Take care,
Rocky
- Sep 14 2014
...and VLC 2.2 will have an add-on manager with auto-install. Wow!

VLC 2.1.5 reduced, but didn't eliminate, a buffering glitch I get about every 30 seconds or so in 2.1.3. Audios hiccup and videos have ghosting for a moment. - Jul 26 2014
boldyzno, have you tried this?

Put the episode folder name in your table of episodes, then you can:
1. 'Play' the folder name, which will expand in the VLC playlist.
2. 'Import' the VLC episode playlist back to the table.
Any new episodes will be added to the table.

Not a one-click solution, but close.
- Jul 22 2014
Currently, the standard Lua language for VLC extensions cannot pop up a file open dialog. It is possible to use system commands like 'dir' but this is messy and system dependent. So, at the moment, it makes sense for an extension to let VLC do the dirty work and then access the VLC playlist to get files and directories. - Jul 22 2014
Thank you, boldyzno.

My goal was to keep the program simple, but still provide the most useful features.

For your first request, you could go to your media folder, highlight the files of interest, then right click and choose "Add to VLC playlist." Then import the VLC playlist to a Resume Media table.

The Resume Media dialog supports multiple selections. So, for your second request, you could sort a table by time, which places the 'Finished' media at the bottom. Then select the table entries from the top down to just before the 'Finished' media. Then 'Play' the selection.

I hope this helps. Thanks again.
- Jul 21 2014
Thank you, boldyzno.

My goal was to keep the program simple, but still provide the most useful features.

For your first request, you could go to your media folder, highlight the files of interest, then right click and choose "Add to VLC playlist." Then import the VLC playlist to a Resume Media table.

The Resume Media dialog supports multiple selections. So, for your second request, you could sort a table by time, which places the 'Finished' media at the bottom. Then select the table entries from the top down to just before the 'Finished' media. Then 'Play' the selection.

I hope this helps. Thanks again.
- Jul 21 2014
I'm assuming you are using Windows and know some Windows basics. Also, I am assuming that you installed VLC and that the web page you are redirected to says "If the download does not start in 3 seconds: Click here."

1. Click on "Click here" to bring up the file contents.
2. Type Cntl-A to highlight the file contents.
3. Type Cntl-C to copy the file contents to the clipboard.
4. Go to Start>Programs>Windows Accessories and click Notepad.
5. Type Cntl-V to copy the contents into Notepad.
6. Read the top of the file in Notepad about where to create the .../lua/extensions directory.
7. Save the Notepad file in the "extensions" directory.
8. Rename the Notepad ".txt" file to "VLC Resume Media V2.lua"
9. Open VLC and go to View menu at the top.
10. If everything went as planned, you will see "Resume Media V2" at the bottom of the View Menu.
11. Click it, and the Resume Media dialog window will open.
12. Enjoy!
- Jul 20 2014
I'm assuming you are using Windows and know some Windows basics. Also, I am assuming that you installed VLC and that the web page you are redirected to says "If the download does not start in 3 seconds: Click here."

1. Click on "Click here" to bring up the file contents.
2. Type Cntl-A to highlight the file contents.
3. Type Cntl-C to copy the file contents to the clipboard.
4. Go to Start>Programs>Windows Accessories and click Notepad.
5. Type Cntl-V to copy the contents into Notepad.
6. Read the top of the file in Notepad about where to create the .../lua/extensions directory.
7. Save the Notepad file in the "extensions" directory.
8. Rename the Notepad ".txt" file to "VLC Resume Media V2.lua"
9. Open VLC and go to View menu at the top.
10. If everything went as planned, you will see "Resume Media V2" at the bottom of the View Menu.
11. Click it, and the Resume Media dialog window will open.
12. Enjoy!
- Jul 20 2014
No access to Mac yet. Any Mac users out there want to weigh in on this? - Jun 15 2014
Hello dihard,

Do you mind trying something basic for me? If you can't close or minimize the huge dialog, just ignore it in the background.

Now, start any video or audio in VLC. Then wait or move the slider past 30 seconds. Stop the media and then restart it. Does it resume where it stopped? This would test whether or not Resume Media is basically working even though the dialog is messed up.
- Jun 14 2014
There is an extension called "Previous frame" on page 3 of this same site as my "Resume Media V2."

Down in the comments, there is a thread called "VLC 2.1 on MAC." This may or may not be helpful to your issue. mederi is a knowledgeable user and his input might be helpful.

- Jun 13 2014
There is a VideoLan forum called "Scripting VLC in lua" where someone made a post called "VLC Playlist Total Time Extension." The last comment on that post was a user who had the same problem. The post was Oct 2013 and no one has answered. - Jun 13 2014
Wow! A comment! Even though it's an unhappy comment.

I haven't heard how the dialog looks in any other operating system. If you look in the download file where the dialog is constructed, you see that a Lua programmer is only allowed to enter a few integers which are just "suggestions." Lua then generates the dialog window the way it sees fit. You can see that I tried to make it longer with no success. I know, this isn't very comforting to you.

I'm hoping that since you are the first one to comment, that this issue is not true for all Apple users.

My friend's daughter has an Apple and I will report back to you how it loads on her computer.

Thanks,
Rocky - Jun 13 2014
Sampler PG

VLC Extensions
by mederi

Score 74.0%
9   Jun 10 2014