| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.app.AlertDialog; | 8 import android.app.AlertDialog; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.DialogInterface; | 10 import android.content.DialogInterface; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 */ | 46 */ |
| 47 private static final int MEDIA_NOP = 0; // interface test message | 47 private static final int MEDIA_NOP = 0; // interface test message |
| 48 private static final int MEDIA_PREPARED = 1; | 48 private static final int MEDIA_PREPARED = 1; |
| 49 private static final int MEDIA_PLAYBACK_COMPLETE = 2; | 49 private static final int MEDIA_PLAYBACK_COMPLETE = 2; |
| 50 private static final int MEDIA_BUFFERING_UPDATE = 3; | 50 private static final int MEDIA_BUFFERING_UPDATE = 3; |
| 51 private static final int MEDIA_SEEK_COMPLETE = 4; | 51 private static final int MEDIA_SEEK_COMPLETE = 4; |
| 52 private static final int MEDIA_SET_VIDEO_SIZE = 5; | 52 private static final int MEDIA_SET_VIDEO_SIZE = 5; |
| 53 private static final int MEDIA_ERROR = 100; | 53 private static final int MEDIA_ERROR = 100; |
| 54 private static final int MEDIA_INFO = 200; | 54 private static final int MEDIA_INFO = 200; |
| 55 | 55 |
| 56 // Type needs to be kept in sync with surface_texture_peer.h. | |
| 57 private static final int SET_VIDEO_SURFACE_TEXTURE = 1; | |
| 58 | |
| 59 /** The video is streamed and its container is not valid for progressive | 56 /** The video is streamed and its container is not valid for progressive |
| 60 * playback i.e the video's index (e.g moov atom) is not at the start of the | 57 * playback i.e the video's index (e.g moov atom) is not at the start of the |
| 61 * file. | 58 * file. |
| 62 */ | 59 */ |
| 63 public static final int MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK = 2; | 60 public static final int MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK = 2; |
| 64 | 61 |
| 65 // all possible internal states | 62 // all possible internal states |
| 66 private static final int STATE_ERROR = -1; | 63 private static final int STATE_ERROR = -1; |
| 67 private static final int STATE_IDLE = 0; | 64 private static final int STATE_IDLE = 0; |
| 68 private static final int STATE_PLAYING = 1; | 65 private static final int STATE_PLAYING = 1; |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 private native int nativeGetDurationInMilliSeconds(int nativeContentVideoVie
w); | 606 private native int nativeGetDurationInMilliSeconds(int nativeContentVideoVie
w); |
| 610 private native void nativeUpdateMediaMetadata(int nativeContentVideoView); | 607 private native void nativeUpdateMediaMetadata(int nativeContentVideoView); |
| 611 private native int nativeGetVideoWidth(int nativeContentVideoView); | 608 private native int nativeGetVideoWidth(int nativeContentVideoView); |
| 612 private native int nativeGetVideoHeight(int nativeContentVideoView); | 609 private native int nativeGetVideoHeight(int nativeContentVideoView); |
| 613 private native boolean nativeIsPlaying(int nativeContentVideoView); | 610 private native boolean nativeIsPlaying(int nativeContentVideoView); |
| 614 private native void nativePause(int nativeContentVideoView); | 611 private native void nativePause(int nativeContentVideoView); |
| 615 private native void nativePlay(int nativeContentVideoView); | 612 private native void nativePlay(int nativeContentVideoView); |
| 616 private native void nativeSeekTo(int nativeContentVideoView, int msec); | 613 private native void nativeSeekTo(int nativeContentVideoView, int msec); |
| 617 private native void nativeSetSurface(int nativeContentVideoView, Surface sur
face); | 614 private native void nativeSetSurface(int nativeContentVideoView, Surface sur
face); |
| 618 } | 615 } |
| OLD | NEW |