0

MRSS Image Transitions / Here's how



Using the MRSS widget in brightauthor, here's how I got a fade to new image transition working for MRSS images.... In autorun.brs find the following subroutine.... Sub newRSSImagePlaylistItem(playlistItemXML As Object, playlistItemBS As Object) rssSpec = playlistItemXML.rssSpec rssSpecAttrs = rssSpec.GetAttributes() playlistItemBS.rssURL$ = rssSpecAttrs["url"] End Sub Add this line to it..... playlistItemBS.slideTransition% = 15 15 is the "fade to new image" transition. Numbers for the others are in the script. So the complete Subroutine should look like.... Sub newRSSImagePlaylistItem(playlistItemXML As Object, playlistItemBS As Object) rssSpec = playlistItemXML.rssSpec rssSpecAttrs = rssSpec.GetAttributes() playlistItemBS.rssURL$ = rssSpecAttrs["url"] playlistItemBS.slideTransition% = 15 End Sub Cheers! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->

5 comments

  • 0
    Avatar
    Marc

    I tried this method.  After adding the line of code specified, my autorun.brs did not work.  I get a red blinking LED when I boot the HD 1010.  I removed the line of code, and the HD 1010 boots up fine.  Maybe something changed that now makes this method inop.  I have reported it to BS Support.  Any other ideas?  I really want transitions between MRSS slides.

  • 0
    Avatar
    Lyndon

    I had sent this rely via email, but wanted to add to this thread as well..

     

    This should be what you're looking for. In this function below, the line listed shows the transition being set. The feedplayer is what handles media rss feeds. I would replace the m.slidetransition% with an actual number.

    Function pFeedPlayer_DisplayItem( item As Object ) As Boolean 


    .

    m.imagePlayer.SetDefaultTransition(m.slideTransition%)

    change to this for example: 
    m.imagePlayer.SetDefaultTransition(15)

  • 0
    Avatar
    Marc

    Manually editing Autorun is DANGEROUS.  You can hose the machine doing this and with machines in very remote places like airports and internationally, it's extremely difficult to un-hose the machine.  Please add MRSS transitions to BrightAuthor.  Thank you!

  • 0
    Avatar
    Lyndon

    This has been requested as a feature addition. Editing the autorun is a problem if there's an error in the autorun, so I wouldn't recommend publishing a custom autorun unless you had tested it.

     

    Additionally, if you're using a brightsign network account, you can have a unit recover from a crashing script.

     

    And if the diag server on your unit is enabled, you can log into it, go to the diag page, and tell the unit to stop executing the problem autorun. You can upload a different one or the original one to the unit. Ideally, it would have been nice if we could make this change using a plugin, unfortunately, there's a call in the autorun script that resets the transition to non when the player for mrss feed kicks in so it makes it so you can't do this in a plugin.  But, it has been requested for brightauthor. 

  • 0
    Avatar
    GD

    Hello Brightsign, a good option would be to allow an extra tag in the mRSS or an extra attribute to the media tag for transition="15" and transition_speed="2000". If i put extra attributes in there, are these available in the autorun scripts?

Please sign in to leave a comment.