在智能手机型动物行为Videoview(具有不同stagefright) [英] Videoview behavior on differents smartphone (with different stagefright)

查看:307
本文介绍了在智能手机型动物行为Videoview(具有不同stagefright)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用videoview(或MediaPlayer的),用于在同一个活动的多个videoviews发挥RTSP流有兼容性问题。

I'm having compatibility problems using videoview (or MediaPlayer) for play rtsp streams in multiple videoviews in the same activity.

我已经打开了另一个问题在这个问题上的here但现在我知道这是不是我的code中的责任,因为我在不同的手机测试相同的软件和它的工作。

I have opened another question on this problem here but now I know that isn't my code the responsible, because I test same software on different phones and it work.

查看logcat的信息消息RTSP建立我看到每个手机有不同的实现stagefright的(Android的多媒体框架):

Viewing logcat Info messages for RTSP setup I see that each phone has different implementation of stagefright (android multimedia framework):

(A) I/RTSPEngine(147): User-Agent: Player/LG Player 1.0 for Android(stagefright alternative)
(B) I/ARTSPConnection(2252): User-Agent: stagefright/1.2 (Linux;Android 4.2.1)
(C) I/ARTSPConnection(10345): User-Agent: ALCATEL ONE TOUCH 997D-SVN/02001 (Linux;Android 4.1.1)
(D) W/ARTSPConnection(1948): User-Agent: User-Agent: Samsung GT-I9300 stagefright/Beyonce/1.1.9 (Linux;Android 4.3)


A is Lg l9 - android 4.1.2
B is Chinese jiayu g4 - Android 4.2.1
C is ALCATEL ONE TOUCH 997D - Android 4.1.1
D is Samsung galaxy S3 - Android 4.3

您可以看到有不同的Andr​​oid版本和不同的stagefright这里,但多个RTSP只了Lg失败(见误差<一个href=\"http://stackoverflow.com/questions/21111511/android-error-using-multiple-instance-of-videoview\">here )。
另一个有趣的事情是,只有LG用途RtspEngine,别人用ARTSPConnection

You can see that there are different android version and different stagefright here, but multiple rtsp fails only on Lg (see error here ). Another interesting thing is that only Lg use RtspEngine, others use ARTSPConnection

有一种方法可以强制应用程序使用本地stagefright(如果它存在的设备)?

There is a way to force application to use native stagefright (if it exist on device) ?

应用程序如何管理这个兼容性问题?
这不是合理开发一个应用程序,将无法与某些品牌的手机

How an application can manage this compatibility issue ? It is not reasonable to develop an app that will not be compatible with some brands of phones

推荐答案

LG完全有权用自己的发动机,以取代实施AOSP的RTSP。我没有LG的设备,现在来测试它的性能和优点(或缺点)。不管怎么说,无论是stagefright还是其替代方案旨在支持多个并发活动实例。我从来没有见过的设备,允许4个以上。

LG has full right to replace the AOSP implementation of RTSP with their engine. I don't have LG devices right now to test its performance and advantages (or disadvantages). Anyways, neither stagefright nor its alternatives were designed to support multiple concurrent active instances. I have never seen a device that would allow more than 4.

幸运的是,有1 GHz的双核CPU(LG L9),你有足够的通用计算能力去270p的code四个视频流,填补了960×540的屏幕,采用的ffmpeg,或GStreamer的。

Luckily, with 1 GHz Dual-Core CPU (LG L9), you have enough generic computational power to decode four video streams of 270p, to fill the 960 x 540 screen, using ffmpeg, or gstreamer.

这篇关于在智能手机型动物行为Videoview(具有不同stagefright)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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