How to create your browser with the ability to download videos from any site for android? Many browsers have it, but I wanted to find out what is written in Manifest.xml in both Activity and Layout ? How does a window pop up with a click on a video with a choice to watch or download? Nowhere can I find anything on android.
- oneThose. You found for Eclipse, but not for AS? .. It does not happen. Your question can not be related to the development environment. And in fact ... Well, to lose something - you need a link. Seeing just HTML is corrected on the fly and catching clicks on these links is added with the launch of the download intensity. - Yuriy SPb ♦
- @Yuriy SPb, but where did eclipse come from? o_O - Qwertiy ♦
- @Qwertiy, well ... I just know it as an IDE for Android on java I know) - YuriySPb ♦
- the same plugins do, not the browser - Senior Pomidor
- Instead of a browser, you probably want something like YouTubeDL programs / libraries on Python, which can download videos from many sites and there is an established mechanism for adding new (not pirated) sites. Among the heaps of applications that claimed the ability to download videos from various streaming video sites, youtube-dl turned out to be quite reliable and fast-updated. On iOS, for example, this library from Pythonista 3 works. On Android, within the framework of Kivy, you can try to run or another way to run python (or search for a ready application). - jfs
2 answers
If you set a goal to create new browsers, I would recommend to pay attention to the “engines” for browsers, for example Webkit here are wikis on it. Here is the webkit site. It runs chrome and safari. As for downloading files (video and others) from sites, then this will already have to be encoded with handles. By the way, here's a list of all the engines for creating browsers . Most browser engines are written in C ++.
Android Studio is an Android application development environment. You need to look for a solution in relation to the platform (Android), and not a tool (conditionally, to the complex text editor Android Studio), and you can write the code of the found solution in a notebook, with the same success. This is for the future.
The processing of web page content is done by the browser, not by the operating system. Accordingly, you need to work with HTML code, scripts, API of the used web player, etc., using browser tools, and not with manifests, markups and activations, which are system tools.
Interception of downloads to stream video is usually carried out through the development of a plug-in (extension) for the browser engine , which implements both the download and the download dialogs and other interfaces. The development of such a plug-in has nothing to do with the OS on which the browser is running, but depends only on the engine selected in the browser and questions about its manufacture need to be asked in the appropriate places.
Moreover, streaming video can use different players, including its own, with protection from interception of download links, so there is no one universal solution for all sites.