This is a small script in nodejs that allow you to watch a video stored into your Google drive directly into your video player.
You need only to install all the dependencies typing this command:
npm install
Just type this command to startup the script:
node ./app.js
Now that the server is started you can start watching your video or download it.
Paste this link into your player to start watching the video in streaming
http://127.0.0.1:9001/<google-drive-video-id>
To download it, type this url into a new broser tab
http://127.0.0.1:9001/<google-drive-video-id>/download
if you want you can specify the parameter p, that indicate in percentage what portion of video will be skipped. For example to start downloading the video from half you should use this link
http://127.0.0.1:9001/<google-drive-video-id>/download?p=50
You can even use the parameter c, that indicate from what chunk the download must be started. To stop the downloading process use this url:
http://127.0.0.1:9001/<google-drive-video-id>/download_stop