Is WebRTC supported?

Welcome! Forums Unity Plugins In-App Web Browser Is WebRTC supported?

Tagged: ,

  • This topic has 5 replies, 3 voices, and was last updated 9 months ago by Tim.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1529
    amoo_miki
    Participant

    Does the plugin support using the camera and microphone on a device and make WebRTC calls? Does MediaDevices.getUserMedia() work?

    Does the API allow resizing the window of the browser from within Unity?

    #1530
    PiotrPiotr
    Keymaster

    Frankly – don’t know 🙂

    Have you got chance to test it by yourself?

    #1531
    amoo_miki
    Participant

    I bought the plugin to try; sadly it didn’t work.

    #11695
    Tim
    Participant

    Any update on this one? Is WEBRTC supported? I’d like to get mic access for the browser. I have it for the IOS app, but when the browser is open, the web page in the browser doesn’t have access to the mic (nor does it request permission).

    Any ideas?

    If using chrome or safari, the permission is requested as expected on the web url.

    The following my C sharp code on first launch which prompts the permission request and grants access:

    Thanks,
    Tim

    #11696
    PiotrPiotr
    Keymaster
    #11697
    Tim
    Participant

    Thanks, I have it working with Xcode / Swift… just still can’t get it working with your plugin…. any ideas?

    I run the following on launch to get Mic permission….

    IEnumerator Start()
    {

    findMicrophones();

    yield return Application.RequestUserAuthorization(UserAuthorization.Microphone);
    if (Application.HasUserAuthorization(UserAuthorization.Microphone))
    {
    Debug.Log(“Microphone found”);
    }
    else
    {
    Debug.Log(“Microphone not found”);
    }
    }

    void findMicrophones()
    {
    foreach (var device in Microphone.devices)
    {
    Debug.Log(“Name: ” + device);
    }
    }

    Then your test script

    public string pageToOpen = “https://www.google.com”;

    // check readme file to find out how to change title, colors etc.
    public void OnButtonClicked() {
    InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
    options.displayURLAsPageTitle = false;
    options.pageTitle = “InAppBrowser example”;

    InAppBrowser.OpenURL(pageToOpen, options);

    }

    public void OnClearCacheClicked() {
    InAppBrowser.ClearCache();
    }

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.