VideoPlayerCallBack Class

Header: #include "easyar/player.hpp"

Description

VideoPlayerCallBack is the callback class for VideoPlayer.

The callback is passed to the player from VideoPlayer::open and used in the whole life time to return open result or play status. You should implement operator() to get the result.

Public Functions

virtual void operator() (VideoPlayer::Status status) = 0

virtual void operator() (VideoPlayer::Status status)

status indicates different status of the player. A successful open will have a status of kVideoReady and when the play reaches the end, status will be kVideoCompleted; If any error happens, the status will be kVideoError. See VideoPlayer::Status for more description of different status.