Skip to main content
Participant
December 17, 2023
Answered

Setting player position in a clip opened in Source Monitor via extension scripting

  • December 17, 2023
  • 1 reply
  • 304 views

I am creating a Premiere Pro extension where I would like to set the player position (and marks, if possible) in  a clip opened in Source Monitor. However the API seems to only provide such functionality on a Sequence, whereas for Source Monitor we only have the calls:

 

openFilePath(filePath: string): boolean
play(speed?: number): void
getPosition(): Time

 

In theory we could play the clip at a very high playback speed and check if the current position is where we want it, and then set the playback speed to 0. But this method is imprecise and clearly a worse alternative to the Sequence method:

 

setPlayerPosition(pos: string): void

 

Is there any way we could set the player position directly to a specified time in a clip opened in Source Monitor, in the same way you can in a Sequence?

 

Thankful for any guidance!

/L

This topic has been closed for replies.
Correct answer Bruce Bullis

Is there any way we could set the player position directly to a specified time in a clip opened in Source Monitor, in the same way you can in a Sequence?

 

Not using the official API.

 

Still, you may find these comments in PProPanel, elucidating. 🙂

 

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
December 17, 2023

Is there any way we could set the player position directly to a specified time in a clip opened in Source Monitor, in the same way you can in a Sequence?

 

Not using the official API.

 

Still, you may find these comments in PProPanel, elucidating. 🙂

 

Participant
December 17, 2023

Wow, an answer within 6 hours on a sunday. You really are the MVP.

Thank you!