实际上我正在尝试在我的应用程序中播放视频,它会播放,但是所有控件(播放,暂停,前进)都在工作,但倒带按钮不起作用。如果您对此有任何想法,请告诉我。
vlcButtonRewind.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
/* if (libvlc.isPlaying()) {
if (trickPlayFwd=true ) {
trickPlaySpeedRev = 1;
trickPlaySpeedFwd = 1;
}*/
trickPlayFwd=false;
if (trickPlaySpeedRev<32){
trickPlaySpeedRev=(trickPlaySpeedRev*2);
trickPlaySpeed=(trickPlaySpeedRev);
trickPlayRev=true;}
else{
trickPlaySpeedRev = 1;
trickPlayRev =false;}
// trickPlayRewind(trickPlaySpeedRev);
Rspeed= String.valueOf(trickPlaySpeedRev);
trickPlayRewind(trickPlaySpeedRev); Toast toast = Toast.makeText(getApplicationContext(), "<< " + Rspeed + "X", Toast.LENGTH_SHORT);
toast.setGravity(Gravity.BOTTOM| Gravity.RIGHT, 0,0);
toast.show();
libvlc.setRate(trickPlaySpeedRev);
int i =vlcSeekbar.getProgress();
libvlc.setFrameSkip(true);
dorev=true;
}
});