Android Vitamio 5.0.0库崩溃 [英] Android Vitamio 5.0.0 library crash

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

问题描述

由于开发者控制台中的安全问题,我应Google的要求将Vitamio 4.2.2更新为5.0.0.但是使用相同的代码,它会崩溃,如下所示:

I updated Vitamio 4.2.2 to 5.0.0 as Google requested because of security issues in developer console. But with the same codes, it crashes like below:

java.lang.UnsatisfiedLinkError: dlopen failed: library "nulllibstlport_shared.so" not found
at java.lang.Runtime.load(Runtime.java:332)
at java.lang.System.load(System.java:981)
at io.vov.vitamio.MediaPlayer.<clinit>(MediaPlayer.java:257)
at io.vov.vitamio.widget.VideoView.openVideo(VideoView.java:431)
at io.vov.vitamio.widget.VideoView.setVideoURI(VideoView.java:403)
at io.vov.vitamio.widget.VideoView.setVideoURI(VideoView.java:396)
at io.vov.vitamio.widget.VideoView.setVideoPath(VideoView.java:392)
at com.mypackage.myapp.LiveStreamActivity$LiveStreamParse.onPostExecute(LiveStreamActivity.java:131)

当我如下调用videoView.setVideoPath(liveStreamUrl);时,发生崩溃:

The crash happens when I call videoView.setVideoPath(liveStreamUrl); as below:

VideoView videoView = (VideoView) findViewById(R.id.vvSurface);
videoView.setVideoPath(liveStreamUrl);
final MediaController mediaController = new MediaController(LiveStreamActivity.this);
videoView.setMediaController(mediaController);
videoView.setVideoLayout(VideoView.VIDEO_LAYOUT_STRETCH, 0);
videoView.requestFocus();
videoView.start();

videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
    @Override
    public void onPrepared(MediaPlayer mediaPlayer) {
         mediaPlayer.setPlaybackSpeed(1.0f);
    }
});

当我查看Vitamio 5.0.0的示例时,VideoView没有任何变化.因此,看来Vitamio完全毁了自己.即使他们在2015年11月2日发布了此版本,他们仍然将SDK版本定位为API19.这确实很可耻.

When I look the sample of Vitamio 5.0.0, nothing changed for VideoView. So it seems Vitamio has totally ruined itself. Even though they published this release on 2015-11-02, they are still targeting SDK version to API 19. This is really shame.

除了期望Vitamio团队提供适当的答案之外,对于这个不幸问题的任何建议也将不胜感激.

Any suggestions for this unfortunate issue will be appreciated besides expecting appropriate answers from Vitamio team.

推荐答案

最新回复

但这可以工作(至少在遇到相同错误时为我工作)

But this can work (Worked for me at least when I had same error)

 Vitamio.isInitialized(this);

 Vitamio.isInitialized(getApplicationContext());

在活动的onCreate中.

in onCreate of your activity.

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

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