/**@class android.media.SubtitleController.Renderer @extends java.lang.Object Interface for supporting a single or multiple subtitle types in {@link android.media.MediaPlayer}. */ var Renderer = { /**Called by {@link android.media.MediaPlayer}'s {@link android.media.SubtitleController} when a new subtitle track is detected, to see if it should use this object to parse and display this subtitle track. @param {Object {MediaFormat}} format the format of the track that will include at least the MIME type {@link MediaFormat@KEY_MIME}. @return {Boolean} true if and only if the track format is supported by this renderer */ supports : function( ) {}, /**Called by {@link android.media.MediaPlayer}'s {@link android.media.SubtitleController} for each subtitle track that was detected and is supported by this object to create a {@link android.media.SubtitleTrack} object. This object will be created for each track that was found. If the track is selected for display, this object will be used to parse and display the track data. @param {Object {MediaFormat}} format the format of the track that will include at least the MIME type {@link MediaFormat@KEY_MIME}. @return {Object {android.media.SubtitleTrack}} a {@link SubtitleTrack} object that will be used to parse and render the subtitle track. */ createTrack : function( ) {}, };