FileDocCategorySizeDatePackage
ClosedCaptionRenderer.javaAPI DocAndroid 5.1 API45965Thu Mar 12 22:22:30 GMT 2015android.media

ClosedCaptionRenderer

public class ClosedCaptionRenderer extends SubtitleController.Renderer
hide

Fields Summary
private final android.content.Context
mContext
private ClosedCaptionWidget
mRenderingWidget
Constructors Summary
public ClosedCaptionRenderer(android.content.Context context)

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

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

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