desktop-example-app
desktop-example-app copied to clipboard
Questions about access to system resources?
@dominicletz saw your video on this very nice work. Some questions are below.
- Is there a way to listen to UDP/TCP socks from this native app? I have some services that broadcast to the system and I was wondering how the system blocks or allows this type of data connection.
- Is there a way to access the microphone, or video camera of the device? I have a system that takes phone calls.
- How is video rendering within the application does the processor take a performance hit? Can it play 4k streams? Playing of audio? Adjusting sound and so on?
- How does mobile hand-off to wi-fi look when trying to connect outbound?
For updating -- you might want to take a look at the https://www.nerves-project.org/ which has a nice method to roll out updates.
Hi @chavenor thanks for having a look! On your questions:
- Yes of course you can. All network features are available, even on the Android and iOS builds you got full access. In fact those even use TCP for internal communication between "native" and Elixir worlds already.
- Haven't tried microphone or video camera, at least Erlang's wx library does not seem to support those, but you might try via browser features. The browser is always webkit based (even on windows) so you should have nearly feature equality.
- Since we're rendering everything through a browser window it's basically as good as the OS can do here. Webkit video playback is generally hardware accelerated.
- Mobile hand-off, does not exists inside the desktop-library because all communication is inside the device. It's all native with no external communication. If you're doing network communication in your own application you will have to deal with network disconnects there -- not sure this answers your question though?
Hope this helps Cheers!