registerObserver

Registers the observer of the player.

public void registerObserver(PlayerObserver observer) throws RteException;
Since
v4.5.0

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

Call timing

Call this method after Player.

Restrictions

None.

Parameters

observer
The delegate instance. See PlayerObserver.

Exception

If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.