vitamio

开源的Android视频播放器

廉价感情. 提交于 2020-03-21 15:41:16
之前尝试自己解码视频,然后播放显示,虽然音视频都可以播放,但是实现不了音视频的同步,所以使用第三方的视频库 Vitamio来实现视频播放器功能,这样自己只需要实现播放解码的制作不不要关心底层解码和显示问题。是使用 Vitamio 4.0,制作的视频播放器,后续会继续添加直播,网络播放功能。实现的主要功能: 1.搜索本地视频文件 2.使用ListView显示本地视频的缩略图,文件名称,播放时间 3.播放视频的格式可以支持大多数, Vitamio使用的解码库是ffmpeg,所以可以支持很多 4.支持手势调节声音,亮度(在左边上下滑动调节亮度,在右边滑动调节音量,主要扣取OPlayer里面的) 5.支持播放,暂停,快进和快退(界面也是扣取Oplayer里面的) 6.支持字母滑动搜索文件( 主要扣取OPlayer里面的 ) 开源地址:https://github.com/jwzhangjie/JwZhangJie.git 自己克隆就可以了,不过要是用必须到官网下载 Vitamio的自身的库,VitamioBundle ,ZI,不然不能运行 运行的截图如下: 不方便编译的,这里可以下载已经编译好的apk http://download.csdn.net/download/jwzhangjie/5782875 来源: https://www.cnblogs.com/dyllove98/p

Can't run live stream using Vitamio

我怕爱的太早我们不能终老 提交于 2020-01-21 14:39:11
问题 I'm trying to use Vitamio to run RTSP video stream, I'm using Vitamio-sample after updating it to run the stream through VideoViewDemo activity: public class VideoViewDemo extends Activity { /** * TODO: Set the path variable to a streaming video URL or a local media file * path. */ private String path = "rtsp://user:password@<stream-ip>:554"; private VideoView mVideoView; private EditText mEditText; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); if (!LibsChecker

Can't run live stream using Vitamio

谁说胖子不能爱 提交于 2020-01-21 14:39:05
问题 I'm trying to use Vitamio to run RTSP video stream, I'm using Vitamio-sample after updating it to run the stream through VideoViewDemo activity: public class VideoViewDemo extends Activity { /** * TODO: Set the path variable to a streaming video URL or a local media file * path. */ private String path = "rtsp://user:password@<stream-ip>:554"; private VideoView mVideoView; private EditText mEditText; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); if (!LibsChecker

Starting Vitamio In A Service From Cordova Plugin

北战南征 提交于 2020-01-07 01:25:07
问题 After about a week...I thinks it's time to ask the SO community :) Now I already have a working(work in progress) plugin that already does this. java file that extends CordovaPlugin: Intent objIntent = new Intent(cordovaObj.getActivity().getApplicationContext(), MY_SERVICE.class); //pass the url to the service objIntent.putExtra("mediaUrl", url); //Start the service cordovaObj.getActivity().getApplicationContext().startService(objIntent); Then in the onCreate method of the service I

Android app crashes with Vitamio Library

落爺英雄遲暮 提交于 2019-12-24 02:25:18
问题 I have wrote a simple code for streaming videos on Android App. I have used Vitamio Library, followed all necessary steps to integrate into the project. The Video doesn't play and the App crashes when loaded. package com.test.bufferapp; import io.vov.vitamio.LibsChecker; import io.vov.vitamio.MediaPlayer; import io.vov.vitamio.widget.MediaController; import io.vov.vitamio.widget.VideoView; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view

Why Google play rejected my app they saying “for violating our dangerous products policy”

て烟熏妆下的殇ゞ 提交于 2019-12-13 19:22:21
问题 I uploaded my app on google play store but after few hours i got an email saying: This app uses software that contains security vulnerabilities for users. Below is the list of vulnerabilities and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK. Vulnerability OpenSSL The vulnerabilities were fixed in OpenSSL versions beginning with 1.0.1h, 1.0.0m, and 0.9.8za. To

Vitamio Sample Error - java.lang.UnsatisfiedLinkError: Couldn't load vinit findLibrary returned null

旧时模样 提交于 2019-12-13 14:07:38
问题 I'm having trouble running the vitamio-sample from https://github.com/yixia/VitamioBundle. I am building it with Android Studio and it compiles fine and runs, but when it gets to this line: if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this)) return; It throws an exception when I run it on my Nexus 5 (and also on a Galaxy S4): 01-22 11:58:40.759 12323-12323/? E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: io.vov.vitamio.demo, PID: 12323 java.lang.UnsatisfiedLinkError: Couldn't load vinit

android vitamio multiple videoview error

拈花ヽ惹草 提交于 2019-12-12 10:13:01
问题 I edit VideoViewDemo because I need two (or more) stream rtsp in same layout. I use a relative layout with two VideoView and add code in VideoViewDemo to fill each surface. Result is that two video is overlapping each other and logcat give me many times this error : E/SurfaceTextureClient(4717): Surface::lock failed, already locked 01-15 17:41:07.328: E/VitamioPlayer: LOCK BUFFER FAILED E/SurfaceTexture(144): [SurfaceView] dequeueBuffer: can’t dequeue multiple buffers without setting the

application get crash because of ABI filters in android

我的未来我决定 提交于 2019-12-12 04:54:34
问题 i am using vitamio for play video and audio for that i have used gradle configure like below ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips" } it working perfectly on all android version. now i hava added JNI code using CMaker tutorial for some operation but application is get crash on android version 7 only with below log Build fingerprint: 'xiaomi/mido/mido:7.0/NRD90M/V8.5.4.0.NCFMIED:user/release-keys' Revision: '0' ABI: 'arm' pid: 27944, tid: 28106, name: SyncAdapterThre >>> com

Android Vitamio 5.0.0 crash

丶灬走出姿态 提交于 2019-12-12 04:17:58
问题 I fail to make it work vitamio. everything seems right, but application stops, and you receive this error. What did I do wrong? exactly the same code with vitamio 4.2 works perfectly. I guess I did something wrong > import android.support.v7.app.AppCompatActivity; > import android.os.Bundle; > import io.vov.vitamio.MediaPlayer; > import io.vov.vitamio.Vitamio; > import io.vov.vitamio.widget.MediaController; > import io.vov.vitamio.widget.VideoView; > > > public class Rtmp_player extends