Comments (6)
Hello @dseeker!
You cannot retrieve the device MAC address in web browser but you can get it from some platforms which allows you to do that right now:
- LG NetCast
- Samsung Orsay
On the other platforms I need to ckeck it out is it possible or not.
Do you want to get the MAC address on the android platform?
from qmlcore.
@comrat Yes from the browser I expect nothing to come as there is no access to that data.
But I imagine on TIzen and WebOS it would be possible with the cordova plugin, no? They have JS bridge library with the information. something like this
if (context.system.vendor == 'LG') webOS.service.request("luna://com.webos.service.connectionmanager", {
method: "getinfo",
parameters: {},
onSuccess: function (args) {
console.log('success', args)
// mac = args.wiredInfo.macAddress;
},
onFailure: function (args) {
console.log('failure', args)
}
});
Right now I'm looking for a way to get it in AndroidTV, but in general I want to know how to access this macAddress property using the library, I couldn't find any code examples.
from qmlcore.
@dseeker where did you find this method?
I only see the getStatus
method https://webostv.developer.lge.com/api/webos-service-api/connection-manager/
and there is no MAC address
from qmlcore.
I honestly don't remember where I lifted from
https://www.webosose.org/docs/reference/ls2-api/com-webos-service-connectionmanager/
https://stackoverflow.com/a/42934118/845195
but that's something external to the Qmlcore framework, that I'm doing on the JS side.
I'm still wondering how do I access the Device.macAddress property on Qmlcore in AndroidTV device, is that currently possible?
from qmlcore.
I've tried this method on my WebOS and got an error
"Denied method call "getinfo" for category "/""
So I'm not sure this should work for WebOS.
For the androidtv we'll try to implement in the corresponded project https://github.com/pureqml/qmlcore-android
from qmlcore.
pureqml/qmlcore-android#11
create the corresponded issue for qmlcore-android
@dseeker FYI
from qmlcore.
Related Issues (20)
- Scope hierarchy not working HOT 8
- Implement proper fix for scope lookup HOT 6
- Outermost Item not always resizing to context HOT 7
- Add lessons about integrating 3rd party libraries HOT 1
- upgrade all video backend libraries HOT 3
- Compiler error messages are inaccurate/broken HOT 13
- Image paintedWidth and paintedHeight not updating
- How can React call compiled internal components? HOT 5
- error: No module named jinja2 HOT 2
- Add PWA platform (web.pwa?) HOT 1
- Is there a community forum to facilitate communication HOT 1
- float parsing requires leading integer in new parser HOT 1
- property type names cannot include underscores HOT 1
- How to use undefined in property expression? HOT 5
- Calling Date.now() to initialize property leads to a build error
- The '_globals.core` prefix appears HOT 1
- html5 to qml? HOT 1
- Android to desktop or web HOT 1
- I ask you how you can define an object-type variable with property? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmlcore.