On 2007-04-23 15:49, Soenke Schwardt wrote:
>> | video = device.get_stream(channel, 'audio,video')
>> | text = device.get_stream(channel, 'teletext')
>
> As Alessandro already mentioned it's sometimes clever to choose a
> specific audio stream if multiple are available. Changing audio stream
> while watching should also be possible (MP2 vs AC3, disable/enable
> audio comment for visually impaired people, ...)

How would changing an audio stream while watching affect the case where
you have multiple outputs, e.g. watching a stream you're currently
recording.  If I'm just casually cycling through the audio channels
while watching a show I'm recording, I probably wouldn't want that to
affect what I'm recording to disk.

Then perhaps these properties should not be passed to get_stream, but to
add_output:

   video = device.get_stream(channel, ('audio', 'video'))
   video.add_output('filewriter', filename = 'foo', alang = 'en')
   stream = video.add_output('udp', host = 'somebox', port = 9999, alang
= 'en)
   kaa.notifier.OneShotTimer(stream.set_property, alang = 'de').start(5)

(Small variations to the API, e.g. specifying multiple streams in a
tuple and using kwargs based on my feeling that they are more pythonic.)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to