Android中的ListView播放视频 [英] Play video in Android listview

查看:1276
本文介绍了Android中的ListView播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的列表视图,就像葡萄或Instgram播放视频。我一直在试图连接TextureView到媒体播放器我体验那里的textureview没有被正确的GetView方法重复使用的问题时,用媒体播放器使用TextureView除去。在我的名单上下滚动时textureview使得一些老的不正确的视频。

I am trying to play videos in my listview just like Vine or Instgram. I have been trying to use TextureView with a media player except that when attaching TextureView to the media player I experience issues where the textureview is not being reused properly by the GetView method. The textureview renders some old incorrect videos when scrolling down in my list.

有谁知道如何在列表视图(不使用VideoView!)??

Does anyone know how to play videos in ListViews (Not using VideoView!!!)??

推荐答案

只是想给你的建议。

您可以使用的WebView ListView项内,使用JavaScript来播放视频。你可以找到关于HTML的JavaScript游戏

You can use WebView inside listview item and using javascript to play the video. you can find the javascript play on html

http://www.w3schools.com/tags/av_prop_autoplay.asp

我希望我的建议可以帮助你的东西了。

I hope my advice may help you something out.

这篇关于Android中的ListView播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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