Skip to content Skip to sidebar Skip to footer

Unable To Pause/forward/backward Video Using Mediacontroller In Android

Iam unable to pause / forward / backward the video using MediaController and it is happening only in the LG devices. Below is the code which am using and it is working in the rest

Solution 1:

Finally I found a solution...

In some LG devices, by defaultly controls are disabled in VideoView.

So we have to explicitly enable them by Overriding the below functions in VideoView:

@Override
public boolean canSeekForward() {
    return true;
}

@Override
public boolean canSeekBackward() {
    return true;
}

@Override
public boolean canPause() {
    return true;
}

Post a Comment for "Unable To Pause/forward/backward Video Using Mediacontroller In Android"