red5pro / streaming-ios

This repository contains a simple project with a number of iOS examples that can be used for testing and reference.
Other
92 stars 29 forks source link

Crash when using host that's not active #97

Open mlchild opened 7 years ago

mlchild commented 7 years ago

I've been running both my own app and the testbed using a host for a server that's not running.

Upon clicking the "Subscribe" test a second time (after popping the VC the first time), both apps crash reliably. I've attached a screenshot of the crash. Can upload the testbed version to replicate.

screenshot 2017-09-03 16 12 53
beetlejesss commented 7 years ago

It looks to me like the Testbed crashes after you stop trying to subscribe to a non-running server. For your application, I'd suggest adding in some logic that checks whether the server is live and whether the stream exists before it tries to subscribe.

mlchild commented 7 years ago

Okay, will do—are there examples of these kind of connection checks in the testbed?

Also was having an issue where two devices (my browser and one iPhone) were able to pub/sub to a stream, but another iPhone, running the exact same testbed + settings, could not. They were all connected to the same wifi. Have you seen this issue?

beetlejesss commented 7 years ago

We don't have examples, but you might try asking in the ios-sdk public Slack channel (https://red5pro.slack.com/messages/C61720H6H) in case someone else in the community can help you.

For the other errors you are seeing, please open a Help Desk ticket (https://red5pro.zendesk.com/hc/en-us/requests/new) with as much detail as possible so that we can try and reproduce & solve your issues.