Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Sonos VD and MP3 Files - they don't stop...


Question

Posted

Dear all,

 

I'm using the great VD from @Krikroff (thanks for that!!!). 

 

But I'm facing a little problem with MP3-Files. I want to play an MP3 file from a server (that works) and stop it after 3 seconds.... unfortunately, sometimes it stops, sometimes it doesn't...and I don't know why.

 

Any ideas?

 

Thank you very much.

 

Dan

Please login or register to see this code.

 

 

3 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    No ideas, how I can fix that? @Krikroff is there a reliable way from the VD device perhaps?

     

    Thank you for the help!

    • 0
    Posted

    this works for me

     

     setTimeout(function()
        fibaro:call(SonosPlayer, "pressButton", "9");
        end, 2*60*1000)
      fibaro:debug("Sonos stop playing")

    • 0
  • Inquirer
  • Posted

    @Sjakie Unfortunately, it still doesn't work with the MP3-File... it takes between 10 - 15 seconds (after prining "sonos stop playing") until it stops the mp3 sound.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...