本文介绍了安卓vitamio多个videoview错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编辑VideoViewDemo因为我需要在相同的布局两个(或更多)的流RTSP。

I edit VideoViewDemo because I need two (or more) stream rtsp in same layout.

我用了两个VideoView一个相对布局和VideoViewDemo增加$ C $三来一补每个表面。

I use a relative layout with two VideoView and add code in VideoViewDemo to fill each surface.

结果是,两个视频是相互重叠和logcat的给了我很多次这个错误:

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 buffer count

我做的MediaPlayer与演示同样的事情,有同样的效果...

I make same thing with MediaPlayer demo, with same effect...

我看这是库问题,有人已经解决了这个?

I read that this is library bug, someone has solved this ?

推荐答案

Vitamio不支持多videoView。也许会增加在未来。

Vitamio dont support multiple videoView. maybe will add in the future.

这篇关于安卓vitamio多个videoview错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 00:21