Ventuz Technology Group Forum  

Ventuz Forums » Ventuz » How to... » ticker chat ,how to control the appearing of messages

ticker chat ,how to control the appearing of messages
Started by franc14529 at 07-21-2008 11:31. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  07-21-2008, 11:31
franc14529 is not online. Last active: 7/23/2008 4:05:25 AM franc14529

Top 50 Posts
Joined on 12-27-2007
Posts 18
ticker chat ,how to control the appearing of messages
Dear all ,

hi ,i need an urgent help.

i have a ticker chat in my scene and i need to control the order of appearing of these messages in the ticker.
for example the ticker contains  mess1,mess2,mess3,mess4,mess5.........in the ticker.

i want to put a new message mess_direct before mess1in the buffer of the ticker so that it appears the first in the list.

in fact what i am doing is that mess1,.....mess5 are repeated continuously ,but what i want that when a new message (mess_direct)arrive  so that it will appear the first without waiting his turn to appear.

mess1,........,mess5 are less important than mess_direct.i want that mess_direct appears directly of course without resetting the ticker.


Best Regards
Francois





   Report 
  07-22-2008, 8:13
Ralf Stanke is not online. Last active: 8/25/2008 9:56:17 AM Ralf Stanke



Top 10 Posts
Joined on 05-15-2005
Dubai, U.A.E.
Posts 296
Re: ticker chat ,how to control the appearing of messages
Hi Francois,

currently there's no way to 'insert' message before already queued ones. a few possibily solutions:

1) keep the data threshold as low as possible, so that new data appear as soon as possible
2) insert blank dummy message items between all 'normal' messages and control their content directly, this is a bit hard because you won't know which 'dummy' item is available and has to be addressed, because the ticker is picking the available item randomly.
3) create a second 'immediate' ticker and you fade from the normal to the 'high prio' one, using the eventy fired from the ticker node and/or item (FirstIn, LastOut, ...)


Ralf


   Report 
  07-22-2008, 13:53
franc14529 is not online. Last active: 7/23/2008 4:05:25 AM franc14529

Top 50 Posts
Joined on 12-27-2007
Posts 18
Re: ticker chat ,how to control the appearing of messages

well i have tried the first solution.

in fact i was not using the on underrun event to trigger the retrieval of data,i was using a timer that retreive data and give them to the ticker to show them on screen.

but now i have returned to using the on underrun event with the same structure as before with the timer.

now it is showing the message good with no delay,but there is a problem which is the ticker suddenly cut off(no messages on the screen) and after 5 minutes it returned showing messages.

 

this ticker was showing messages normally without cuttoff with the timer method i used before

 

best Regards

francois


   Report 
  07-22-2008, 18:07
Ralf Stanke is not online. Last active: 8/25/2008 9:56:17 AM Ralf Stanke



Top 10 Posts
Joined on 05-15-2005
Dubai, U.A.E.
Posts 296
Re: ticker chat ,how to control the appearing of messages
Hi Francois,

if the ticker runs empty no further underrun event are thrown. The Empty flag is raised instead. This signals that there's no more data waiting the the queue and the "application" should hat that situation. One trick is to connect this flag to the Enabled property of an Event Node which is triggered priodically by a mover. As soon the ticker runs empty it enables the events node which then fires "special empty underrun events".

You logic can now handle this event to do the same as it does for the normal underrun.

Ralf

   Report