ankit-aggarwal / swiftywebrtc Goto Github PK
View Code? Open in Web Editor NEWSwift Framework for WebRTC
License: MIT License
Swift Framework for WebRTC
License: MIT License
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!
this is the only SWIFT version that I am able to understand. Appreciate if you'd giving us an example on it.
I got an error "use of undeclared type RTCClient"
Hello
I like your project but there is no demo or document
Please help.
I published question here
https://stackoverflow.com/questions/52019677/failed-to-set-remote-video-description-send-parameters-iphone-android
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
How I fix the mirroring issue while using the front camera.
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?
device: iPhone XR
iOS Version: [iOS 12.3]
Xcode Version: [Xcode 10.3]
Two iPhone Xr Calls,If both phones use two phone cards, using Mobile Networks ,webrtc will not be able to connect.
Could you explain how would the reconnection be made? if I loose internet access or change to cellular data so that it is able to reconnect automatically.
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
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) } @@}
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,
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.
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
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)
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?
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)
whould u put an example project?
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?
I have added github "Ankit-Aggarwal/SwiftyWebRTC"
to my cartfile and only WebRTC.framework is downloaded
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.
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.
Can you please add support for cocoapod? Thanks!
/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
would like to see a working example with server side code as unable to implement RTCDatachannel for data sending.
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
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
How can i fix this error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.