Android : Control Google Chrome from android application

on Sunday, April 19, 2015


I want to create an android app (to run on phone) to control the play/pause buttons on Google Chrome media player (the one that gets activated if you just drag a video to Google Chrome).


I started exploring the matter here and now I know how to get control of those buttons in Java.


I also read about Rhino which allows you to run js from within java.


The remaining question is how can I send commands from the android app to some website open in chrome? Is that even possible? Maybe I need a chrome extension that allows that?


The page that I want to control will always have this structure:



<html>
<head><meta name="viewport" content="width=device-width"></head>
<body>
<video controls="" autoplay="" name="media">
<source src="url...">
</video>
</body>
</html>


Here @gigadot provides a way for remotely opening links in the browser. Is there a way to control the buttons?


0 comments:

Post a Comment