Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This event object is generated by the roPtp object whenever the PTP status of the player changes.

ifUserData

SetUserData(user_data As Object)

Sets the user data that will be returned when events are raised.

GetUserData() As Object

Returns the user data that has previously been set via SetUserData(). It will return Invalid if no data has been set.

ifPtpEvent

GetPtpStatus() As roAssociativeArray

Returns an associative array containing information about the network PTP state of the player:

  • state: A string indicating the current PTP state of the player. Values can be "MASTER", "SLAVE", or "UNCALIBRATED".

  • timestamp: A value indicating when the PTP state was last changed. This value is measured in seconds since the player booted. This value can be compared against the total uptime of the player, which is retrieved by calling UpTime(0).

Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
indent20px