I am doing custom media animations using PBAutomation. For one of the functionality I am working on, I need to know the resolution of the media. From my understanding of the documentation, the AutoGetMediaInfo1(index As Integer, MediaInfo As MediaType1) will give me exactly that in the returned MediaInfo structure.
My problem is, what is the index? The documentation says:
AutoGetMediaInfo1(index As Integer, MediaInfo As MediaType1)
Gets information on media identified by index
index: Index
MediaInfo: MediaInfo1 object to write information to
Success. When false is returned check AutoGetLastError()
Which does not give any information about what is this index. Could you please give me more details about the usage of the function?
Thank you!