videoUploadComplete delegate not called - Swift 3
I'm writing an iOS app using Swift (iOS 10) and I have downloaded the Ziggeo iOS SDK 2.0 from the GitHub. So I was testing a scenario where the iOS device has no internet connection after clicking the upload button on the video preview screen. The videoPreparingToUpload was called then eventually an error appears on the Xcode console log. But the videoUploadComplete was never called. Please see the logs below.
videoPreparingToUpload = /var/mobile/Containers/Data/Application/8C65FCF4-7E8B-49BE-9B64-0A47B8EB4F46/Documents/499618642.mp4
2016-10-31 22:57:23.000 OnlineSession[681:145209] foreground request
2016-10-31 22:57:23.006 OnlineSession[681:145209] request dump: ---REQUEST------------------
URL: https://embed.ziggeo.com/v1/applications/180256e3e9eb495cc70846d510787598/videos?flash_recording=true
METHOD: POST
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
BODY:
----------------------------
2016-10-31 22:57:23.687 OnlineSession[681:145124] -[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UIWindow: 0x17dd0a50; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x17dc8f80>; layer = <UIWindowLayer: 0x17dcede0>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
2016-10-31 22:57:23.688 OnlineSession[681:145124] unload
2016-10-31 22:57:24.812 OnlineSession[681:145184] video created with error = Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (No value.) UserInfo=0x17f04750 {NSDebugDescription=No value.}, response = (null)
-
Hi Mo,
Our developer says that this is indeed a bug and that it will be resolved in future update. For now however it would be best to switch to the ZiggeoRecorder2.
To make the switch in your code you would simply add the number 2 to the existing definition, changing:
ZiggeoRecoder into ZiggeoRecorder2
0 -
I wasn't able to test this using the ZiggeoRecorder2 because I was not able to proceed with the video recording due to an issue related to this https://support.ziggeo.com/hc/en-us/community/posts/222308388-Upload-and-Delete-Buttons-Missing-on-iPhone-6-Plus?page=1#community_comment_226617988
0
Please sign in to leave a comment.
Comments
2 comments