albertogasparin / external-video-player-addon

Firefox for Android addon to open HTML5 videos with any native video player
https://addons.mozilla.org/en-US/android/addon/external-video-player/
14 stars 0 forks source link

Update to Firefox 57+ #4

Closed andres-conforti closed 6 years ago

andres-conforti commented 6 years ago

Hey there, any news on an update for firefox quantum?

albertogasparin commented 6 years ago

Firefox 57+ removed the API I was using to trigger Android intents (the actual popup) and as of today there is no alternative solution. I'm going to keep this issue open but looks like the new extensions platform is quite limited on Android and it is hard to predict if the functionality will be reintroduced in future versions.

xawsi commented 6 years ago

If it is not possible to trigger Android intents, is it maybe possible to copy the extracted video URI to the clipboard? So it would be possible to open the URI in MX-Player (manually via the "Open Network Stream" command in MX-Player). I have searched and experimented with many similar AddOns - but I didn't have any success for my use case. So I installed Firefox 56 APK to use external-video-player-addon again... :(

Tuom commented 6 years ago

It is possible to create intent by opening new tab with specific url. It is described in this article. For example something like this: "intent://" + url + "#Intent;action=android.intent.action.VIEW;scheme=http;type=video/*;end"

albertogasparin commented 6 years ago

@Tuom Amazing!! I never saw launching android intents that way. I knew about custom schemes for apps but ignored there is a generic intent://. I have just published v2, fully compatible with Firefox 57+ on Android. Thanks and give it a go! 😉

Tuom commented 6 years ago

@albertogasparin I am glad, that I helped. Thanks, that you implement it so fast :+1: