Hi,
I’m trying to write an extension using C++ SDK, which would automatically display some information based on playhead position. But I can’t find any API which would return current playhead position.
Here is what I tried instead, but this doesn’t work either:
- I have SAFP in Global Rackspace.
- I create a Label widget called
playerTimein Global Rackspace and mapped in to SAFP’s Position. - When song is playing I see time updated in the Label.
- In my extension I have:
listenForWidget("playerTime", true);
andregisterCallback(“OnWidgetCaptionChanged”); - But callback is never called for this widget.
I have other widgets, located in non-global rackspace which I can observe in my extension without issues (however their captions are modified via song part actions).
Is such scenario supported? Maybe there is a better way to access playback position inside extension?