用Blob隐藏原始路径 [英] Hide original path with blob

查看:149
本文介绍了用Blob隐藏原始路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个视频俱乐部系统,并希望像YouTube一样使用Blob保护电影的原始路径,但是我一直在进行Google搜索,但是我没有找到如何使某人能给我一个北? PS:视频俱乐部的所有电影都位于.MP4

I'm creating a video club system and wanted to protect the original path of the movies using blobs like YouTube does, but I've been doing a Google search and I do not find how does that make someone can give me a north? PS: All the movies of the video club are in .MP4

推荐答案

这里存在巨大的误解...

There is a huge misconception here...

如果最终URL是blobURI(blob:https://www.youtube.com...),则是因为MediaElement显示的实际上是

If the final URL is a blobURI (blob:https://www.youtube.com...) it is because what the MediaElement displays is actually a MediaSource Object.
They do fetch different ranges from different encodings and compose the data to be presented on the fly. This way, they are able to downgrade the quality if they see they didn't had time to fetch the upcoming part of the video.
But all the requests are clearly visible in your dev-tools' Network panel and anyone willing can actually compose themselves a full file.

再一次,这绝不是盗版保护.

So once again, this is not a piracy protection whatsoever.

还要注意,因为blobURIs是指向Web浏览器本地内存的URI,如果您可以显示blobURI的内容,则意味着保护它已经太迟了(因为已经下载并在内存中可用) ).

Also note that since blobURIs are URIs that do point to the local memory of the web-browser if you can display anything from a blobURI, it means it's already too late to try to protect it (since already downloaded and available in memory).

这篇关于用Blob隐藏原始路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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