Comments (7)
Hi @tankadesign, thanks for submitting the issue. In order to let the subscriber join, you should first receive 'streamCreated'. Did that delegate method get called or any errors?
from opentok-ios-sdk-samples-swift.
It gets called on one of the devices - I'm not using standalone mode. After about a minute the stream gets destroyed automatically. The devices I have tested on are iPhone 6 with iOS 9.3.2
, iPhone 7 with 10.3.1
and iPhone 7+ with 10.3.1
. On the 7+ I get the Subscriber joining when not in standalone. But not on the iPhone 6 or 7. It doesn't matter which phone I start up first, it's always the same.
When I run it in standalone on the iPhone 6 or 7 (not Plus) I get errors:
Session connected
2017-04-13 14:52:35.709429-0400 3.Custom-Audio-Driver[6576:1664635] Metal GPU Frame Capture Enabled
2017-04-13 14:52:35.709764-0400 3.Custom-Audio-Driver[6576:1664635] Metal API Validation Enabled
2017-04-13 14:52:35.800761-0400 3.Custom-Audio-Driver[6576:1664635] libMobileGestalt MobileGestaltSupport.m:153: pid 6576 (3.Custom-Audio-Driver) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-04-13 14:52:35.800804-0400 3.Custom-Audio-Driver[6576:1664635] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
2017-04-13 14:52:35.873205-0400 3.Custom-Audio-Driver[6576:1664635] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-04-13 14:52:35.874101-0400 3.Custom-Audio-Driver[6576:1664635] [MC] Reading from public effective user settings.
2017-04-13 14:52:36.495475-0400 3.Custom-Audio-Driver[6576:1664635] [Common] _BSMachError: port a903; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2017-04-13 14:52:36.496984-0400 3.Custom-Audio-Driver[6576:1664635] [Common] _BSMachError: port a903; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2017-04-13 14:52:40.480849-0400 3.Custom-Audio-Driver[6576:1664699] [aurioc] 892: failed: -66635 (enable 3, outf< 1 ch, 0 Hz, Float32> inf< 1 ch, 0 Hz, Float32>)
from opentok-ios-sdk-samples-swift.
@tankadesign what do you mean by standalone? Under non-standalone mode, you said the stream gets destroyed automatically. Did you receive any errors that caused this? More information would be helpful 😃
from opentok-ios-sdk-samples-swift.
In my tests:
User A = iPhone 6 or 7
User B = iPhone 7+
- User A joins session & User B joins session ok
- Both users publish to the session
- User B receives the User A's video stream without audio (OTSessionDelegate streamCreated call fires)
- User B never receives OTPublisherDelegate streamCreated call
- User A never receives User B's video; no OTSubscriber or OTSession delegate calls fire after User A publisher joins session and User B subscriber view is removed
- After about 45-60 seconds User B receives OTSessionDelegate streamDestroyed call
It seems that the custom AudioDevice never tells the publisher delegate to fire.
Has anyone actually tested this code? I can't see why it would happen to just me, since I have multiple devices I'm testing on.
from opentok-ios-sdk-samples-swift.
The problem I described above comes from trying to use DefaultAudioDevice in example #2, by the way. So I'm guessing the DefaultAudioDevice isn't really built out enough to work with a custom capturer?
When I run just example #3, I get both streams connecting ok, but the audio never starts so there's never any sound. After about 60 seconds again (same as above) one of the streams gets destroyed and the other device crashes at line 295 of DefaultAudioDevice.swift:
let result = AudioOutputUnitStart(playoutVoiceUnit!)
debug output:
Destoying audio units Error reseting AVAudioSession OTPublisherDelegate streamDestroyed fatal error: unexpectedly found nil while unwrapping an Optional value
from opentok-ios-sdk-samples-swift.
With this PR it should be fixed.
from opentok-ios-sdk-samples-swift.
I am still getting this issue. I am using swift 4, did the appropriate changes to the master branch, but i am using the DefaultAudioDevice class in my own project. Has this been reported again, or maybe it's something wrong with the way i call the class?
from opentok-ios-sdk-samples-swift.
Related Issues (20)
- Opentok initialization crash on iOS 15 HOT 2
- Memory Leak in raptor_v2 json methods HOT 1
- FrameMetadata isn't working HOT 2
- Opentok initialization crash on iOS 15 HOT 1
- Crash when Accessing Streams property of OTSession HOT 3
- Mirroring issue is not getting resolve by using Custom-Video-Driver project implementation
- Remain green dot HOT 3
- Sync Custom-audio-driver with Objective C repo HOT 2
- App cannot be run on Simulator due to lack of Apple silicon support HOT 1
- application Crashed HOT 1
- Warning: -[AVCaptureSession startRunning] should be called from background thread HOT 4
- iOS 16 "Timed out while attempting to publish." HOT 17
- Subscriber Video Enabling Problem HOT 2
- Latency of 10sec between the call of doPublish() and the call of session.publish() HOT 3
- Threading Issues HOT 2
- Session connect memory error access HOT 12
- VonageWebRTC-99.2.39: 1 vulnerabilities (highest severity is: 7.5) HOT 1
- Crash on OTPublisher instance creation HOT 3
- Does not compile for arm64 simulator if the project also uses Swift Package Manager HOT 4
- OTPublisher never be published with internal error from AudioUnitInitialize HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentok-ios-sdk-samples-swift.