简体   繁体   English

使用 Google Drive (PHP) 的视频流平台

[英]Video Streaming Platform using Google Drive (PHP)

I am trying to develop a video sharing platform based on PHP, using Google Drive as video hosting media.我正在尝试开发一个基于 PHP 的视频共享平台,使用 Google Drive 作为视频托管媒体。

Basically, my system will have multiple users and they will be able to upload videos from dashboard and if user wants he can change permission(public/private) for other users to view/block the videos on website (Android app in future).基本上,我的系统将有多个用户,他们将能够从仪表板上传视频,如果用户愿意,他可以更改其他用户的权限(公共/私人)以查看/阻止网站上的视频(未来的 Android 应用程序)。

Now my questions regarding Google Drive are:现在我关于 Google Drive 的问题是:

  1. Is it possible to create folders for each user and give user access to that folder only?是否可以为每个用户创建文件夹并仅授予用户对该文件夹的访问权限?
  2. Is it possible to upload videos to single google drive account?是否可以将视频上传到单个 Google Drive 帐户?
  3. Is it possible to manage permission(public/private) to each videos uploaded in google drive?是否可以管理上传到谷歌驱动器的每个视频的权限(公共/私人)?
  4. Is it possible to embed video which should not be downloadable?是否可以嵌入不应下载的视频?

Answers: 答案:

  1. yes, you can create unlimited folder for each user but you must save folder ID for each user in database. 是的,您可以为每个用户创建无限文件夹,但是必须为数据库中的每个用户保存文件夹ID。

  2. yes, free user limit 15Gb, buy extra space like 100GB, 1TB or more. 是的,免费用户限制为15Gb,购买额外的空间,例如100GB,1TB或更多。

  3. yes, default permission is Private but you can change it by Google Drive ApI. 是的,默认权限为“私人”,但您可以通过Google云端硬盘ApI进行更改。

  4. yes, google drive allow embed video. 是的,谷歌驱动器允许嵌入视频。

你介意分享你的脚本吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM