Good eye, you've spotted some outdated comments in that sample project. That comment also says you can use timelineFuncs->getCurrentClipPos(), which was true at one time, but now that function is no longer supported. I'll update this comment. Unfortunately, at this time there is no replacement for getCurrentClipPos(), and there is no flag in the video segment information that provides a flag or unique ID for the custom importer instance, to find the clip in the video segment information.
Are you writing a custom importer (that references an actual file on disk)? If so, you can do some work to parse the video segments to find instances of the custom importer in the timeline. You can find the in and out points of that instance. The drawback is that if there are multiple instances of the clip in the timeline, it will be difficult to distinguish between various instances.
Thanks for reply. Yes, I'm writing a custom importer. I think I found a way to get the clip information by enumerating timeline segmenst (using SDK_Segment_Utils). I'm comparing mediapath acquired by 'kVideoSegmentProperty_Media_InstanceString' property to identify current clip. Not sure if this is the best way, but it works, given that, each clip instance has unique path.
I realized that, video segment is not same as clip. It looks like, PPro creates segments based on clip placements. Hence, there is a chnace that importer instance (current clip in question) is not cosiderd as a segment by PPro.