Closed GoogleCodeExporter closed 9 years ago
I'm willing to provide further feedback and support development with adding
programming usage samples to this project.
If you are interested contact me at marino.simic AT gmail.com
Original comment by marino.simic@gmail.com
on 23 Feb 2012 at 9:20
You can query the list of streams through several interfaces.
There is for example ITrackInfo (see the ITrackInfo.h in the developer_info
dir), or even the "official" interface IAMStreamSelect, which also exposes
names of the streams (and is required to change the stream )
http://msdn.microsoft.com/en-us/library/windows/desktop/dd319793(v=vs.85).aspx
Original comment by h.lepp...@gmail.com
on 23 Feb 2012 at 9:30
Note that for IAMStreamSelect::Info, the subtitle streams will all have the
pdwGroup parameter set to 2 (Video is 0, Audio is 1)
Original comment by h.lepp...@gmail.com
on 23 Feb 2012 at 9:32
Thank you very much. I did not see the TrackInfo interface before.
These methods are all I need! You can close this request!
STDMETHOD_(UINT, GetTrackCount) () = 0;
// \param aTrackIdx the track index (from 0 to GetTrackCount()-1)
STDMETHOD_(BOOL, GetTrackInfo) (UINT aTrackIdx, struct TrackElement* pStructureToFill) = 0;
// Get an extended information struct relative to the track type
STDMETHOD_(BOOL, GetTrackExtendedInfo) (UINT aTrackIdx, void* pStructureToFill) = 0;
STDMETHOD_(BSTR, GetTrackCodecID) (UINT aTrackIdx) = 0;
STDMETHOD_(BSTR, GetTrackName) (UINT aTrackIdx) = 0;
STDMETHOD_(BSTR, GetTrackCodecName) (UINT aTrackIdx) = 0;
STDMETHOD_(BSTR, GetTrackCodecInfoURL) (UINT aTrackIdx) = 0;
STDMETHOD_(BSTR, GetTrackCodecDownloadURL) (UINT aTrackIdx) = 0;
Original comment by marino.simic@gmail.com
on 23 Feb 2012 at 10:04
Original comment by h.lepp...@gmail.com
on 24 Feb 2012 at 5:30
Original issue reported on code.google.com by
marino.simic@gmail.com
on 23 Feb 2012 at 9:17