Display an error dialog if we can't find an H.264 decoder

This commit is contained in:
Cameron Gutman
2015-12-16 18:30:53 -08:00
parent 9bb91e1085
commit 3b1fcdfb10
3 changed files with 18 additions and 0 deletions

View File

@@ -4,4 +4,5 @@ import com.limelight.nvstream.av.video.VideoDecoderRenderer;
public abstract class EnhancedDecoderRenderer extends VideoDecoderRenderer {
public abstract boolean isHevcSupported();
public abstract boolean isAvcSupported();
}

View File

@@ -116,6 +116,11 @@ public class MediaCodecDecoderRenderer extends EnhancedDecoderRenderer {
return hevcDecoderName != null;
}
@Override
public boolean isAvcSupported() {
return avcDecoderName != null;
}
@Override
public boolean setup(VideoDecoderRenderer.VideoFormat format, int width, int height, int redrawRate, Object renderTarget, int drFlags) {
this.initialWidth = width;