Recently, I have an issue of using your uploader, that is, video upload makes no progress while app is background (e.g. launch your example project, and then run other app to turn former to be background), only it's switched to foreground, progress will be seen.
If timeout is not set, switching to foreground after it's in background for long time will lead to request time out failure. As a result, I set the timeout as
api?.setTimeoutInSeconds(86400)
, then upload just makes no progress.
Would you give me suggestion to make upload work even if the app in background? Thanks a lot!!!
Xcode console output when it's in background:
---- Video Track Infomation ---
File Path: file:///var/containers/Bundle/Application/ADB996BD-62FD-4726-A361-B362D13A7B7E/TwitterVideoUploader_Example.app/sample.mp4
Duration: 60.7333333333333sec
File Size: 4.68279MB (4910263B)
Dimension: 268.0 x 480.0 [width x height]
Aspect Ratio: 0.558333
Channel Count: 2
FPS: 30.0
Hi author,
Recently, I have an issue of using your uploader, that is, video upload makes no progress while app is background (e.g. launch your example project, and then run other app to turn former to be background), only it's switched to foreground, progress will be seen.
If timeout is not set, switching to foreground after it's in background for long time will lead to request time out failure. As a result, I set the timeout as
, then upload just makes no progress.
Would you give me suggestion to make upload work even if the app in background? Thanks a lot!!!
Xcode console output when it's in background: ---- Video Track Infomation --- File Path: file:///var/containers/Bundle/Application/ADB996BD-62FD-4726-A361-B362D13A7B7E/TwitterVideoUploader_Example.app/sample.mp4 Duration: 60.7333333333333sec File Size: 4.68279MB (4910263B) Dimension: 268.0 x 480.0 [width x height] Aspect Ratio: 0.558333 Channel Count: 2 FPS: 30.0
valid! 2017-11-28 12:29:15.090489-0800 TwitterVideoUploader_Example[61659:6660931] -- <__NSObserver: 0x1c4241a40> 2017-11-28 12:29:15.139262-0800 TwitterVideoUploader_Example[61659:6660931] refreshPreferences: HangTracerEnabled: 0 2017-11-28 12:29:15.139355-0800 TwitterVideoUploader_Example[61659:6660931] refreshPreferences: HangTracerDuration: 500 2017-11-28 12:29:15.139369-0800 TwitterVideoUploader_Example[61659:6660931] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0 935606535606038528 86400 2017-11-28 12:29:17.060221-0800 TwitterVideoUploader_Example[61659:6661005] TIC Read Status [1:0x0]: 1:57 2017-11-28 12:29:17.060663-0800 TwitterVideoUploader_Example[61659:6661005] TIC Read Status [1:0x0]: 1:57