On Fri, Mar 30, 2012 at 9:37 AM, Robert O'Callahan <robert@ocallahan.org>wrote:
> That is an interesting use-case. It can be solved with the existing spec:
> set autoFinish to false on your processing Worker, so that it keeps going
> when all inputs have finished. In your processing Worker, you will get
> onprocessmedia callbacks with no inputs, and it can keep producing output.
> Once you know that you won't ever produce anything but silence, the
> processing Worker should call finish() on its ProcessMediaEvent to end its
> stream.
>
Actually, autofinish is readonly once the stream is created. The "new
ProcessedMediaStream()" constructor sets autofinish to false.
This ought to work in the test builds.
Rob
--
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]