#50 Button version: stop button not working with autoplay on

open
nobody
engine (12)
5
2007-09-02
2007-09-02
Anonymous
No

In Single File mode, the stop button is not working at all with autoplay on, using the "Button" version of XSPF Web Music Player.

Discussion

  • bradsucks

    bradsucks - 2007-11-06

    Logged In: YES
    user_id=1931241
    Originator: NO

    Just ran into this problem also. Fixed it by replacing lines 254-258 to:

    if((this["owner"].autoplay.toString()=="true")){
    this["owner"].showButton(this["owner"].play_skin_mc)
    this["owner"].playTrack()
    }else{
    this["owner"].showButton(this["owner"].play_skin_mc)
    }

    The second line is the only different one.

     
  • bradsucks

    bradsucks - 2007-11-06

    Logged In: YES
    user_id=1931241
    Originator: NO

    Guess I forgot to mention that change should go in MusicButton.as.

     
  • Nobody/Anonymous

    Logged In: NO

    great!

     
  • Nobody/Anonymous

    Logged In: NO

    I just tried this your fix (editing MusicButton.as as found in com\zuardi\musicplayer), but it doesn't seem to be making any difference. Still can't press stop to stop the track after autoplay. Tried in FF3 and IE7.

     
  • Markus Ernst

    Markus Ernst - 2008-12-02

    The workaround that I got it working with was very similar to the one posted by bradsucks: Instead of

    this["owner"].showButton(this["owner"].play_skin_mc)
    this["owner"].playTrack()

    I applied at line 255:

    this["owner"].stopTrack()
    this["owner"].playTrack()

    Anyway I don't know if this is any news, as stopTrack() invokes the showButton() method, which might be the only reason why my workaround works. But I did not get deep enough into the code to be sure about this.

    @nobody, 2008-08-14: Of course you re-compiled the swf file after making the change in MusicButton.as?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks