Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webrtc Camera and Audio not available on MacOS Webview #368

Open
joe-getcouragenow opened this issue May 8, 2020 · 7 comments
Open

Webrtc Camera and Audio not available on MacOS Webview #368

joe-getcouragenow opened this issue May 8, 2020 · 7 comments

Comments

@joe-getcouragenow
Copy link

joe-getcouragenow commented May 8, 2020

Environment:

  • Mac OS latest

Problem:

  • The WebView that is part of the Mac OS does not allow access to webrtc for me

Reproduction:

Screen shot:

photo_2020-05-08 14 17 01

  • Image on left is Chrome browser with webrtc working.
  • Image on Right is same js code running inside Zserge webview.

So i am wondering:

  • Is this a restriction that Apple places on its OS Webview ? Hence its impossible for it to work
  • Is it actually that ZSerge webview does not implement the needed call signature ?
@joe-getcouragenow joe-getcouragenow changed the title Webrtc access Webrtc access does not work for me. May 8, 2020
@joe-getcouragenow joe-getcouragenow changed the title Webrtc access does not work for me. Webrtc Camera and Audio not available on MacOS Webview May 13, 2020
@pojntfx
Copy link

pojntfx commented May 14, 2020

Can confirm:

ackage main
  
import "github.com/zserge/webview"

func main() {
        debug := true
        w := webview.New(debug)
        defer w.Destroy()
        w.SetTitle("Minimal webview example")
        w.SetSize(800, 600, webview.HintNone)
        w.Navigate("https://meet.jit.si/asdfasdfasdfasdf")
        w.Run()
}

@jason-shen
Copy link

Try to give the permissions in the plist then it should work as it expected

@nothingismagick
Copy link
Contributor

exactly which permissions are those

@jason-shen
Copy link

jason-shen commented Jun 16, 2020 via email

@nothingismagick
Copy link
Contributor

@jason-shen
Copy link

jason-shen commented Jun 24, 2020 via email

@joe-getcouragenow
Copy link
Author

@jason-shen

i don't think thats the reason u can always use Chrome to do this, its just the fact webview is little behind Chrome thats the fact Kind Regards Jason Shen Sent from my Samsung Galaxy smartphone.

-------- Original message -------- From: Joe notifications@github.com Date: 24/06/2020 18:54 (GMT+08:00) To: webview/webview webview@noreply.github.com Cc: jason-shen jason_2000_nz@hotmail.com, Comment comment@noreply.github.com Subject: Re: [webview/webview] Webrtc Camera and Audio not available on MacOS Webview (#368) Apple just want to control FaceTime and wont allow it on Desktop or IOS Webviews. In the end i went with PWA added to home screen. This does have access to the Webrtc features. — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#368 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANWB44ENOSWU4YWD6RIJZ3RYHLNRANCNFSM4M4EEBNA.

We need to run it on Mac, and there it defaults to using the Mac OS webview. UNless i missed something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants