How can I create gapless ticker line?
From AVObjects Knowledge Base
(Difference between revisions)
Line 14: | Line 14: | ||
<cg-item group-type='ticker' id='ticker-000'> | <cg-item group-type='ticker' id='ticker-000'> | ||
<graphics color='ML(180)-White(180)'/> | <graphics color='ML(180)-White(180)'/> | ||
− | <ticker type='crawl' speed='-2.0' gapless-crawl=' | + | <ticker type='crawl' speed='-2.0' gapless-crawl='yes' distance='1.0' line-height='1.0'> |
<background color='ML(180)-White(180)'/> | <background color='ML(180)-White(180)'/> | ||
<default-text bold='true' size='20' style='uppercase'/> | <default-text bold='true' size='20' style='uppercase'/> |
Revision as of 20:51, 14 October 2011
It is really easy. All you need is change "gapless-crawl" parameter value of ticker to "yes":
<ticker type='crawl' speed='-2.0' gapless-crawl='yes' distance='1.0' line-height='1.0'>
There are 2 conditions for correct work of "gapless-crawl":
- Set "gapless-crawl" parameter value to "yes" before adding the content. If you have already added the content you have to re-add it.
- Content of ticker must contain at least 2 lines long enough to cover the ticker display area.
<cg-item group-type='ticker' id='ticker-000'> <graphics color='ML(180)-White(180)'/> <ticker type='crawl' speed='-2.0' gapless-crawl='yes' distance='1.0' line-height='1.0'> <background color='ML(180)-White(180)'/> <default-text bold='true' size='20' style='uppercase'/> <content> <content-item value='My first ticker content line. My second ticker content line. My third ticker content line.'/> </content> </ticker> <cg-props pos-x='36' pos-y='29' width='684' height='29' show='no' move-type='accel-both' alpha='255' bg-color='Black(0)' pixel-ar='0.000' play-mode='loop' interlace='auto' scale='fit-ar' align='top-left' pause='no' edges-smooth='0'> <indent left='0' right='0' top='0' bottom='0' use-for-bg='no'/> <group-indent left='0' right='0' top='0' bottom='0'/> </cg-props> <internal ignore-ticker='no'/> </cg-item>