Xilium CefGlue in Vline can only receive calls - chromium-embedded

I have set up a vLine agent withing Xilium CefGlue and mostly it works. It can send text messages, receive voice and video calls that function as expected but when a voice or video call is made out of CefGlue to a Chrome browser or CefGlue the call appears to connect but no video or audio makes it from one client to the other. Local vidoe is displayed and it appears local audio is being captured but the other client can see nor hear anything.
[1202/163721:ERROR:webrtc_audio_renderer.cc(231)] NOT IMPLEMENTED shows up in CefGlue.log
Any ideas what can be done to make this work?

Run application (or add it programmatically) with --enable-media-stream switch.
http://apprtc.appspot.com/ should work.
If problems still persists, but works in chrome - then you probably should report issue into CEF issue tracker, or there is problem with vLine (what is it?).

Related

How to play audio in iOS in background?

My goal is to make iOS play audio in a background.
When the audio is received by iPhone, it's not played unless I open the app in the foreground.
Basically, the iPhone is "waiting" when I click to open the app, and then it plays the audio.
Following Developer Guide, I added ios.background_modes=music to my .properties file.
However, nothing changed in behaviour.
I receive audio in real time via websocket class (onMessage(byte[] message) method).
What approach would you suggest in order to resolve this issue and make iOS play audio in a background?
This is the syntax for adding via the GUI not editing the properties file directly. You need to add the property with a codename1.arg. prefix.
Specifically: codename1.arg.ios.background_modes=music

Working with a web extension native-messaging API in multiple tab scenario

I'm trying to understand how to properly handle a multiple-tab scenario for web extension that, through the native-messaging API, utilizes a locally stored application through a runtime communication port.
I have one set up and working; but I don't understand what is supposed to take place when more than one browser tab uses the native application. I was planning on opening the native application only once to handle requests from all tabs that can use it, but am uncertain now. I should probably state that the application remains open and listening for new requests rather than closing after each individual request. It's opened by the background script which handles the requests from each tab's content script.
What happens if a request to the native application from one tab is still processing and a user switches to another tab and sends an additional request to the same native application? Will both requests process, is the second blocked, or will the first cease mid way and the second begin?
I can alter the set up to open a separate instance of the native application for each tab. At least I can see multiple processes open in the task manager rather than one only, when I do this.
Even in the scenario of one instance of the native application per browser tab, what happens if the user clicks the button twice, so to speak, before the first request completes? Should there always be a native_app_busy check that ignores the second request if the first is still processing?
I have a lot of experimenting to do, of course, but thought it prudent to ask how it is supposed to work. Thank you.

Understanding Local Notification in Codename one

I implemented a local notification test per this example https://www.codenameone.com/blog/local-notifications.html
I have the following two questions:
1) can I test local notifications from CN1 simulator. In the link above, I see a local notification test screenshot using the iPhone 6 simulator. Is there a way to force the app to run in background form the simulator in CN1?
2) If a local notification is sent when the app is running in foreground, I understand that the notification will not fire. Is the message lost in this case or is it queued somewhere?
Currently you can only test this on the device, it will work in the native simulator for iOS as you saw in the screeshot. You can run on the native iOS simulator using a Mac and include source.
The message would be lost if you fire in the foreground on iOS as it's the assumption that this is something you can notify within your app more effectively. You can determine if your app is in the foreground using the Display.isMinimized() method. In the foreground case you can use a tool like ToastBar to show a notification.

How do I make selenium see the network requests made by a web browser?

I have a dotnet Selenium web driver app.
When I'm testing the page one of the things I need to confirm is that a flash object on the page has pulled correct content from a content store on my site. (i.e. the flash object should be loading content from /stuff/info.txt and including that content within the animation.)
As a human looking at this I can use the chrome network tab and see that /stuff/info.txt has been accessed.
How can I make Selenium execute a similar watch and see the network requests made by a web browser?
I did not wrote this, neither tested it however someone did it here: http://www.softwareishard.com/blog/firebug/automate-page-load-performance-testing-with-firebug-and-selenium/
Basically all the requests are exported via netexport and firebug plugins inside a HAR (Http ARchive file)
Please give us your feedback if you give it a try!
Cheers !
I assume you want to automate the process which the developer tools of browsers does. Something like firebug but for verification using Code.
I don't believe Selenium has such features. For now, you will not be able to achieve this.

Does Silverlight run on the Client

I would like to know if silverlight run on the client like javascript. Silverlight will be doing alot of work and I want to make sure it all runs on the client.
How do i know if a button click goes back to the server or not?
Yes, Silverlight runs in the browser. The compiled code gets downloaded to the browser in a .XAP file and then runs locally. A button click would not cause anything to happen on the server unless you actually wrote code to call a service.
Yes, Silverlight apps are downloaded and run on client, just like flash and javascript. You have total control for users interactions being sent to the server or not, so it depends on how you want your application to behave.

Resources