summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-08-28 17:38:33 -0700
committerJamie Gennis <jgennis@google.com>2011-09-02 15:48:52 -0700
commit83fb94d188e18a44458f903ff4baa6e8402a31ce (patch)
treea8455575f12848d418358f1c0e74e12a6f1d7669 /media/java
parentc592e8e61acd3cfbd11f05d2ea59af267ca33dcf (diff)
downloadframeworks_base-83fb94d188e18a44458f903ff4baa6e8402a31ce.zip
frameworks_base-83fb94d188e18a44458f903ff4baa6e8402a31ce.tar.gz
frameworks_base-83fb94d188e18a44458f903ff4baa6e8402a31ce.tar.bz2
MediaPlayer: remove the setTexture method
This change removes the MediaPlayer#setTexture method. It has been replaced with MediaPlayer#setSurface. Change-Id: Iaecbbac7629d7092883f270694c5c67391f4ed6c
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaPlayer.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index e25f654..ec1c27a 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -658,40 +658,6 @@ public class MediaPlayer
}
/**
- * Sets the {@link SurfaceTexture} to be used as the sink for the
- * video portion of the media. Either a surface or surface texture
- * must be set if a video sink is needed. The same surface texture
- * can be re-set without harm. Setting a surface texture will un-set
- * any surface that was set via {@link #setDisplay(SurfaceHolder)}.
- * Not calling this method or {@link #setDisplay(SurfaceHolder)}
- * when playing back a video will result in only the audio track
- * being played. Note that if a SurfaceTexture is used, the value
- * set via setScreenOnWhilePlaying has no effect.
- *
- * The timestamps provided by {@link SurfaceTexture#getTimestamp()} for a
- * SurfaceTexture set as the video sink have an unspecified zero point,
- * and cannot be directly compared between different media sources or different
- * instances of the same media source, or across multiple runs of the same
- * program. The timestamp is normally monotonically increasing and unaffected
- * by time-of-day adjustments, but is reset when the position is set.
- */
- public void setTexture(SurfaceTexture st) {
- // TODO: This method should be hidden before it is published and setSurface
- // should be unhidden and made public instead.
- if (st != null) {
- Surface surface = new Surface(st);
- setSurface(surface);
-
- // It is safe and desired to release the newly created Surface here since the
- // native code will grab a reference to the underlying ISurfaceTexture. At that
- // point the Surface we just created is no longer needed.
- surface.release();
- } else {
- setSurface(null);
- }
- }
-
- /**
* Convenience method to create a MediaPlayer for a given Uri.
* On success, {@link #prepare()} will already have been called and must not be called again.
* <p>When done with the MediaPlayer, you should call {@link #release()},