Re: de-/activation of streams

Andreas Kraft (kraft@fokus.gmd.de)
Mon, 6 Oct 1997 12:58:24 +0200 (MET DST)

Dear MUG members,

On Wed, 1 Oct 1997, Andreas Zisowsky wrote:

> I have problems in understanding the activation and deactivation
> behaviours of the MHEG class Stream. What is meant with "Start playing
> all active StreamComponents" and "Stop playing all active
> StreamComponents". Do I call their activation and deactivation
> behaviours? Or do these components have non-mentioned internal behaviours
> StartPlayer/StopPlayer?
>
> If I use the activation/deactivation behaviours, then I get into the
> following problem:
> The deactivation behaviours of all active components are called. Hence
> none of the components has the RunningStatus set afterwards. When the
> activation behaviour of the stream is called again, then of course no
> player will be started, unless the activation behaviour of any of the
> components is called explicitly.

In my understanding there is no problem. The "InitiallyActive" attribute
of the StreamComponents only determines whether they are automatically
activated in the Preparation behaviour of the Stream class.
The important point is that the StreamComponents are _not_ Deactivated
(i.e. RunningStatus == false) in the Deactivation behaviour of a Stream.
It says only "2. Stop playing all active StreamComponents". The components
are only Deactivated in the the Destruction behaviour of a Stream (Destruction
calls Deactivation first, if necessary) or "by hand" via a Stop action.

I hope my understanding is compliant :-)

Best regards,

Andreas

--
  o  _     Andreas Kraft
 (\_|_)      GMD FOKUS, kraft@fokus.gmd.de, +49 30 3463-7232
 T> ] [        The sky is the limit