Skip to main content
Contributor I
Dec 8, 2018 5:04 PM UTC

Development question; VB.NET to play .MP3 or else a Radio Station

Sonos to play an MP3 or Radio Station from VB.NET
    This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

    6 replies

    chuckv101Author
    Contributor I
    Dec 8, 2018 5:05 PM UTC
    Can someone direct me to an API and a VB.NET example on how to play an .MP3 or to start the playing of a Sonos Radio Station?

    (BTW, this is VB.NET Client/Desktop application)
    Translate
    controlav
    Lead Maestro
    Dec 10, 2018 2:33 PM UTC
    This article looks to cover the basic using VB: https://www.codeproject.com/articles/458807/%2fArticles%2f458807%2fUPnP-code-for-Windows-8
    Translate
    Author of the leading independent Sonos apps for Android, MacOS, iOS, Windows and Xbox.
    chuckv101Author
    Contributor I
    Dec 29, 2018 7:04 PM UTC
    Thanks, but need a Windows 7 solution, not on Windows 8/10 yet...
    Translate
    chuckv101Author
    Contributor I
    Dec 29, 2018 7:09 PM UTC
    Even some API for purchase. Something that allows me to play an audio file (.wav, .mp3, etc.) over Sonos. Ideally, if something is already playing I would allow me to pause it, or stop it... then play the audio file, then un-phase or restore playing of the original (like a Radio Station - whatever is playing).

    Can’t image that someone hasn’t successfully done this already...
    Translate
    BCM
    Dec 29, 2018 7:36 PM UTC
    I'd give that Win8 code a try. Probably not much difference between that and Win7, if any at all. It can always be tweaked if it doesn't work.
    Translate
    controlav
    Lead Maestro
    Dec 30, 2018 4:58 PM UTC
    Its the Resume afterwards that is the hard part. Sonos have added some clip support to the cloud API, not sure if it is available at the UPnP level.
    Translate
    Author of the leading independent Sonos apps for Android, MacOS, iOS, Windows and Xbox.