Giter VIP home page Giter VIP logo

wkwebviewrtc's Introduction

WKWebViewRTC

CI Status Version License Platform

WebRTC library for WKWebView for Swift on iOS (based on cordova-plugin-iosrtc: https://github.com/cordova-rtc/cordova-plugin-iosrtc)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

In order to make this framework run into a iOS application some requirements must be satisfied in both development computer and target devices:

  • Xcode >= 11.1 (11A1027)
  • iOS >= 10.2 (run on lower versions at your own risk, don't report issues)
  • swift-version => 4.2

Installation

WKWebViewRTC is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'WKWebViewRTC'

Dependencies

Build JS (WKWebViewRTC/Js/jsWKWebViewRTC.js)

  • From the WKWebViewRTC/Js run npm i and then npm run-script build

Third-Party Supported Library

  • Janus => 0.7.4
  • JSSip => 3.1.2
  • Sip.js => 0.15.6

Author

Open Telecom Foundation

License

WKWebViewRTC is available under the MIT license. See the LICENSE file for more info.

wkwebviewrtc's People

Contributors

devsiriso avatar hthetiot avatar justdoit9 avatar noahmehl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wkwebviewrtc's Issues

What now?

I have a dumb question. I've downloaded the latest and got it working on a couple of iPhones. I was expecting that there would be a way to point to a STUN or TURN server to be able to communicate with another user on their iPhone. What do I have to implement to make that happen?

remote stream is black

version 0.4.1(not available via pod install) -> remote stream works on iOS 14.3, local stream also works
version 0.4.0(available via pod install) -> local stream works, but remote stream is black

Unable to run the sample app on a physical device

The sample app gives me this error when trying to run on my iPhone, it however works on a simulator

WKWebViewRTC/Example/Pods/GoogleWebRTC/Frameworks/frameworks/WebRTC.framework/WebRTC' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/WKWebViewRTC/Example/Pods/GoogleWebRTC/Frameworks/frameworks/WebRTC.framework/WebRTC' for architecture arm64

Xcode version: 11.6 (11E708)
iOS: 13.5.1

How to build the POD?

Please could you add guidance in the readme file in order to build the framework alone.

"Audio and video error: Not implemented" with Jitsi Meet

Hi there,

Firstly, thank you for your effort in working on this library. I intended to use Jitsi Meet as a video call feature on my iOS app. Without using this library, I got the error Audio and video error: undefined is not an object 'navigator.mediaDevices.getUserMedia'. I noticed that it is because WebRTC is currently not supported in WKWebView.

The error was gone when applying to this library. Yay!

Unfortunately, I got another error as below

IMG_3288A909BEC1-1

Here is my demo implementation https://github.com/vnnvanhuong/jitsi-meet-on-wkwebview-demo

Thank you
Huong

Carthage Build Support

Hi there,
Thanks for the good framework. I've tested your framework and it's working great for sound, so we decided to add it to our product. The only problem is we build our app with Carthage and not Pod. I tried to add your framework to our Cartfile with the following line:

github "OpenTelecom/WKWebViewRTC"

But it doesn't build and give me the following error:
Dependency "WKWebViewRTC" has no shared framework schemes

I looked around and it seems like this is a simple bug that can be easily fixed by sharing the framework schemes in project settings. I was wondering if you can add that to your configurations so we can add the framework to our standard build script using Carthage.

Thanks

Camera container is separate from webpage camera container.

How to not override existing webpage camera? Currently in my case, i got wkwebview page that use for scan qrcode. I implement the WkWebViewRTC. but the camera is overlap the existing container and cannot scan qrcode.

hope that you could help me. Thank you.

Camera access not being requested

Hello,

I am trying to get both the camera and microphone working but i am able to get only the microphone access but not the camera.

When the authorizationStatus is being checked for video AVCaptureDevice.authorizationStatus(for: AVMediaType.video), the status is being returned as AVAuthorizationStatus.notDetermined.

I tried forcing the request for the camera with no luck.

Kindly let me know if there is something going on with that.

Thanks,
Suresh

ERROR: pluginMediaStream with id already exist

Hello, i asked for new updates of this library 15 days ago, so i'm here to test the latest version and hopefully that works but unfortunately it doesn't.
Here is the error i got : WKWebViewRTC#MediaStream_init() | ERROR: pluginMediaStream with id=76DA6CC7-563D-483D-A16D-64AA23346375_2FA989DD-95B4-45BC-A87E-35FE0AA2569E already exist

I'm using iPhone 11 pro Max 14.0 (Simulator)
Big blue button server https://test.bigbluebutton.org/
Custom user agent : webView.customUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1" (just after super.viewDidLoad() of ViewController class)

Camera display issue.

Am Using Custom URL with button actions. but my url loading First then Top View will be Camera only showing . my Url buttons not displaying
Untitled
can you support to fix my issue

example not working

Hi,

I just reused your example app by just replacing the source url with my custom one, but it doesn't work. in my case, the webapp is made in react and loads just the video stream. I gave access to audio/video using native calls, but I still don't see the video stream inside the wkwebview. any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.