Author Topic: Question about Player_GetPosition api  (Read 10923 times)

samlangten

  • Newbie
  • *
  • Posts: 9
Hello,

I use System.Threading.Timer to get playing position by Player_GetPosition api every 10ms but it returns some same value.
It will be like this:
https://2aaggq.bn1303.livefilestore.com/y2pHD6y6srZUVa2srZXwD4kIpNwICrJJmTv6Dt0F2TwP0VoqpLNQIPKXjyWryqDULWFIvyl0DLWV3mrzjAyLR5Al5qx0qGayDSlfjGBMi9VQ1sIOxWlkx0CCDwUlLejZ9kylI2CbQZJrNyZdaWpJRj8HFZI3NZosY4mRB4Sr5BVQaw/pro.png
This is my code:

Dim timer As New System.Threading.Timer(Sub()
                                                                TESTF.BeginInvoke(Sub()
                                                                                      TESTF.TextBox1.AppendText(mbApiInterface.Player_GetPosition().ToString() + vbCrLf)
                                                                                  End Sub)
                                                            End Sub, Nothing, 0, 10)

It seems that value wont be updated in 200ms,but I really need to get different position value every 20ms.What can I do?

Thanks

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34344
in v2.5 from the first forum topic, that rate was doubled to 10 times a second.
But to answer your question, no thats not supported but could be added for v3, but thats some time off

samlangten

  • Newbie
  • *
  • Posts: 9
Thanks,Steven
Ten times a second can make my plugin work better.