Is it possible to integrate Exoplayer in a webview app? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am trying to build an e-commerce app for android tv. After doing some research I figured out that simplest way would be to use WebView, enable javascript and use webchromeclient for the naigation and it worked.
I have set the url of my app to webview and moreover using javascript I am able to achieve the required navigation as well.
My issue is that my html5 app has a video tag that plays the video. I need to use Exoplayer for playing the video for HLS. I have downloaded the demo exoplayer app from github and it runs fine.My question is how can I integrate Exoplayer to my app.
How can I call Exoplayer to my webview app that loads an html5 and javascript based app.
While researching further I found that we can call android methods from javascript and vice-versa using javascriptinterface but I am not able to figure out how to integrate Exoplayer with my app.
Any suggestions would be really appreciated.

Related

Accesing camera via Javascript, taking a picture and sending it to Firebase CloudStorage [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Good morning, I´m studiyng and have this problem to solve. I have to create the logic in Javascript with nodejs, to access the device camera (this is a webApp, not Android, thats why is coded in JS), then take a picture and then send it to my backend and save it in Firebase Cloud Storage. I´m not asking for a complex code, but if u know any source, or any repository to start working will be appreciated.
Thanks in advance :D
Happy coding!
When using Node.js as part of a web application it is used for the server-side component of the application and doesn't have access to any cameras on devices accessing it.
You need to use client-side code to do that.
iOS and Android devices tend to make the camera available as an option when you use a regular <input type="file"> so you can use a normal HTML form and your usual multipart-capable body parsing library (not body-parser although its documentation list some options) on your server.
If you want access to a webcan cam then you'd need to look into WebRTC.

Can I use javascript with in an Android App [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am a real beginner in flutter and dart, i am trying to implement some web page (specifically pandemic.events) functionality with in a really simple android app..
my first thought is just to copy the web page with all of its' javascript inside the app and manipulate a little bit some parts that i find lacking.
i am struggling with using javascript inside my flutter app (writing import package:js... in main.dart).
Is there even a possibility to use javascript inside a flutter android app ?
you can use JavaScript code and packages in your Flutter code with https://pub.dev/packages/js
I don't know about Flutter but you can implement web page functionalities in a Progressive Web App which is a JavaScript technique to build mobile Apps both for Android and iOS

How to interface an hardware device using javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I had developed a web application in ASP.NET MVC using C# which is used for billing purpose. But now the client had a new requirement that he need to connect swiping device so that the customers can pay using their cards.
Now the issue is that how i communicate with the device from javascript? i had tried web socket but is not succeed.Is there any ways to make this possible ?
You can use the self host Web API to communicate with the swiping device.
You can simply create a self hosted Web API to communicate with the swiping device
Make it run on the client machine
Call the API from your java script
It will work perfectly
Look at the documentation of the swiping device, it should explain how you should interface with it.
Of course there's no web browser API to interface with every imaginable peripheral device, so you're simply going to have to put your software development skills to work and create a compatibility layer.

android phone which connects to web application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a photo capturing system by using javascript and also HTML5 for my college project. I'm thinking of creating "somehow" called a remote control by using android device to communicate to the web application open on my laptop.
maybe I make you guys confuse already,
let say the android device have a CAPTURE BUTTON. when user click on the button, it will capture the photo inside the laptop web applications. The purpose of the android device is work like a remote control when user tap on the CAPTURE BUTTON. Is there any technology can make this happen?
I have this idea is because of there's a lot of android apps which is can connects to the computer as a mouse or as a keyboard. So, I was thinking is it possible that create a application communicate with the javascript inside of my webapp.
Thank you for answering and viewing the question.
yes it is possible. You can do it by using Node.js. I have created a presentation using Node.js and by using html code. Then I open the controller on laptop and ppt on my mobile application WebView. then I am able to record and save the video automatic as slides changes in my android phone.
so by manipulating some code you can do what ever you want.

Capture images from a phone camera? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need a simple way to capture images from smartphones without writing an app for every Operating System ( android, ios, winphone ).
Is there a way to capture images from a phone camera ( obviously without using OS API ) on a web page ?
Short answer: no.
Your best bet is to use Apache Cordova. However, note that the web page needs to be wrapped in a native WebView as an app, as it is not possible to take a picture using the phone's camera directly from a web page. The advantage of using Cordova/Phonegap is that you do not need to write custom code for each platform.
http://docs.phonegap.com/en/3.3.0/index.html
Usage example

Categories

Resources