Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 796149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:35:46+00:00 2026-05-14T22:35:46+00:00

Skype has an inbuilt function where iTunes playback is paused and resumed automatically when

  • 0

Skype has an inbuilt function where iTunes playback is paused and resumed automatically when a call comes in. It would be nice to have something similar for Spotify. Both provide a python API so this would seem the obvious route to go down.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:35:47+00:00Added an answer on May 14, 2026 at 10:35 pm

    I’ve had a stab at doing this in python. It runs in the background as a daemon, pausing/resuming spotify when a call comes. It uses the Python libraries for Skype & Spotify:

    http://code.google.com/p/pytify/
    https://developer.skype.com/wiki/Skype4Py

    import Skype4Py
    import time
    from pytify import Spotify
    
    # Create Skype object
    skype = Skype4Py.Skype()
    skype.Attach()
    
    # Create Spotify object
    spotify = Spotify()
    spotifyPlaying = spotify.isPlaying()
    
    # Create handler for when Skype call status changes
    def on_call_status(call, status):
      if status == Skype4Py.clsInProgress:
        # Save current spotify state
        global spotifyPlaying
        spotifyPlaying = spotify.isPlaying()
    
        if spotify.isPlaying():
          print "Call started, pausing spotify"
          # Call started, pause Spotify
          spotify.stop()
    
      elif status == Skype4Py.clsFinished:
        # Call finished, resume Spotify if it was playing
        if spotifyPlaying and not spotify.isPlaying():
          print "Call finished, resuming spotify"
          spotify.playpause()  
    
    skype.OnCallStatus = on_call_status
    
    while True:
      time.sleep(10)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Skype has a nice custom folder icon for the Skype folder in C:\Program Files.
Does anyone have any experience using PHP to send an sms via skype I
I've seen examples of overlay views in different iPhone apps (Skype, Phone.app (while making
I have to build a feature in my application which allows user to send
I want to mark up a phone number as callable link in an HTML
My C# application needs to covert text to wav file and inject it into
Let me state first: I know that any user that wants to run a
Some Windows applications add buttons to the control box, which apparently is the name
I'm going to develop a Firefox extension which should put a button in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.