Can P&T assets be integrated with drive and push uploads to youtube? - expressionengine

I'm currently working on a project that requires a simple yet complete workflow for media management from within the EE (2.5+) control panel... specifically youtube videos.
I know that P&T Assets (2.1+) supports google cloud storage and in light of that, we would like to use it to upload videos to it and what would be ideal then is if there was a way for Assets or Google to post to youtube on upload complete.
Is this at all possible?
I know we can use wygwam to embed videos within an entry and can even use an addon such as Antena to embed youtube videos but we would like to manage it from within the CP.

That's not possible without extending assets significantly, you could do something with the youtube API (https://developers.google.com/youtube/v3/docs/videos/insert) and trigger a a youtube upload once assets has finished a upload.

Related

Is there a way to download videos from YouTube Studio using NodeJS?

After having done a livestream YouTube is processing the video for quite a bit before it is possible to download it in YouTube Studio (download button is greyed out).
Is there a way using the YouTube API v3 or something else to frequently check if the video is downloadable and then download it automatically using NodeJS?
Please note: this is not about downloading videos from others. I want to download a livestream from my own channel as soon as it has been fully processed by YouTube.
This try this project in the below github repo:
https://github.com/fent/node-ytdl-core

Facebook Video share using Azure media Service encoded streaming endpoints

I am building a video library on Azure Media Service and want to give feature where my streaming endpoint(like manifest hls/Dashed/smooth streaming urls urls) can be shareable on Facebook like how YouTube URL works on Facebook share,
i am not sure, is this possible or not?? if yes than which encoding format i need to use here, i tried different encoding here but they didn't work for me,
if above cant be done than whats the best alternate
The steps you need are:
Upload the source video (https://learn.microsoft.com/en-us/azure/media-services/media-services-dotnet-upload-files)
Encode it to a format that supports streaming, using Standard Encoder using a preset like "Content Adaptive Multiple Bitrate MP4" (https://learn.microsoft.com/en-us/azure/media-services/media-services-dotnet-encode-with-media-encoder-standard)
Above will produce an output Asset containing multiple MP4 files
Publish this output Asset (https://learn.microsoft.com/en-us/azure/media-services/media-services-deliver-streaming-content)
You can now use the streaming locator that step 4 generatesin Azure Media Player (http://aka.ms/amsplayer)
However, before you can share links on Facebook, you need to stand up another web service - I've let my colleague know about this thread, and she will follow up shortly.

How do I use Azure Media Services to Dynamically Encode Videos to MP4 using Azure Blob

I am currently using Azure Blob to store images, and it works great. For a new product I am working on, we are starting to integrate videos. We decided to use Azure Blob to store our videos, and it works great.
We also are saving meta data to the images and videos, and using the Azure Search Service to index the images, and videos, to allow for ease of searching in the new product.
The new problem we are experiencing is the mass amount of file formats being found for upload, are not playing in all devices, and browsers we need to support.
We looked in to Azure Media Services, and found if we encode the videos as H.264 MP4 SD 16x9 using Azure Media Player, it will work in all devices. However, we are now trying to identify how we can easily, and without adding much more time to the user, have the video converted and bound to our search results, to allow for a download link (original video) and play link (converted video).
If anyone knows of a solution, or has a different conversion service that could help, it would be appreciated.
Thank You!

Making Google extension which can save to google drive

I looked thru the internet and didn't found a solution how to make this:
I want to make google extension which will use Google API or something to connect the extension to Google drive and create/update files there( i will need mostly plain text documents to store there arrays). i will need it only for personal use, so any hacks are also acceptable.
Have anyone done anything like this before? i just need the starting point.
I have made an example that is available on Github. It is available here. It transforms the some emails from GMails into PDFs stored in Drive.
You can reuse it, you simply need to copy the Drive part and not the GMail API part. The steps you'll need to follow are :
Use the Chrome identity API to retrieve an access token for the Drive API
Use the Drive API javascript client to upload your text files. The tricky part is to upload it properly, use the examples on the github project to see what the request should look like.

Access images, create contacts and restore images

I wan't to do this using Mono, but Mono is so transparent the question is really regarding the Android & iOS API.
I want to do the following:
Read all contacts, send to server
Read all available images in the gallery, send to server
Download contacts from server, restore to contacts
Download images from server, restore to gallery
Now, i know i can read the contacts from both iOS and Android. The rest im not so sure about. Is it possible to get all the images from the gallery? Is it possible to create contacts programmaticly? Is it possible to create images and store to gallery programmaticly?
I am interested in doing the mentioned for both iOS and Android! Is i possible?
It is perfectly fine if the app prompts the user to get full acces to mentioned librarys (contacts and gallery).
If you want a unified API across both iOS and Android, you should investigate the Xamarin.Mobile API.
They cover contacts already, and you should submit a request for them to consider a general photo gallery API--makes sense that developers would want a cross-platform way to work with it as well.

Resources