FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

VLC - Automtic Pause & Resume while on the phone

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
genki
Newbie


Joined: 18 Jan 2006
Posts: 1

PostPosted: Wed Jan 18, 2006 12:29 am    Post subject: VLC - Automtic Pause & Resume while on the phone Reply with quote

Hello!

I am curious if anyone can help me out with the scripting of an automatic pause and resume VLC player action, while on the phone. I don't know the scripting of Salling Clicker too well, though I tried tinkering around with the script that was meant to work with EyeTV. I replaced the application that the script would use with "VLC" from "EyeTV" but I keep getting an error. I am interested in learning how to script with Salling Clicker, so if anyone has any insight please let me know what I'm doing wrong.

Thank you!

-Genki
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Wed Jan 18, 2006 1:09 am    Post subject: Reply with quote

I don't think its "possible". VLC lacks the ability to tell whether it's playing or not through AppleScript. Hence, a script wouldn't be able to tell whether it's to resume playback or not.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
snarb
Senior Member


Joined: 04 Aug 2004
Posts: 89

PostPosted: Thu Jan 26, 2006 8:58 pm    Post subject: Reply with quote

FYI, VLC Controller (www.snarb.tk) comes with a phone event handler that suspends playback during phone calls.
Back to top
View user's profile Send private message
bvalin
Newbie


Joined: 04 Oct 2006
Posts: 1

PostPosted: Wed Oct 04, 2006 4:24 am    Post subject: VLC - Automtic Pause & Resume while on the phone Reply with quote

Hey,

i coded this little script that toggles the play/pause status of VLC on a phone event.

Download here:

http://dicot.biol.mcgill.ca/~bvalin/salling/salling.html

enjoy.

ben.

bug: VLC has no play status variable, as a result if the VLC status is pause on phone event, then VLC will start playing -instead of staying paused. In turn starting over when the phone is hung up.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group