FileDocCategorySizeDatePackage
TtmlRenderer.javaAPI DocAndroid 5.1 API27738Thu Mar 12 22:22:30 GMT 2015android.media

TtmlRenderer

public class TtmlRenderer extends SubtitleController.Renderer
hide

Fields Summary
private final android.content.Context
mContext
private static final String
MEDIA_MIMETYPE_TEXT_TTML
private TtmlRenderingWidget
mRenderingWidget
Constructors Summary
public TtmlRenderer(android.content.Context context)


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

        if (mRenderingWidget == null) {
            mRenderingWidget = new TtmlRenderingWidget(mContext);
        }
        return new TtmlTrack(mRenderingWidget, format);
    
public booleansupports(MediaFormat format)

        if (format.containsKey(MediaFormat.KEY_MIME)) {
            return format.getString(MediaFormat.KEY_MIME).equals(MEDIA_MIMETYPE_TEXT_TTML);
        }
        return false;