的Andr​​oid 5.0.0 Vitamio崩溃 [英] Android Vitamio 5.0.0 crash

查看:1122
本文介绍了的Andr​​oid 5.0.0 Vitamio崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使它工作vitamio。一切似乎正确的,但应用程序将停止,并且您收到此错误。
我做错了什么?
完全相同的code。与vitamio 4.2完美。我想我做错了什么。

 >进口android.support.v7.app.AppCompatActivity;
>进口android.os.Bundle;
>进口io.vov.vitamio.MediaPlayer;
>进口io.vov.vitamio.Vitamio;
>进口io.vov.vitamio.widget.MediaController;
>进口io.vov.vitamio.widget.VideoView;
>
>
>公共类Rtmp_player扩展AppCompatActivity {
>
>
>私有静态最后弦乐TAG =MainActivity;
>私人字符串路径;
> //私人的HashMap<字符串,字符串>选择;
>私人VideoView mVideoView;
>
> @覆盖
>保护无效的onCreate(捆绑savedInstanceState){
> super.onCreate(savedInstanceState);
> Vitamio.isInitialized(本);
>的setContentView(R.layout.activity_rtmp_player);
> mVideoView =(VideoView)findViewById(R.id.vitamio_videoView);
> PATH =htt​​p://80.86.107.169:8100/stream.flv;
> mVideoView.setVideoPath(路径);
> //mVideoView.setVideoURI(Uri.parse(path),期权);
> mVideoView.setMediaController(新的MediaController(本));
> mVideoView.requestFocus();
> mVideoView.start();
>
> mVideoView.setOn preparedListener(新MediaPlayer.On preparedListener(){
> @覆盖
>在prepared公共无效(MediaPlayer的媒体播放器){
> mediaPlayer.setPlaybackSpeed​​(1.0F);
> }
> });
> }}

日志错误

  16 01-22:37:25.101 27911-27992 / ro.vrt.videoplayerstreaming I / OpenGLRenderer:初始化EGL,1.4版本
01-22 16:37:25.179 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:版权所有(C)夷夏(http://yixia.com)。
                                                                                     本软件(Vitamio)IS夷夏工作(http://yixia.com)
01-22 16:37:25.179 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:LOAD FFMPEG START:/data/user/0/ro.vrt.videoplayerstreaming/lib/libffmpeg。所以
01-22 16:37:25.188 27911-27911 / ro.vrt.videoplayerstreaming E /连接器:/data/app/ro.vrt.videoplayerstreaming-2/lib/arm/libffmpeg.so:具有文本重定位
01-22 16:37:25.188 27911-27911 / ro.vrt.videoplayerstreaming E / Vitamio [5.0.0] [播放]:LOAD FFMPEG错误:dlopen的失败:/data/app/ro.vrt.videoplayerstreaming-2/lib /arm/libffmpeg.so:具有文本重定位
01-22 16:37:25.188 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:LOAD VVO START:/data/user/0/ro.vrt.videoplayerstreaming/lib/libvvo。 9.so
01-22 16:37:25.203 27911-27911 / ro.vrt.videoplayerstreaming E / Vitamio [5.0.0] [播放]:FIND_NAME_SYM VVO,render_yuv
01-22 16:37:25.203 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:LOAD VVO END:/data/user/0/ro.vrt.videoplayerstreaming/lib/libvvo。 9.so
01-22 16:37:25.203 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:LOAD VAO START:/data/user/0/ro.vrt.videoplayerstreaming/lib/libvao。 0.so
01-22 16:37:25.214 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:LOAD VAO END:/data/user/0/ro.vrt.videoplayerstreaming/lib/libvao。 0.so
01-22 16:37:25.216 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:VPLAYER INIT BEGIN
01-22 16:37:25.216 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:Vitamio版本5​​.0.0
01-22 16:37:25.216 27911-27911 / ro.vrt.videoplayerstreaming I / Vitamio [5.0.0] [播放]:应用程序包的名称:ro.vrt.videoplayerstreaming
01-22 16:37:25.216 27911-27911 / ro.vrt.videoplayerstreaming A / libc中:致命的信号11(SIGSEGV),code 1,在TID 27911(playerstreaming)故障地址为0x0


解决方案

  /data/app/ro.vrt.videoplayerstreaming-2/lib/arm/libffmpeg.so:具有文本重定位

您没做错什么,但你指定Android M和它不支持文本重定位。它是由vitamio纠正这一点。普莱舍参考 https://开头code.google.com / p / Android的开发技术preVIEW /问题/细节?ID = 3028 并的 https://github.com/yixia/VitamioBundle/issues/312 。有一种变通方法来设置targetSDKVersion< 23,但不推荐,如果你的目标一定棉花糖功能

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 AppCompatActivity {
> 
> 
>     private static final String TAG = "MainActivity";
>     private String path;
>     //private HashMap<String, String> options;
>     private VideoView mVideoView;
> 
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         Vitamio.isInitialized(this);
>         setContentView(R.layout.activity_rtmp_player);
>         mVideoView = (VideoView) findViewById(R.id.vitamio_videoView);
>         path = "http://80.86.107.169:8100/stream.flv";
>         mVideoView.setVideoPath(path);
>         //mVideoView.setVideoURI(Uri.parse(path), options);
>         mVideoView.setMediaController(new MediaController(this));
>         mVideoView.requestFocus();
>         mVideoView.start();
> 
>         mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
>             @Override
>             public void onPrepared(MediaPlayer mediaPlayer) {
>                 mediaPlayer.setPlaybackSpeed(1.0f);
>             }
>         });
>     } }

log error

   01-22 16:37:25.101 27911-27992/ro.vrt.videoplayerstreaming I/OpenGLRenderer: Initialized EGL, version 1.4
01-22 16:37:25.179 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: Copyright (c) YIXIA (http://yixia.com).
                                                                                     THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com)
01-22 16:37:25.179 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: LOAD FFMPEG START: /data/user/0/ro.vrt.videoplayerstreaming/lib/libffmpeg.so
01-22 16:37:25.188 27911-27911/ro.vrt.videoplayerstreaming E/linker: /data/app/ro.vrt.videoplayerstreaming-2/lib/arm/libffmpeg.so: has text relocations
01-22 16:37:25.188 27911-27911/ro.vrt.videoplayerstreaming E/Vitamio[5.0.0][Player]: LOAD FFMPEG ERROR: dlopen failed: /data/app/ro.vrt.videoplayerstreaming-2/lib/arm/libffmpeg.so: has text relocations
01-22 16:37:25.188 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: LOAD VVO START: /data/user/0/ro.vrt.videoplayerstreaming/lib/libvvo.9.so
01-22 16:37:25.203 27911-27911/ro.vrt.videoplayerstreaming E/Vitamio[5.0.0][Player]: FIND_NAME_SYM vvo, render_yuv
01-22 16:37:25.203 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: LOAD VVO END: /data/user/0/ro.vrt.videoplayerstreaming/lib/libvvo.9.so
01-22 16:37:25.203 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: LOAD VAO START: /data/user/0/ro.vrt.videoplayerstreaming/lib/libvao.0.so
01-22 16:37:25.214 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: LOAD VAO END: /data/user/0/ro.vrt.videoplayerstreaming/lib/libvao.0.so
01-22 16:37:25.216 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: VPLAYER INIT BEGIN
01-22 16:37:25.216 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: Vitamio Version 5.0.0 
01-22 16:37:25.216 27911-27911/ro.vrt.videoplayerstreaming I/Vitamio[5.0.0][Player]: Application package name: ro.vrt.videoplayerstreaming
01-22 16:37:25.216 27911-27911/ro.vrt.videoplayerstreaming A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 27911 (playerstreaming)

解决方案

 /data/app/ro.vrt.videoplayerstreaming-2/lib/arm/libffmpeg.so: has text relocations

You did nothing wrong but you target android M and it doesn't support text relocations. It is up to vitamio to correct this. Plese refer to https://code.google.com/p/android-developer-preview/issues/detail?id=3028 and https://github.com/yixia/VitamioBundle/issues/312. There is a workaround to set targetSDKVersion<23 but not recommended if you target some marshmallow features.

这篇关于的Andr​​oid 5.0.0 Vitamio崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆