exoplayer

How to make a Video Player using Native Android that have resolution switching ability like we see in YouTube?

梦想的初衷 提交于 2020-01-21 19:41:24
问题 I want to use a video player eg. using ExoPlayer in android app which will support switching of resolution like we see in YouTube. My API have video files for 480p,720p,1080p. I want to give those options in the player and can switch it from the player itself and will play the respective files from URL. I have seen solutions like track selector etc,but does that work for online files? I have links like : www.example.com/videos/480/demo.mp4 www.example.com/videos/720/demo.mp4 www.example.com

How to make a Video Player using Native Android that have resolution switching ability like we see in YouTube?

﹥>﹥吖頭↗ 提交于 2020-01-21 19:39:07
问题 I want to use a video player eg. using ExoPlayer in android app which will support switching of resolution like we see in YouTube. My API have video files for 480p,720p,1080p. I want to give those options in the player and can switch it from the player itself and will play the respective files from URL. I have seen solutions like track selector etc,but does that work for online files? I have links like : www.example.com/videos/480/demo.mp4 www.example.com/videos/720/demo.mp4 www.example.com

How to query the Video Capabilities of an Android device?

為{幸葍}努か 提交于 2020-01-06 07:15:11
问题 public void getCodecInfo() { int numCodecs = MediaCodecList.getCodecCount(); for (int i = 0; i < numCodecs; i++) { MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i); if (!codecInfo.isEncoder()) { continue; } String[] types = codecInfo.getSupportedTypes(); for (int j = 0; j < types.length; j++) { MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(types[j]); Log.d("CodecCapabilities", new Gson().toJson(capabilities)); //MediaCodecInfo.VideoCapabilities

How to query the Video Capabilities of an Android device?

独自空忆成欢 提交于 2020-01-06 07:15:09
问题 public void getCodecInfo() { int numCodecs = MediaCodecList.getCodecCount(); for (int i = 0; i < numCodecs; i++) { MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i); if (!codecInfo.isEncoder()) { continue; } String[] types = codecInfo.getSupportedTypes(); for (int j = 0; j < types.length; j++) { MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(types[j]); Log.d("CodecCapabilities", new Gson().toJson(capabilities)); //MediaCodecInfo.VideoCapabilities

Exoplayer - Save and Restore State On Rotation Within Fragment

你说的曾经没有我的故事 提交于 2020-01-05 13:10:36
问题 I have a fragment that hosts a SimpleExoplayer. I want to ensure I am handling screen rotation properly. Right now, the player resets to the beginning on screen rotation. I already have methods implement in onStart() and onResume(), so I am curious what additional code I would need: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View v = inflater.inflate(R.layout.fragment_recipe_details

Creating a simple instance of ExoPlayer

萝らか妹 提交于 2019-12-30 01:17:05
问题 I am currently looking to develop an application that utilises Dash through the ExoPlayer in Android. To begin with I am going through the demo project however am having trouble with even creating a simple working instance of ExoPlayer that can stream mp3 or similar. Would really appreciate any help anyone can give relating to getting a very simple exoplayer instance working from which i can adapt and build upon or if anyone has any leads for more references or guides which I can follow as

Creating a simple instance of ExoPlayer

半世苍凉 提交于 2019-12-30 01:17:04
问题 I am currently looking to develop an application that utilises Dash through the ExoPlayer in Android. To begin with I am going through the demo project however am having trouble with even creating a simple working instance of ExoPlayer that can stream mp3 or similar. Would really appreciate any help anyone can give relating to getting a very simple exoplayer instance working from which i can adapt and build upon or if anyone has any leads for more references or guides which I can follow as

Android播放器开源项目

[亡魂溺海] 提交于 2019-12-28 04:00:22
1.ijkplayer 项目地址: https://github.com/Bilibili/ijkplayer 介绍:Ijkplayer 是Bilibili发布的基于 FFplay 的轻量级 Android/iOS 视频播放器。实现了跨平台功能,API 易于集成;编译配置可裁剪,方便控制安装包大小;支持硬件加速解码,更加省电;提供 Android 平台下应用弹幕集成的解决方案。 2.ExoPlayer 项目地址:https://github.com/google/ExoPlayer 介绍:ExpPlayer是一个开源的,App等级的媒体API,它的开源项目包含了library和示例:ExoPlayer library - 这部分是核心的库 Demo app - 这部分是演示怎么使用ExoPlayer的Demo 3.android-UniversalMusicPlayer 项目地址:https://github.com/googlesamples/android-UniversalMusicPlayer android-UniversalMusicPlaye1.android-UniversalMusicPlaye 介绍:这是一个音乐播放的 App,是一个非常好的范例,告诉你如何编写一个在 Android Phone、Tablet、TV、Wear、Auto ... 都能很好呈现的

ExoPlayer rotate in FullScreen

北战南征 提交于 2019-12-24 23:37:47
问题 I want to rotate my player when device is rotating. I use this for making my player full screen getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN |View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY |View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); I try setRotation(90) but my view lose size,from corners ! When i try just change my device orientation for making full screen, player first player draw half of view,after it go to normal fullscreen mode[! 回答1: I found the answer myself, this

ExoPlayer AudioProcessor is delayed

余生长醉 提交于 2019-12-24 10:02:41
问题 I'm currently facing an issue while trying to implement a c++ based audio effect into exoplayer using their AudioProcessor interface. I already have an attempt to fix my issue (described below) by decreasing output buffer size. I have a related question posted here: https://github.com/google/ExoPlayer/issues/6216 My problem is that my audio effect (rough implementation to be seen here: https://gist.github.com/l0rn/30b9f846f869e55e1b0c6cb241e19114) needs to start processing quickly after the