mContext = context;
if (mRenderingWidget == null) { mRenderingWidget = new TtmlRenderingWidget(mContext); } return new TtmlTrack(mRenderingWidget, format);
if (format.containsKey(MediaFormat.KEY_MIME)) { return format.getString(MediaFormat.KEY_MIME).equals(MEDIA_MIMETYPE_TEXT_TTML); } return false;