hikikomoriphoenix / Beedio

Android app that lets you find downloadable videos as you browse the web. Allows queuing downloads. Also includes bookmarking and ad-blocking features for easier browsing experience.
GNU General Public License v2.0
148 stars 44 forks source link

Download video when playing #64

Closed cuongnv219 closed 4 years ago

cuongnv219 commented 4 years ago

How i can only download video current playing? help me, plzz :D

hikikomoriphoenix commented 4 years ago

Press Video found button. If the current video is detected, it will be in the list. Press the corresponding item in the list and press download. Navigate to the Download page to see the current video being downloaded.

cuongnv219 commented 4 years ago

How to detect video is clicked? I just want to download the video when I click play

hikikomoriphoenix commented 4 years ago

It should auto-detect when video is played. I can't guarantee that it will work. It depends on which site you are playing the video. Which site are you playing the video?

Are you asking about how to use this app or are you asking about how to program to download a video after clicking play? Please be clear about your question.

cuongnv219 commented 4 years ago

Which site are you playing the video?

hikikomoriphoenix commented 4 years ago

I also don't know. Sorry.

If you can somehow extract the source code from the web page, perhaps you can use JavaScriptInterface and modify the source code to call a method from the JavaScriptInterface if play button is clicked. I also don't know much about facebook to know how they detect a play button click. Steps:

  1. Extract source code from web page.
  2. Implement a JavaScriptInterface class that can start a download.
  3. Modify source code to call the exposed method from JavaScriptInterface if play button is clicked.
  4. Webview.addJavaScriptInterface()
  5. Webview.loadData() on the source code

This is if you're using WebView. You might also try to look at the Facebook API and see if you can play a video and detect play button click. And then look for a library that can extract downloadable video url from facebook.