webRTC ReadyState error in ios - ios

What I Did?
I am new to webRTC. I had download a demo from the link https://github.com/ISBX/apprtc-ios
I'm using kurento server for communicating the device and the browser.
Encountered an error while connecting the browser and the device.
I'm getting an error
"WebSocket closed with code: 1001 reason:Stream end encountered wasClean:0" and always I'm getting ReadyState = SR_CLOSED.
How to resolve this? pls suggest some solution.
*****What I Want?*****
How to change the ReadyState to SR_open?
How to open the connection of WebSocket?

Related

WebRTC video and Audio in IOS not working with 3G /4G but works with WIFI connection

[carc] CAReportingClient.mm:320:-[CAReportingClient sendMessage:category:type:reporters:]_block_invoke: The operation couldn’t be completed. No valid RTCReporting and the session was started
i have the same problem with using google stun:stun:stun.l.google.com:19302
i think the problem is caused by the stun/turn server.
i solve and test it successfully with applying a free turn server in http://numb.viagenie.ca/cgi-bin/numbacct
and in swift i just add the
RTCIceServer(urlStrings: ["turn:numb.viagenie.ca:3478"], username: "YourUserName", credential: "yourPassword")
into iceServers list of webrtc,
this works for me, at least prove my swift side is correct(i am iOS developer), all the rest is the turn/stun server side.

iOS Not playing some Videos - CoreMediaErrorDomain Code=-12939

I am using CTVideoView to playback videos inside a UITableView in iOS. As of late this was working fine, but for some reason, it seems as though the something has gone astray.
About 10% of the videos will play in the table, but many will simply just fail to play. The error occurs when iOS is trying to download the video as can be seen by the error messages below. For some reason, the error message is different in iOS 10 & 11 but the code is the same.
Based on iOS 10's message one would believe that the network is not available, but if I point my safari/chrome browser on the same iOS device it plays the video just fine.
As for the iOS 11 message, I have no idea where to even start as it the first time I've seen this message.
Any help at all would be much appreciated in resolving this.
iOS 10 Error Message
FAILED TO PREPARE VIDEO WITH ERROR: Error Domain=NSURLErrorDomain
Code=-1 "unknown error" UserInfo={NSLocalizedDescription=unknown
error,
NSErrorFailingURLStringKey=URLOBSCUREDFORPRIVACY,
NSErrorFailingURLKey=URLOBSCUREDFORPRIVACY,
NSURL=URLOBSCUREDFORPRIVACY,
NSUnderlyingError=0x17044bd00 {Error Domain=CoreMediaErrorDomain
Code=-12939 "CFNetwork error unavailable"
UserInfo={NSDescription=CFNetwork error unavailable,
NSURL=URLOBSCUREDFORPRIVACY}}}
iOS 11 Error Message
FAILED TO PREPARE VIDEO WITH ERROR: Error Domain=NSURLErrorDomain
Code=-1 "unknown error" UserInfo={NSUnderlyingError=0x1c08483d0 {Error
Domain=CoreMediaErrorDomain Code=-12939 "content range mismatch -
should be start 0 length 1247166 is start 0 length 1048575"
UserInfo={NSDescription=content range mismatch - should be start 0
length 1247166 is start 0 length 1048575,
NSURL=URLOBSCUREDFORPRIVACY}},
NSErrorFailingURLStringKey=URLOBSCUREDFORPRIVACY,
NSErrorFailingURLKey=URLOBSCUREDFORPRIVACY,
NSURL=URLOBSCUREDFORPRIVACY,
NSLocalizedDescription=unknown error}
Update (Possible Clue)
So after some testing I've narrowed it down to videos longer than or equal to 10 seconds. In all other circumstances the video will play.
I have resolved the issue. The issue was with ParseServer and the fact that it could not stream videos to iOS as it does not come out of the box with byte-range headers configured.
The solution was to implement the GridStoreAdapter into the server and from there migrate file storage to S3 or GCS (depending on your preference). This will need to be done alongside the respective adapter for your service.
Once that was done, the app started behaving correctly again.

Cloudant replication errors: TDChangeTracker (Code=589) and NSURLErrorDomain(Code=-1005)

I have been using Cloudant through Bluemix and everything worked fine at the beginning. But now the replications don't complete successful anymore, constantly throwing errors or finishing with no data being received.
replicatorDidError: Error Domain=NSURLErrorDomain Code=-1005 "(null)"
replicatorDidError: Error Domain=TDChangeTracker Code=589 "(null)"
Bad DB response: {"error":"service_unavailable","reason":"Service unavailable"}
Sometimes it was temporarily fixed assigning new credentials, but now it doesn't do the trick anymore. It happens either from the iOS SDK or from a node.js app.
Any help will be very welcome.
Thanks in advance.

IBM AppCenter 6.2.0 + SSL on iOS - shows loading view forever when connect to Server (no response fail/success/timeout))

I tried to connect IBM AppCenter 6.2.0.01.20141013-1735 on iOS 6/8.1 (enabled SSL)
After I clicked Login btn, app showed Loading view forever (no fail/success/timeout response).
I checked device log:
IBMAppCenter[1385:29127] [Appcenter][CordovaPlugin][INFO]: Query login
user name:admin server:https://example.net:9443/applicationcenter
Then I disabled network, Application hided loading and showed "no network" message.
I checked log again then saw this:
2015-03-31 10:07:13.191 IBMAppCenter[1385:29127]
[Appcenter][CordovaPlugin][ERROR]: Query login admin on
https://example.net:9443/applicationcenter/FAILED
2015-03-31 10:07:13.191 IBMAppCenter[1385:29127] [Appcenter][General][ERROR]:
Error handler, http status: null "Error Domain=NSURLErrorDomain
Code=-1009 "The Internet connection appears to be offline."
UserInfo=0x7c8c2830
{NSErrorFailingURLStringKey=https://example.net:9443/applicationcenter/service/auth,
_kCFStreamErrorCodeKey=57, NSErrorFailingURLKey=https://example.net:9443/applicationcenter/service/auth,
NSLocalizedDescription=The Internet connection appears to be offline.,
_kCFStreamErrorDomainKey=1, NSUnderlyingError=0x7c8c0890 "The Internet connection appears to be offline."}"
2015-03-31 10:07:13.192 IBMAppCenter[1385:29127] [Appcenter][General][ERROR]: Error handler, displayed message:
"Connection failed. Check your connection details (The Internet
connection appears to be offline.)."
maybe it was connecting to /service/auth...
I tried on Android, it works fine.
Also tried with no-ssl, it works fine on both Android/iOS.
my SSL was verified by GoDaddy G2.
I am stuck over here and could not find any way out.
This may be related to the way you have installed the GoDaddy-issued certificate.
First,
Make sure it upholds to the required standards for using a certificate: IBM AppCenter 6.2.0 + SSL on iOS - shows loading view forever when connect to Server (no response fail/success/timeout))
Second,
Verify you have properly installed it. That is, make sure you did not install it via the Mobile Safari browser, as it won't be available to apps that way (see above link).

CocoaHTTPServer server not playing video on ios7 issue

I have used CocoaHTTPServer server to stream media files. App is playing media with httpURL with MPMusicPlayerController Player controller.
My implementation works fine on older iOS version but fails on iOS7 gets error
{
MPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
error = "Error Domain=MediaPlayerErrorDomain Code=-1005
\"The network connection was lost.\" UserInfo=0xa5427b0
{NSLocalizedDescription=The network connection was lost.}";
}
I tested to open url in browser I could download file.That means server is running.
Any idea,suggestion what is going wrong?

Resources