Class APSMediaTrackingEvents
java.lang.Object
com.appscend.media.APSMediaTrackingEvents
The APSMediaEvents class defines the events that the Veeso player emits.
In order to receive events, implement the
APSMediaPlayerTrackingEventListener interface,
and register the listener with the Veeso Player.
Example:
A. In your class:
public class FullscreenActivity extends FragmentActivity implements APSMediaPlayerTrackingEventListener { . . . @Override public void onTrackingEventReceived(MediaEventType type, ArrayListB. When initializing the player (or any time you wish to start receiving events):urls, String description) { if(type == APSMediaEvents.MediaEventType.FULLSCREEN) Toast.makeText(FullscreenActivity.this, "Fullscreen entered", Toast.LENGTH_SHORT).show(); else if(type == APSMediaEvents.MediaEventType.EXIT_FULLSCREEN) Toast.makeText(FullscreenActivity.this, "Fullscreen exited", Toast.LENGTH_SHORT).show(); } APSMediaPlayer.getInstance().addTrackingEventListener(this);C. When you no longer want to receive events:APSMediaPlayer.getInstance().removeTrackingEventListener(this);
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
APSMediaTrackingEvents
public APSMediaTrackingEvents()
-