Add button, check playable and run at startup
Posted: 23 Jul 2011 17:37
I wanted to create a new extension for VLC. I didn't know how to do these (if possible):
1. Is it possible to add a new button to VLC's interface? For instance next to "play" button.
2. How to check in a function that if a string that its value is the path to a file is a media file and can be played with VLC. For example "C:\a.mp3" should return true and "C:\a.txt" should return false.
3. Is it possible to run a function to run a script at startup? I want to create an extension that loads list of the supported files when I double click on a file and add them to the playlist so when I click the "next" button VLC jumps to the next file in the directory. Very similar to "Add similar" extension but it loads at startup and all of the supported files are added.
Best regards.
1. Is it possible to add a new button to VLC's interface? For instance next to "play" button.
2. How to check in a function that if a string that its value is the path to a file is a media file and can be played with VLC. For example "C:\a.mp3" should return true and "C:\a.txt" should return false.
3. Is it possible to run a function to run a script at startup? I want to create an extension that loads list of the supported files when I double click on a file and add them to the playlist so when I click the "next" button VLC jumps to the next file in the directory. Very similar to "Add similar" extension but it loads at startup and all of the supported files are added.
Best regards.