Giter Site home page Giter Site logo

swiftywebrtc's People

Contributors

ankit-aggarwal avatar frimicc avatar ryandailey100 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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

swiftywebrtc's Issues

Mute audio during call

How can I mute my audio during an active audio call, so that the user cannot hear my end? I tried disabling the localAudioTrack but that did not work. Please let me know asap, thanks!

Kindly upload an example

this is the only SWIFT version that I am able to understand. Appreciate if you'd giving us an example on it.

Module compile version error

Module compiled with Swift 4.0.3 cannot be imported by the Swift 4.2.1 compiler
I was getting this issue when I try to run the code after importing your swiftywebRTC framework please reply asap

Mirroring Issue

How I fix the mirroring issue while using the front camera.

deploy on device - no bitcode in frameworks

Hi!

Been tried to use your solution and faced with inaccessibility to run it on device because of bitcode absence in both frameworks SwiftWebRTC and WebRTC. I've fixed bitcode issue in SwiftyWebRTC but not in case of WebRTC - just started looking for source code.

My question: did you succeed in running your app on device?

Datachannel to get data

i derived the below function to get the data from other device but the below method is not at all triggering

public func dataChannel(_ dataChannel: RTCDataChannel, didReceiveMessageWith didReceiveMessageWithBuffer: RTCDataBuffer) {
print("dataChannelDidChangeState didReceiveMessageWith")

}

but the status change method is triggering as below

public func dataChannelDidChangeState(_ dataChannel: RTCDataChannel) {

}

Kindly support to resolve this issue

How to stay on the per connection when navigate back from Video chat screen to other screen.

Hi Ankit-Aggarwal, Thank you so much for this wonderfull code for establishing video call using WebRTC in pure swift. I found lot of other cods that are not is pure swift. I implemented the video call using WebRTC and PubNub with the help of this code. But in my project I want to continue the calling process in background also. Also after establishing the video call, and I navigate from VideoChat screen to other screens I need to continue the calling like video needs to paused but voice call needs to continue. But here when I navigate back from the VideoChat screen without disconnecting the call, I'm getting callback in the deinit method and the removing the stream from the peerConnection and call get disconnected, and I commented the code then the app get crashed. Can you please help me I don't want to disconnect the call when I navigate back to other screens of the same app.

The deinit method is,
deinit { guard let peerConnection = self.peerConnection else { return } if let stream = peerConnection.localStreams.first { print(stream) audioTrack = nil peerConnection.remove(stream) } @@}

Data Channel not found

Hi,

I am working on webrtc based chat so how I can implement chat using webrtc .
I didn't find anything related to text chat,please provide sample for the same.

Thanks,

Ice connection state change delegate method is not triggering

The following method is not at all triggered for any of the state like below one.
RTCIceConnectionStateNew,

RTCIceConnectionStateChecking,

RTCIceConnectionStateConnected,

RTCIceConnectionStateCompleted,

RTCIceConnectionStateFailed,

RTCIceConnectionStateDisconnected,

RTCIceConnectionStateClosed,

RTCIceConnectionStateCount,

public func peerConnection(_ peerConnection: RTCPeerConnection, didChange newState: RTCIceConnectionState) {

    self.delegate?.rtcClient(client: self, didChangeConnectionState: newState)

}

But at the same time the below delegate is triggering and i am getting ice candidates.

public func peerConnection(_ peerConnection: RTCPeerConnection, didGenerate candidate: RTCIceCandidate) {

    self.delegate?.webrtcClient(client: self, didGenerateIceCandidate: candidate)

}

The peer connection is not established in this case. Kindly do the needful on this.

Screen Stretched Speaker Issue

Hello @Ankit-Aggarwal when I make call and gets connected I was able to see my remote video screen gets stretched too big and I wasn't able to hear the voice out only when I plugged earphones then able to hear how to fix this issue please help me out

IOS Native App For WEBRTC support Safari

Hello,

I want to develop webRTC App for Audio calling using VoIP to PSTN number internationally

So is it work for native IOS app , it will support Safari Browser ? IOS 11
or I go for the hybrid app (cordova based)

working on same network except in different network

I've used your implementation, It's working great in same network but when it comes to different network it' not connecting, may be ice candidate were not adding at proper time.

Need help or suggestion?

IOS App safari support

Hello,

I want to develop webRTC App for Audio calling using VoIP to PSTN number internationally


So is it work for native IOS app , it will support Safari Browser ? IOS 11
or I go for the hybrid app (cordova based)

New to swift need to call peerConnection.setConfiguration

curious i wanna add some logic to this code base but im new to swift
the objc header files have

- (BOOL)setConfiguration:(RTCConfiguration *)configuration;

tried to call it self.peerConnection?.setConfiguration(
but does not work?

Is there another Im supposed to call this?

Cannot find RTCClient

I have added github "Ankit-Aggarwal/SwiftyWebRTC" to my cartfile and only WebRTC.framework is downloaded

Socket is not receiving Incoming calls data.

socket is connected. After connection when I call from other device it is not receiving data. But when I call to browser it sending response fine. how can I fix this help will be appreciated.

Can i achieve live streaming

I want to implement live streaming from mobile to mobile. Is it possible to do so. Your code is doing one to one communication. Is it possible to make it one to make. If so please guide me how can we do it.

Build failed when linking SwiftyRTC framework

/Users/mohamedabdelhafez/xcode-projects/demos/ESPPOC/Carthage/Build/iOS/SwiftyWebRTC.framework/SwiftyWebRTC compiled with older version of Swift language (unknown ABI version 0x06) than previous files (unknown ABI version 0x07) file '/Users/mohamedabdelhafez/xcode-projects/demos/ESPPOC/Carthage/Build/iOS/SwiftyWebRTC.framework/SwiftyWebRTC' for architecture x86_64

working example

would like to see a working example with server side code as unable to implement RTCDatachannel for data sending.

speaker audio issue

I was unable to hear the voice audio out , but when I plugging the earphone I was able to hear the voice how to fix this issue with speaker

Framework not building with Carthage

Hi,

I'm trying to add your library to my project with Carthage, but I'm running into some problems.

I've added github "Ankit-Aggarwal/SwiftyWebRTC" to my Cartfile and the run carthage update, but this is what I get:

*** Skipped building WebRTC due to the error:
Dependency "WebRTC" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/Anakros/WebRTC/issues/new
*** Building scheme "SwiftyWebRTC" in SwiftyWebRTC.xcodeproj
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /path/to/my/project/Carthage/Checkouts/SwiftyWebRTC/SwiftyWebRTC.xcodeproj -scheme SwiftyWebRTC -configuration Release -derivedDataPath /Users/myuser/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4_9F1027a/SwiftyWebRTC/v0.1.6 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/v0/yz384q754hb8zcdjy4j72wb1c3vwd0/T/SwiftyWebRTC SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /path/to/my/project/Carthage/Checkouts/SwiftyWebRTC)

Looking into the build log, I see this

Failed to read file or folder at /path/to/my/project/Carthage/Checkouts/SwiftyWebRTC/Carthage/Build/iOS/WebRTC.framework

Any help would be precious.

Thanks

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.