Java Code Examples for org.videolan.libvlc.Media#Event

The following examples show how to use org.videolan.libvlc.Media#Event . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlaybackService.java    From VCL-Android with Apache License 2.0 6 votes vote down vote up
@Override
public void onEvent(Media.Event event) {
    switch (event.type) {
        case Media.Event.ParsedChanged:
            Log.i(TAG, "Media.Event.ParsedChanged");
            final MediaWrapper mw = getCurrentMedia();
            if (mw != null)
                mw.updateMeta(mMediaPlayer);
            executeUpdate();
            break;
        case Media.Event.MetaChanged:
            break;
    }
    for (Callback callback : mCallbacks)
        callback.onMediaEvent(event);
}
 
Example 2
Source File: VideoPlayerActivity.java    From VCL-Android with Apache License 2.0 5 votes vote down vote up
@Override
public void onMediaEvent(Media.Event event) {
    switch (event.type) {
        case Media.Event.ParsedChanged:
            updateNavStatus();
            break;
        case Media.Event.MetaChanged:
            break;
        case Media.Event.SubItemTreeAdded:
            mHasSubItems = true;
            break;
    }
}
 
Example 3
Source File: AudioPlayer.java    From VCL-Android with Apache License 2.0 4 votes vote down vote up
@Override
public void onMediaEvent(Media.Event event) {
}
 
Example 4
Source File: AudioPlayerActivity.java    From VCL-Android with Apache License 2.0 2 votes vote down vote up
@Override
public void onMediaEvent(Media.Event event) {

}
 
Example 5
Source File: PlaybackService.java    From VCL-Android with Apache License 2.0 votes vote down vote up
void onMediaEvent(Media.Event event);