Youtube caching on Chrome app - google-chrome-app

Does anyone knows a solution to cache YouTube videos on a chrome app ?
I know there are ways to write data and access it later, but i can't find a way to do it with Youtube.
I'm aiming at be able to display those videos Offline or just to consume a small amount of bandwidth.
Thanks in advance.

Related

Using Youtube as video storage for my app

I am still relatively new to these topics.
I am programming my app in Flutter and I can already use Flutter to play a foreign video from Youtube in the app.
I want to upload in Youtube all my video resources as private to be able to display them in my app.
Is there any documentation on how to do this? What are the costs per request?
Is Youtube even right for such a mobile app?`
I was going to use Firebase cloud storage, but think that can get very expensive once I release the app.
What other options would I have?
This question isn't really suitable for StackOverflow, since it's basically just asking whether you can use YouTube.
That being said, as long as you don't violate the T&C of YouTube and you're fine with storing all your videos on their platform, yes, you can do this. Using YouTube this way is free as of now. But note that there is a difference between "private" and "unlisted".
You can create a profile on youtube, upload as many videos as you want and list them as unlisted, meaning you can only find the video if you have the link, then in your app link the vides to whatever selection method you have. so ex I have a button when clicked launches a specific unlisted youtube url link and plays the video.
It would be the same as if someone was searching your video publicly and playing it, both are free.

Best way to store video for a Flutter Application

I'm working on a Flutter App and want to include some Tutorial Videos, which all Users have unlimited access to, so they can rewatch it any time. The Videos will be about 10-20 files with 1-5 minutes length.
I guess these amount of data will be too big to be stored as app assets, so I researched a bit and found Firebase Storage and AWS MediaStore.
Thoughts on this ? Or any recommendations - I don't want to run in the wrong direction.
I suggest hosting them on a private S3 bucket with a public CloudFront distribution in front of it for best performance. HLS file groups are fine.
This might be a bit of an obvious answer but my suggestion is that you place these videos on YouTube and mark them as Unlisted. This way you can build the URLs of these videos into your Flutter application and then load those videos with a web_view plugin that you can find on pub.dev.

Tips for GIF sizes in Facebook chat bots

I am in the process of launching a facebook chat bot that is pretty gif heavy and have a couple questions. We are running into load times that are way too slow, especially on mobile. While I know some of the gifs are way too large and need to be cut down, a lot of the smaller ones were also having this problem, so I was curious if you guys had some tips:
What's a good rule of thumb for gif sizes for fb chat bots? Is there a file size that is best not to exceed? We are having the most trouble loading them on a mobile device. What's a good size limit for mobile browsers?
Does facebook load all the gifs on the backend at once, or does it load them as they get called? I ask this because if it's loaded all at once in the beginning, having a lot of gifs in there would be an issue i'm guessing.
Anyways thanks for the tips have a great day!

Detect video is going to be played in UIWebView

I want something similar to this:
https://itunes.apple.com/us/app/video-download-ibolt-downloader/id481606548?mt=8
I want to detect there is any video in web page and want to download that stream into iphone device.
In console media players tells that it is setting the movie path to some URL. There must be a way to download stream and save in local device.
P.S: I know how to download a video file. I want it using online streaming or from sites which does not provide a download link.
P.S++: Video download from HTML + UIWebView is not helpful.
Thanks.
The post is old but it might be worth to clear this
Those apps are probably using undocumented API. Apple doesn't accept private API when apps are submitted to the app store, however they might not be looking for usage of undocumented notifications
You can find more information in here and here
Those apps show you the download button after you click video, and after the video starts. So probably they are listening for media playback notifications and get the url from MPMoviePlayer instance.
By the way, apple doesn't allow apps that download videos from youtube. There might be some apps on the app store that does that, but I recently got rejected because of this. It might not be worth the hassle, as most big video streaming websites don't want people downloading their videos and work hard to make sure that they don't.

Streaming a video on iPhone and then storing it on the device

I've been told that some apps have video streaming which streams initially and when completely downloaded the video is stored to the user's device for quick and internet-free subsequent viewing.
Firstly, is this possible? Secondly, could you point me towards resources demonstrating how it could be done, or possibly offer some insight to get me started?
Thanks friends.
good tutorial on how to stream video:
http://buildmobilesoftware.com/2010/08/09/how-to-stream-videos-on-the-iphone-or-ipad/