Android 在 webview 中播放 youtube 视频 [英] Android play youtube video in webview

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

问题描述

我想在 WebView 中播放 YouTube 视频或

I want to play YouTube video in WebView or

当用户点击 YouTube 视频时,我必须将其转发到真正的 YouTube 应用,因为在 WebView 中我无法播放 YouTube 视频.

When user click on youtube video I have to forward it to real YouTube app because in WebView I am not able to play YouTube video.

有没有办法在我们的 WebView 中播放 YouTube 视频?

Is there any way to play a YouTube video in our WebView?

推荐答案

您可以在视频视图中播放视频(存储在本地存储中的视频).

You can play video in video view (the videos those are stored in local storage).

参考此.

但是如果您想从服务器流式传输它,则必须使用 rtsp 视频流.

but if you want to stream it from server you have to go for rtsp video streaming.

看看这个.

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

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