A customer asked how he could add a transition to a media rss feed or dynamic playlist. There isn't currently a setting in brightauthor for this. But, you can modify the autorun script published with brightauthor to add a transition. Additionally, this customer wanted to randomize the transitions used. In the example below, a different transition is used each time the unit checks to see if the feed has been updated, so each time through the feed.
In this function, you'll find the transition setting for mrss feeds and dynamic play lists.
Function newFeedPlayer
Change these line:
if type(fp.imagePlayer) = "roImageWidget" then
fp.imagePlayer.SetDefaultTransition(slideTransition%)
endif
To these two lines:
'if type(fp.imagePlayer) = "roImageWidget" then
slideTransition%=rnd(29) 'up to 29
fp.imagePlayer.SetDefaultTransition(slideTransition%)
'endif
To randomize transitions every time an image plays in the mrss feed or dynamic playlist, search for this function and make the changes below:
Function pFeedPlayer_DisplayItem( item As Object ) As Boolean
Original line:
m.imagePlayer.SetDefaultTransition(m.slideTransition%)
add line:
m.slideTransition% = rnd(29) 'up to 29
m.imagePlayer.SetDefaultTransition(m.slideTransition%)
Original line:
m.imagePlayer.SetDefaultTransition(0)
Add line, and change existing line:
m.slideTransition% = rnd(29) 'up to 29
m.imagePlayer.SetDefaultTransition(m.slideTransition%)
Note: If you don't want to randomize, you can just set the slide transition to a specific number. Zero is no transition. In BrightAuthor, the list of transitions start at 1 and go up to 19. There are 5 additional transitions 20 - 24 that don't perform well on slower brightsigns that weren't listed. And, transitions 25 - 29 are only on the xd.