Hide original path with blob

回眸只為那壹抹淺笑 提交于 2019-12-14 03:28:27

问题


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


回答1:


There is a huge misconception here...

Youtube doesn't hide the url of the video files.

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.

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).



来源:https://stackoverflow.com/questions/53720558/hide-original-path-with-blob

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!