Bug 5114

Enabled media stream in Web Browser control using --enable-media-stream 14 September, 2020

Vedant Patel
20 August, 2020
Product: PowerBuilder Category: Controls & UI
Version: 2019 R2 Build: 2279
Classification: Enhancement Publishing: Public
Priority: P3
Status: Scheduling Reason:
Zhao Kai @Appeon 14 September, 2020
#7
Hi Vedant,

We are glad to inform you that PowerBuilder 2019 R3 Beta is available for your evaluation. The bug or enhancement you reported in this ticket has been fixed or implemented in this release. Please download and install it to verify it on your side and let us know your feedback soon!

You can use the WebBrowserSet function to set the flag, currently, it supports the below two flags.
allow-file-access-from-files 
-- Whether to allow access to the local files (XML etc.). The value is "true" or "false" (by default).
enable-media-stream 
-- Whether to allow access to the microphone or camera. The value is "true" or "false" (by default).

You can find the Beta installer, release notes, and more about this release from the link below. (You need to sign in with your Appeon account)
https://account.appeon.com/download/beta

Warnings: 
1.      Do not use a Beta release for production use. 
2.      PowerBuilder 2l019 R3 cannot coexist with PowerBuilder 2019 or PowerBuilder 2019 R2. It will upgrade/overwrite these versions. We suggest that you install it on a separate machine or a virtual machine for your test. 

Regards,
ZhaoKai
Zhao Kai @Appeon 21 August, 2020
#6
Hi Vedant,

Yes, the PowerBuilder 2019 R3 version will have this flag included by default.

Regards,
ZhaoKai
Vedant Patel 21 August, 2020
#5
Hello ZhaoKai,

Thank you very for you prompt response on this. So just to confirm if I am understanding this correctly, the PowerBuilder 2019 R3 version will have this flag included by default. So the WebRTC feature should work in the new Web Browser control without making any changes, correct?

If you are going to enable it by default in R3 then we don't really need an interface to enable/disable it from our end. 

Thanks,
Ankur Patel
Zhao Kai @Appeon 20 August, 2020
#4
Hi Vedant,

I checked with our developers and there is no way to pass the flag for now.
It is hard for us to provide the interface so we will add this flag first in our project and you can test in PB 2019 R3 once we release it. And we will consider providing an interface for the user to configure in the future.


Regards,
ZhaoKai
Vedant Patel 20 August, 2020
#3
screenshots.zip (121KB)

Hello ZhaoKai,

Actually, I was testing by running the pbcefclient.exe and I found that it has a test menu. In the test menu, there is an option "Other Tests". Refer to screenshot 1. If you click on this "Other Tests" menu item, it opens a page with a bunch of links to different tests. Refer to screenshot 2. This page already has a link to test WebRTC as highlighted in the screenshot 2 and it seems like you guys are already aware that for this test enable-media-stream flag needs to be passed. After seeing that I thought there must be a way to pass this argument to enable WebRTC. Are you sure there is no way we can work around this or are there any configurations that we can change to pass this flag? 

Thanks,
Vedant Patel
Zhao Kai @Appeon 20 August, 2020
#2
Hi Vedant,

Sorry that there is no way to pass this argument in the PB . We'll record it as a new requirement/enhancement request and transfer it to our product team for consideration.

Regards,
ZhaoKai
Vedant Patel 20 August, 2020
#1
pb_chrome_microphone_access.zip (105KB)

*Phenomenon:
The new PowerBuilder web browser control does not allow access to media streams. Because of this, we cannot use microphone/webcam inside the Powerbuilder web browser control. Enabling this feature is just as simple as passing the argument --enable-media-stream to the pbcefclient.exe. I have already verified it by opening this exe directly and passing this argument and I am able to access the microphone and webcam.


*Reproduce Steps:
I have attached the code sample. Just run this and it will open a window which contains the new web browser control and it will load the URL: https://www.onlinemictest.com/, now start the microphone test on the webpage, it will say that the Microphone not authorized.

Remarks:
Meanwhile, do you have any way we can pass this argument ourselves in the PB 2019 R2?
OS:
All
Platform:
All
Database Type:
SAP SQL Anywhere
Database Version:
16