FileDocCategorySizeDatePackage
WebVttRenderer.javaAPI DocAndroid 5.1 API65676Thu Mar 12 22:22:30 GMT 2015android.media

WebVttRenderer

public class WebVttRenderer extends SubtitleController.Renderer
hide

Fields Summary
private final android.content.Context
mContext
private WebVttRenderingWidget
mRenderingWidget
Constructors Summary
public WebVttRenderer(android.content.Context context)

        mContext = context;
    
Methods Summary
public SubtitleTrackcreateTrack(MediaFormat format)

        if (mRenderingWidget == null) {
            mRenderingWidget = new WebVttRenderingWidget(mContext);
        }

        return new WebVttTrack(mRenderingWidget, format);
    
public booleansupports(MediaFormat format)

        if (format.containsKey(MediaFormat.KEY_MIME)) {
            return format.getString(MediaFormat.KEY_MIME).equals("text/vtt");
        }
        return false;