Adium
Dock Icons Emoticons Contact List Styles Message Styles Sound Sets AppleScripts Status Icons Service Icons Menu Bar Icons Plugins Miscellaneous All
VLC Currently Playing

VLC Currently Playing

Submitted By Matt_H

Description

This script (VLC Currently Playing) will allow you to share what you're currently watching on VLC with contacts.
You can either share the currently playing video by displaying it in your status (like the stock iTunes status), or in-chat using a command.

I created this script for my own personal use with the intention of sharing what anime I'm currently watching with friends.
Do not expect any support. Any support I do provide is incidental.

Usage
  • Create a custom status with the value of %_vlc for the same functionality as the inbuilt iTunes status, except for VLC.
  • Type /vlc in an instant message window to announce what you're currently watching.
Credits
  • batchman; Initial code to retrieve VLC's current state.
  • Bruce Phillips; str_replace() functionality.
  • JackJr300; Intitial code to determine what's currently playing.

Changes

  • Version 2.1:
    • Fixed a bug where playing in full screen wouldn't report correct video title.
  • Version 2.0:
    • Improved? methods to retrieve VLC's state, and what's currently playing.
    • VLC's HTTP remote control interface is no longer required.
  • Version 1.0:
    • Initial Submission.

Comments

You can reply to individual comments by clicking the "Reply" link next to each.

# by crAcked_nightmAre on 05/31/09 at 21:39:16

hi i d/l this. and set the %_vlc and played a movie in vlc. and my contacts saw my status as "arrange in front".
is this a known bug or something else.


im using 10.5.7 and VLC Version 0.9.9a Grishenko (Intel) with adium 1.4b5

# by Matt_H on 06/01/09 at 07:47:20

In VLC on the "Window" menu, when playing a video what is the last item?
Also is VLC up to date?

Because of the lack of AppleScript support, the last item of the Window menu is used to get the name of the video.

# by Matt_H on 06/01/09 at 08:10:45

I've since found the issue (see the change log for version 2.1). Thank you for your comment.
The download link will work again as soon as the new version is approved.

# by Anacotic on 06/20/09 at 01:14:52

Not workin for me...
It says "I'm not currently watching anything." No matter if i Play a Movie or not...

# by uzegonemad on 06/22/09 at 02:02:51

this is awesome, thanks!

if you want to remove the file extension from the name, you can use the following (assuming the file extension is three characters):
find this line:
set theTitle to str_replace("_", " ", getTheTitle())

and add this right under it:
set theTitle to text 1 thru -5 of theTitle

# by dunolie on 09/05/09 at 03:44:57

is there a title limit?
output :
I'm currently watching: Ganges - Daughter of the Mount

correct output should be :
I'm currently watching: Ganges - Daughter of the Mountian

BTW, I've used uzegonemad's tip above in my script.

# by Matt_H on 09/13/09 at 21:08:08

Videos with meta tags won't have file extensions, meaning that uzegonemad's tip may fail in some cases and subtract wanted information (or in this case "ian").

# by Snow-Okami on 07/14/10 at 12:34:17

For those who are having trouble getting this working, I.E: "I'm not currently watching anything."

You must "Enable access assistive devices". This can be found in System Preferences -> Universal Access -> 2nd check from the bottom.

# by Arcblade on 05/24/12 at 02:25:46

Hey,

Love this plugin. Very useful. Ran into one mildly annoying issue. If VLC isn't running while my "Now playing in VLC" status is on, the plugin seems to be opening VLC to perform its check. I'm using Adium 1.5 and VLC 2.0.1 "Twoflower" on 10.6.8.

Obviously this is not computer-breaking, but it was kind of irritating while I didn't know what was going on. I closed VLC, and it opened again within a minute. Nothing I could do would make it stop. It was pretty funny, in retrospect. XD

Post a New Comment

You must be logged in to post comments.

Install | Download
16.79kb (3318 downloads)

12345
4.30 / 6 votes
Current Version: 2.1
Last Updated: 06/01/09