[Approved] Fix for conditional animations condition processed only once (1 Viewer)

Migue

Retired Team Member
  • Premium Supporter
  • January 27, 2006
    381
    305
    Florida
    Currently if I specify a conditional animation with, for example, a Player.Playing condition, the animation will only play only once after the condition has been met.

    Here's a sample to reproduce in myvideos.xml in Blue3:
    Code:
    [COLOR=blue]<[/COLOR][COLOR=#a31515]control[/COLOR][COLOR=blue]>
    [/COLOR][COLOR=blue]  <[/COLOR][COLOR=#a31515]description[/COLOR][COLOR=blue]>[/COLOR]Sort[COLOR=blue]</[/COLOR][COLOR=#a31515]description[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]  <[/COLOR][COLOR=#a31515]type[/COLOR][COLOR=blue]>[/COLOR]sortbutton[COLOR=blue]</[/COLOR][COLOR=#a31515]type[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]  <[/COLOR][COLOR=#a31515]id[/COLOR][COLOR=blue]>[/COLOR]3[COLOR=blue]</[/COLOR][COLOR=#a31515]id[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]  <[/COLOR][COLOR=#a31515]label[/COLOR][COLOR=blue]>[/COLOR]103[COLOR=blue]</[/COLOR][COLOR=#a31515]label[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]  <[/COLOR][COLOR=#a31515]onright[/COLOR][COLOR=blue]>[/COLOR]50[COLOR=blue]</[/COLOR][COLOR=#a31515]onright[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]  <[/COLOR][COLOR=#a31515]onup[/COLOR][COLOR=blue]>[/COLOR]2[COLOR=blue]</[/COLOR][COLOR=#a31515]onup[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]  <[/COLOR][COLOR=#a31515]animation[/COLOR][COLOR=red] effect[/COLOR][COLOR=blue]=[/COLOR]"[COLOR=blue]zoom[/COLOR]"[COLOR=red]start[/COLOR][COLOR=blue]=[/COLOR]"[COLOR=blue]100,100[/COLOR]"[COLOR=red]end[/COLOR][COLOR=blue]=[/COLOR]"[COLOR=blue]100,105[/COLOR]"[COLOR=red]time[/COLOR][COLOR=blue]=[/COLOR]"[COLOR=blue]500[/COLOR]"[COLOR=red]condition[/COLOR][COLOR=blue]=[/COLOR]"[COLOR=blue]Player.Playing[/COLOR]"[COLOR=red]pulse[/COLOR][COLOR=blue]=[/COLOR]"[COLOR=blue]true[/COLOR]"[COLOR=blue]>[/COLOR]conditional[COLOR=blue]</[/COLOR][COLOR=#a31515]animation[/COLOR][COLOR=blue]>[/COLOR]
    [COLOR=blue]</[/COLOR][COLOR=#a31515]control[/COLOR][COLOR=blue]>[/COLOR]
    With that code in place go to My Videos, and start playing a file. Then go back to My Videos while the video is still playing and open sliding menu. The sort button will be pulsing.
    Then pause the video and the sort button will stop pulsing.
    Then resume playing the video and the sort button doesn't start pulsing when it should.

    With this simple patch, the animation will work correctly.
     

    Attachments

    • fix for conditional animations processing condition only once (using SVN 25988).patch
      606 bytes

    Users who are viewing this thread

    Top Bottom