Media Streams question

RichMcG wrote on 1/20/2004, 1:17 PM
If Media.Streams[0] is the video portion of a video. Is Streams[1] the audio? Is there any other types of media (images?). This gets back to how to load the audio and video portion of a video. I can add the video portion of the video correctly, how do I add the audio portion assuming I load it this way:

var media = new Media(filename)
var videostream = media.streams[0]
var audiostream = media.????

var newAudioEvent = new AudioEvent(timecode, audiostream.length)
AudioTrack.Events.Add(NewAudioEvent)
??

What am I missing?


Rich