如何从Youtube播放MP4视频? [英] How to play MP4 videos from Youtube?

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

问题描述

我需要从Youtube播放视频作为MP4。

I need to play videos from Youtube as MP4.

我的系统(在Android手机)不支持Flash。

My system (an Android Phone) does not support Flash.

它可以播放MP4视频。

It can play MP4 videos.

所以我想创建一个网页,从Youtube播放视频的。

So I'm thinking of creating a web page that plays videos from Youtube.

我需要让MP4的视频在我的网页游戏。

I need to get MP4 videos to play in my page.

方法是什么呢?

推荐答案

看看此相关的问题,其中OP想出了一个哈克的方式来获得的get_videoAPI必要的ID和校验和参数。
流媒体的Youtube视频

Take a look at this related question, where the OP has figured out a hacky way to get the necessary ID and checksum parameters for the get_video "API". Streaming Youtube Videos

他成功地在VideoView部件回放的流。
您可以使用格式化参数选择你想要的格式,请参见维基百科的列表: http://en.wikipedia.org/wiki/YouTube#Quality_and_$c$ccs

He successfully played back the stream in the VideoView component. You can use the fmt parameter for choosing which format you want, see wikipedia for a list: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs

祝你好运。

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

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