Hosting Videos Stored in Google Drive created by Google Meet - html5-video

We use Google Meets a lot to record our meetings. I move the video files to a specific folder and then use GAS to deliver a JSON object of the file information in that folder to a webpage in Google Sites so that I can create a select menu that changes the src attribute of a tag. The video tag exists in a iframe - this is how Google Sites allows you to embed your own JS. The whole process works and I am using it successfully with other file formats like MP3 on other projects, but those videos recorded by Google Meet cause CORS errors and "Uncaught (in promise) DOMException: Failed to load because no supported source was found" errors.
If I download the video and run it through a video editor to convert it to some other version of MP4 and then upload the video back to the folder, they work. But that defeats the purpose and creates more work.
I think this has something to do with how the video is saved/encoded within the Google habitat. Why would one type of MP4 cause the errors but another type would not.

I knew as soon as I asked the question I would figure it out. The trick was to not use the tag and instead use an iframe with the src set as the video file in the format:
https://drive.google.com/file/d/file_ID/preview
I'm still not sure why the video tag doesn't work with Google's version of MP4 from a Google Meet. But at least this is a workaround.

Related

How to download only a specific variant/media type using the JDownloader API

I am trying to write a script that sometimes downloads audio and other times downloads videos using the JDownloader API. If I wasn't using the API, I would either change the YouTube plugin to only download certain media types, or I would only start the download for the wanted files and remove the others. How would I go about doing either of these using the API, or is there a better way altogether?

How can I get the Views Per Hour stat for a YouTube video?

I checked the Youtube API and it's mainly to do with adding functionalities related to the YouTube app rather than getting analytics data about videos.
There is a chrome extension called VidIQ that shows the views per hours of a particular video when going to the video's page on YouTube, so I tried reading the source code for it, but it is all compressed and I can't easily find what I'm looking for.
Could someone explain to me how VidIQ chrome extension is getting the views per hour stat for YouTube? Maybe it's not an official stat from Youtube but a rough estimate calculated by VidIQ. How do they get this information?
I tried debugging the VidIQ chrome extension to search through the source code but adding a simple html tag made the file corrupted and disabled the extension until I repaired it again. I'm having difficulties deciphering the source code.
Most of what VidIQ gets is from the YouTube analytics api and not directly from the YouTube data api although i would be they use some combination of both.
If you create a report that extracts views and run it every hour you should get the results you are looking for.
However i would be willing to be that they cache a lot of the data and do some internal analytics on it. They would need to cache it as the YouTube analytics api only returns data for the last 90 days last i checked.
If your intent is to Reverse Engineer VidIQ you may need to accept that a lot of the data you are seeing is internally stored in their system and generated by them based upon the data that is avaliable in the YouTube Analytics API and the YouTube data apis.

Recording Vimeo Uploads To SQL

We're currently looking at using Vimeo Pro to upload videos for a website we're developing. What we want to do is, once a video is uploaded, record the data to an SQL database so we can embed the video to specific pages using database calls rather then hard coding.
So what I need to know is, can Vimeo return the code I need so I can record it?
To embed a video you need to generate an embed code through Vimeo's oEmbed endpoint.
The oEmbed endpoint works off of the on site Vimeo URL, which is provided in the "link" field on any video response (such as GET /videos/{video_id})
I would recommend storing the Vimeo URL, not the embed code, since the embed codes might change and improve over time.

Create a custom desktop YouTube player

I want to create an application capable to play YouTube video's audios and also save the downloaded content in a local cache, therefore when the user decides to resume or play the video again, then it doesn't have to download part of video again but only download the remaining part (User can decide what to do with the cache then, and how to organize it).
It is also very convenient for mobiles (it is my main focus) but I'd like to create a desktop one too for experimental purposes.
So, my question itself is, does YouTube provide any API for this? I mean, in order to cache the download content I need that my application download the content and not any embed player (also remember that it is a native application). I have a third-party application in my Android system that plays YouTube videos, so I think it's possible unless that the developers use some sort of hack, again this is what I don't know.
Don't confuse with the web gdata info API and the embed API, this is not what I want, what I want is to handle the video transfer.
As far as I know, there is no official API for that. However, you could use libquvi to look up the URLs of the real video data, or you could have a look at how they do it and reimplement it yourself (see here).

SoundCloud mp3 link and file length for custom podcast feed

I have some podcast feeds already up and running in iTunes for my client, but we're thinking of switching their audio from self-hosted to SoundCloud.
Is it possible to use the SoundCloud API to get an mp3 download link and the file length for uploaded tracks?
As an example, here's the enclosure tag from the existing feed for a recent podcast episode:
<enclosure url="http://marfapublicradio.org/wp-content/uploads/2013/08/TLK-130813-Steve-Murdoch-WEB.mp3" length="28077244" type="audio/mpeg" />
If I could just insert SoundCloud track data for the url and length attributes I'd be good to go, but after a brief look through at the API documentation I'm not sure whether it can be done.
Any input would be greatly appreciated.
Seeing this in the related questions list:
SoundCloud, download or stream file via api
led me to further examination of the API docs ( http://developers.soundcloud.com/docs/api/reference#tracks ), where I found that the track properties do include download_url and duration.
So the answer to my question is "yes, it is possible".
Edit as of September 2, 2013:
I was able to make a download link, but only one that initiated a download dialog, and not a URL for an mp3 file that would be appropriate for me feed's enclosure tag.
I tried e-mailing the SoundCloud api support e-mail address, but got no response. I then tried their general support e-mail, and did receive a reply telling me that the answer to my question is NO.
SoundCloud's api does NOT support .mp3 URLs to drop into the enclosure tags in my pre-existing feeds. It was instead suggested that I apply for their podcasting beta, which I will now investigate.
Dealing with this myself at the moment. While I am not immediately seeing a direct link to an mp3, I have noticed that the value for the waveform (a random BBC stream used here) can be used to form a working mp3 url:
First get the track info:
https://api.soundcloud.com/resolve.json?url=https://soundcloud.com/bbc-media-show/nikkei-buys-financial-times&client_id=[yourClientIdHere]
Notice the waveform url:
7Yp3d9EHloKg_m.png
Use that identifier (remove the _m) to form the working stream URL.
http://media.soundcloud.com/stream/7Yp3d9EHloKg.mp3
Forgive my poor text formatting here... I have never used stackoverflow before.