registerObserver

Registers an observer object for the player.

public void registerObserver(PlayerObserver observer) throws RteException
Since
Available since v4.4.0.

Before calling this method, you need to implement an interface class that inherits from PlayerObserver.

Timing

You must call this method after calling Player.

Parameters

observer
See PlayerObserver.

Exceptions

When the method call fails, the SDK throws an exception and returns the corresponding error information. You need to catch and handle the exception.