在离线模式下播放 YouTube 视频? [英] Play youtube video in offline mode?

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

问题描述

当我们从互联网区域重定向到非互联网区域时,我想播放 YouTube 视频.

I want to play YouTube video when we redirect from internet area to non internet area.

就像我在某个时候可以访问互联网并且我播放了 Youtube 视频,然后过了一段时间

Like I am having internet access at some point and I played Youtube video, and after some

有时我的互联网连接断开,但现在我想播放我播放的所有视频

times my internet connection is loosed, but now I want to play all those video which I played

以前.

推荐答案

我不会为此编写任何代码,而只会告诉您可能需要采取的路线.与任何在线媒体一样,如果您无法访问互联网,那么您将无法真正获得数据.您需要做的是捕获来自任何媒体的数据并将其保存在设备上.当用户然后单击之前在未连接到 Internet 的情况下保存的视频时,您可以播放保存的视频文件.确实没有一种简单快捷的方法可以做到这一点,只需对保存流媒体视频或下载视频并保存到设备进行一些研究.

I am not going to write any code for this but only tell you the route you probably need to take. As with any online media, If you don't have access to the internet, well you can't really get the data. What you need to do is capture the data which is coming in from any media and save it on the device. When the user then clicks on a video which has been previously saved while not connected to the internet, you can play the saved video file. There isn't really a simple quick way to do this, just do some research on saving streaming video or downloading video and saving to device.

这篇关于在离线模式下播放 YouTube 视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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