如何使用Android exoplayer [英] How to use android exoplayer

查看:254
本文介绍了如何使用Android exoplayer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的应用中实现Google的ExoPlayer.他们的文档对我来说似乎很模糊,我所寻找的只是从URL播放视频,而没有复杂的自定义设置或类似的东西.尚未找到有关如何执行此操作的任何教程.他们在git上的示例对于我所需的内容来说太复杂了,并且由于我是视频流的新手,所以我不太了解.到目前为止,我所能做的就是显示com.google.android.exoplayer.AspectRatioFrameLayout.

I am looking to implement Google's ExoPlayer in my app. Their documentation seems pretty vague to me, and all I am looking for is to play a video from an URL, no complicated custom settings or anything like that. Haven't found any tutorials on how to do it. The example they have on git is way too complicated for what I need and, since I am new to video streaming, I did not understand much. All I have managed to do so far is to display a com.google.android.exoplayer.AspectRatioFrameLayout.

基本上,我有一个URL.我需要播放视频,并在用户翻转屏幕时处理onConfigurationChanged.

Basically, I have an URL. I need to play the video, and handle onConfigurationChanged when the user flips the screen.

任何人都可以帮忙吗?

推荐答案

ExoMedia库将exoplayer包装在更简单的api中,并提供了用于布局的视频视图.在github上查看用法示例: https://github.com/brianwernick/ExoMedia/

The ExoMedia library wraps exoplayer in simpler api and provides a video view for use in layouts. See usage examples on github: https://github.com/brianwernick/ExoMedia/

这篇关于如何使用Android exoplayer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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