/*****************************************************************************
* VideoPlayerActivity.java
*****************************************************************************
* Copyright © 2011-2014 VLC authors and VideoLAN
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
package org.videolan.vlc.gui.video;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.KeyguardManager;
import android.app.Presentation;
import android.bluetooth.BluetoothA2dp;
import android.bluetooth.BluetoothHeadset;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.media.AudioManager;
import android.media.MediaRouter;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.preference.PreferenceManager;
import android.provider.Settings;
import android.provider.Settings.SettingNotFoundException;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;
import android.text.TextUtils;
import android.text.format.DateFormat;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Display;
import android.view.GestureDetector;
import android.view.InputDevice;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.Surface;
import android.view.SurfaceView;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLayoutChangeListener;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.AnimationUtils;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.RotateAnimation;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
import android.widget.Toast;
import org.videolan.libvlc.IVLCVout;
import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.Media;
import org.videolan.libvlc.MediaPlayer;
import org.videolan.libvlc.util.AndroidUtil;
import org.videolan.libvlc.util.HWDecoderUtil;
import org.videolan.vlc.BuildConfig;
import org.videolan.vlc.PlaybackService;
import org.videolan.vlc.R;
import org.videolan.vlc.VLCApplication;
import org.videolan.vlc.gui.MainActivity;
import org.videolan.vlc.gui.PlaybackServiceActivity;
import org.videolan.vlc.gui.audio.PlaylistAdapter;
import org.videolan.vlc.gui.browser.FilePickerActivity;
import org.videolan.vlc.gui.dialogs.AdvOptionsDialog;
import org.videolan.vlc.gui.helpers.OnRepeatListener;
import org.videolan.vlc.gui.helpers.SwipeDragItemTouchHelperCallback;
import org.videolan.vlc.gui.helpers.UiTools;
import org.videolan.vlc.gui.preferences.PreferencesActivity;
import org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity;
import org.videolan.vlc.interfaces.IPlaybackSettingsController;
import org.videolan.vlc.media.MediaDatabase;
import org.videolan.vlc.media.MediaUtils;
import org.videolan.vlc.media.MediaWrapper;
import org.videolan.vlc.util.AndroidDevices;
import org.videolan.vlc.util.FileUtils;
import org.videolan.vlc.util.Permissions;
import org.videolan.vlc.util.Strings;
import org.videolan.vlc.util.SubtitlesDownloader;
import org.videolan.vlc.util.Util;
import org.videolan.vlc.util.VLCInstance;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.StreamCorruptedException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.Callback,
GestureDetector.OnDoubleTapListener, IPlaybackSettingsController,
PlaybackService.Client.Callback, PlaybackService.Callback, PlaylistAdapter.IPlayer, OnClickListener, View.OnLongClickListener {
public final static String TAG = "VLC/VideoPlayerActivity";
// Internal intent identifier to distinguish between internal launch and
// external intent.
public final static String PLAY_FROM_VIDEOGRID = Strings.buildPkgString("gui.video.PLAY_FROM_VIDEOGRID");
public final static String PLAY_FROM_SERVICE = Strings.buildPkgString("gui.video.PLAY_FROM_SERVICE");
public final static String EXIT_PLAYER = Strings.buildPkgString("gui.video.EXIT_PLAYER");
public final static String PLAY_EXTRA_ITEM_LOCATION = "item_location";
public final static String PLAY_EXTRA_SUBTITLES_LOCATION = "subtitles_location";
public final static String PLAY_EXTRA_ITEM_TITLE = "title";
public final static String PLAY_EXTRA_FROM_START = "from_start";
public final static String PLAY_EXTRA_START_TIME = "position";
public final static String PLAY_EXTRA_OPENED_POSITION = "opened_position";
public final static String PLAY_DISABLE_HARDWARE = "disable_hardware";
public final static String ACTION_RESULT = Strings.buildPkgString("player.result");
public final static String EXTRA_POSITION = "extra_position";
public final static String EXTRA_DURATION = "extra_duration";
public final static int RESULT_CONNECTION_FAILED = RESULT_FIRST_USER + 1;
public final static int RESULT_PLAYBACK_ERROR = RESULT_FIRST_USER + 2;
public final static int RESULT_HARDWARE_ACCELERATION_ERROR = RESULT_FIRST_USER + 3;
public final static int RESULT_VIDEO_TRACK_LOST = RESULT_FIRST_USER + 4;
private final PlaybackServiceActivity.Helper mHelper = new PlaybackServiceActivity.Helper(this, this);
private PlaybackService mService;
private SurfaceView mSurfaceView = null;
private SurfaceView mSubtitlesSurfaceView = null;
private View mRootView;
private FrameLayout mSurfaceFrame;
private MediaRouter mMediaRouter;
private MediaRouter.SimpleCallback mMediaRouterCallback;
private SecondaryDisplay mPresentation;
private int mPresentationDisplayId = -1;
private Uri mUri;
private boolean mAskResume = true;
pr
没有合适的资源?快使用搜索试试~ 我知道了~
VLC-Android-2.0.6.tar.gz_Weird_android_android vlc_android DVD_
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 36 浏览量
2022-09-21
20:39:08
上传
评论
收藏 6.09MB GZ 举报
温馨提示
VLC media player is a free and open source cross-platform multimedia player that plays most multimedia files as well as discs, devices, and network streaming protocols. This is the port of VLC media player to the Android? platform. VLC for Android can play any video and audio files, as well as network streams and DVD ISOs, like the desktop version of VLC. VLC for Android is a full audio player, with a complete database, an equalizer and filters, playing all weird audio formats.
资源推荐
资源详情
资源评论
收起资源包目录
VLC-Android-2.0.6.tar.gz_Weird_android_android vlc_android DVD_ (2000个子文件)
libvlcjni-mediaplayer.c 30KB
libvlcjni-media.c 17KB
libvlcjni.c 15KB
thumbnailer.c 11KB
pthread-rwlocks.c 10KB
libvlcjni-dialog.c 7KB
libvlcjni-vlcobject.c 7KB
std_logger.c 5KB
libvlcjni-medialist.c 5KB
libvlcjni-mediadiscoverer.c 5KB
pthread-once.c 3KB
wcstok.c 3KB
native_crash_handler.c 3KB
wcslcat.c 3KB
wcslcpy.c 2KB
wcsncpy.c 2KB
wcswidth.c 2KB
wcsstr.c 2KB
wcscmp.c 2KB
pthread-condattr.c 2KB
wcsncmp.c 2KB
wcsxfrm.c 2KB
wcpcpy.c 2KB
wcspbrk.c 2KB
sem.c 2KB
wcsncat.c 2KB
wcsspn.c 2KB
wcscspn.c 2KB
wmemcmp.c 2KB
wmemchr.c 2KB
wcscat.c 2KB
wmemcpy.c 2KB
wmemset.c 2KB
wcscpy.c 2KB
wmemmove.c 2KB
wcslen.c 2KB
wcsncasecmp.c 2KB
wcscoll.c 2KB
wcpncpy.c 2KB
wcscasecmp.c 2KB
wcsdup.c 2KB
wcsrchr.c 2KB
wcsnlen.c 2KB
wcschr.c 2KB
eventfd.c 1KB
pipe2.c 1KB
localtime.c 59B
camera3.h 122KB
camera3.h 94KB
camera3.h 90KB
OMX_Audio.h 77KB
OMX_Audio.h 77KB
OMX_Audio.h 77KB
OMX_Audio.h 76KB
OMX_Audio.h 76KB
OMX_Audio.h 76KB
ResourceTypes.h 75KB
ResourceTypes.h 75KB
ResourceTypes.h 71KB
OMX_Core.h 69KB
OMX_Core.h 69KB
OMX_Core.h 69KB
OMX_Core.h 69KB
OMX_Core.h 69KB
OMX_Core.h 69KB
gps.h 62KB
audio.h 57KB
audio_effect.h 52KB
audio_effect.h 52KB
audio_effect.h 50KB
sensors.h 49KB
audio_effect.h 45KB
OMX_Video.h 44KB
OMX_Video.h 44KB
OMX_Video.h 44KB
OMX_Video.h 44KB
OMX_Video.h 44KB
OMX_Video.h 44KB
sensors.h 44KB
InputDispatcher.h 42KB
AudioTrack.h 41KB
EffectApi.h 39KB
EffectApi.h 39KB
AudioTrack.h 37KB
sensors.h 37KB
window.h 35KB
input.h 34KB
hwcomposer.h 34KB
camera2.h 33KB
camera2.h 33KB
camera2.h 33KB
CameraParameters.h 33KB
input.h 33KB
OMX_IVCommon.h 33KB
OMX_IVCommon.h 32KB
OMX_IVCommon.h 32KB
OMX_IVCommon.h 32KB
OMX_IVCommon.h 32KB
OMX_IVCommon.h 32KB
window.h 32KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
Kinonoyomeo
- 粉丝: 89
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功