summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-08-30 14:38:56 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-30 14:38:56 -0700
commit8d102eb6720deccfb8b5872fde531ef6ca580077 (patch)
treeffb573506f9bb9546a00252f229c3b71c4518e10 /media/java
parentbe1a0493a8bf589137874bec4222297fbb712185 (diff)
parentaf4fccf0c029be1f6964de5a456ceb651f052ba4 (diff)
downloadframeworks_base-8d102eb6720deccfb8b5872fde531ef6ca580077.zip
frameworks_base-8d102eb6720deccfb8b5872fde531ef6ca580077.tar.gz
frameworks_base-8d102eb6720deccfb8b5872fde531ef6ca580077.tar.bz2
Merge changes I33f59705,Ia4c8c822,I2fb695ab,I2e587afc
* changes: MediaDump: use the MediaPlayer#setSurface method HTML5VideoView: switch to MediaPlayer#setSurface MediaPlayer: unhide the setSurface method Surface: unhide the SurfaceTexture ctor
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaPlayer.java21
1 files changed, 14 insertions, 7 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index 66bd56a..1ee9a1f 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -381,7 +381,7 @@ import java.lang.ref.WeakReference;
* <td>{} </p></td>
* <td>This method can be called in any state and calling it does not change
* the object state. </p></td></tr>
- * <tr><td>setTexture </p></td>
+ * <tr><td>setSurface </p></td>
* <td>any </p></td>
* <td>{} </p></td>
* <td>This method can be called in any state and calling it does not change
@@ -608,7 +608,7 @@ public class MediaPlayer
* portion of the media.
*
* Either a surface holder or surface must be set if a display or video sink
- * is needed. Not calling this method or {@link #setTexture(SurfaceTexture)}
+ * is needed. Not calling this method or {@link #setSurface(Surface)}
* when playing back a video will result in only the audio track being played.
* A null surface holder or surface will result in only the audio track being
* played.
@@ -629,14 +629,21 @@ public class MediaPlayer
/**
* Sets the {@link Surface} to be used as the sink for the video portion of
- * the media. This is similar to {@link #setDisplay(SurfaceHolder)}, but does not
- * support {@link #setScreenOnWhilePlaying(boolean)} or {@link #updateSurfaceScreenOn()}.
- * Setting a Surface will un-set any Surface or SurfaceHolder that was previously set.
+ * the media. This is similar to {@link #setDisplay(SurfaceHolder)}, but
+ * does not support {@link #setScreenOnWhilePlaying(boolean)}. Setting a
+ * Surface will un-set any Surface or SurfaceHolder that was previously set.
* A null surface will result in only the audio track being played.
*
- * @param surface The {@link Surface} to be used for the video portion of the media.
+ * If the Surface sends frames to a {@link SurfaceTexture}, the timestamps
+ * returned from {@link SurfaceTexture#getTimestamp()} will have an
+ * unspecified zero point. These timestamps cannot be directly compared
+ * between different media sources, different instances of the same media
+ * source, or multiple runs of the same program. The timestamp is normally
+ * monotonically increasing and is unaffected by time-of-day adjustments,
+ * but it is reset when the position is set.
*
- * @hide Pending review by API council.
+ * @param surface The {@link Surface} to be used for the video portion of
+ * the media.
*/
public void setSurface(Surface surface) {
if (mScreenOnWhilePlaying && surface != null) {