Re: SetData in Stream class

Emmanuel BEUQUE (ebeuque@pratique.fr)
Tue, 3 Feb 1998 11:52:32 +0100

À (At) 9:16 +0100 3/02/98, Andreas Zisowsky écrivait (wrote) :
>as already discussed in the MUG, there are plans to allow the SetData
>action for the Stream class. Do you have any ideas, what to do with
>the current values? I think CounterPosition, CounterEndPosition and
>the CounterTriggers should be cleared, since they may have invalid
>values. Multiplex is also a problem, since the new stream may have
>different components.
>
>If the previous values are kept, there several constraints for the
>author of such an applicion. Seems like a longer note has to be added
>for SetData...

Good point. In my opinion, CounterPosition, CounterEndPosition and
CounterTriggers should be reseted to their default values when the SetData
occurs, as you stated.

Regarding the multiplex, I think that we may add a constraints that the
stream used in the setData must have the same multiplex structure as the
stream it replaces. This would simplify things IMHO.

BTW, I know that I will bring down Xavier and Wataru's wrath on me, but if
we makes some changes in the stream class, why not adding a
getCounterPosition elementary action ?

Everybody must admit that MHEG usually provides both actions to get and set
most important attributes of any class. There is definitely something
missing here. There is no way to store the position of a stream in a
variable in order to make the stream start from this point later.

This is not a gratuitous ask for changes. I do think that if we provides
the ability to switch Data of a stream and if the counterPosition attribute
is reseted, it would be highly interested to save the counterPosition into
a variable.

What do you think ?
Regards,
Emmanuel

__________________________________________________________________
Emmanuel BEUQUE mailto:ebeuque@pratique.fr
MediaServ tel: +33 (0) 2 99 64 35 64
Multimedia consultant & developer fax: +33 (0) 2 99 64 36 65