aws-sdk-ios

AWS ios SDK - http post request for elastic transcoder job

对着背影说爱祢 提交于 2019-12-06 10:27:53
问题 Looking into AWS elastic transcoder, and have a few questions: Is there significant value using the transcoder in the first place, for my use case? I'm making an ios app that allows users to select a video. When they do this I'm uploading it to an S3 bucket. As I understand it, I should use elastic transcoder to then transcode those videos and drop them in a second bucket in hls format. Does this make sense, or would I be just as well off eliminating the transcoding step since I'm only

dynamodb scanexpression with scan filter in objective-c

点点圈 提交于 2019-12-06 04:52:28
AWSDynamoDBObjectMapper *dynamoDBObjectMapper = [AWSDynamoDBObjectMapper defaultDynamoDBObjectMapper]; AWSDynamoDBScanExpression *scanExpression = [AWSDynamoDBScanExpression new]; scanExpression.exclusiveStartKey = nil; scanExpression.limit = @20; [[[dynamoDBObjectMapper scan:[DDBTableRow class] expression:scanExpression] continueWithExecutor:[BFExecutor mainThreadExecutor] withSuccessBlock:^id(BFTask *task) { ................ I am able to scan through and return the first 20 recorded from a specific table from my DynamoDB as shows on a piece of code above. The question now is I want to add a

AWS ios SDK - http post request for elastic transcoder job

霸气de小男生 提交于 2019-12-04 17:36:29
Looking into AWS elastic transcoder, and have a few questions: Is there significant value using the transcoder in the first place, for my use case? I'm making an ios app that allows users to select a video. When they do this I'm uploading it to an S3 bucket. As I understand it, I should use elastic transcoder to then transcode those videos and drop them in a second bucket in hls format. Does this make sense, or would I be just as well off eliminating the transcoding step since I'm only creating content on ios devices and then streaming it on ios devices? Assuming there is some value to doing

AWS iOS SDK Cognito Developer Authentication (Swift)

守給你的承諾、 提交于 2019-12-03 07:54:22
问题 I am having a hard time figuring out how to return developer credentials provided by my server (via AWS) to my Example identity provider. It seems I need to do this synchronously within the refresh method on the ExampleIdentityProvider class. I'm using AFNetworking to make the request, but it is an async GET request. How can I do this synchronously for the refresh method on my IdentityProvider? The following is in Swift: class ExampleIdentityProvider: AWSAbstractIdentityProvider { var

AWS iOS SDK Cognito Developer Authentication (Swift)

▼魔方 西西 提交于 2019-12-02 21:23:31
I am having a hard time figuring out how to return developer credentials provided by my server (via AWS) to my Example identity provider. It seems I need to do this synchronously within the refresh method on the ExampleIdentityProvider class. I'm using AFNetworking to make the request, but it is an async GET request. How can I do this synchronously for the refresh method on my IdentityProvider? The following is in Swift: class ExampleIdentityProvider: AWSAbstractIdentityProvider { var newToken: String! override var token: String { get { return newToken } set { newToken = newValue } } override

Core Data concurrency `performBlockAndWait:` NSManagedObjectContext zombie

半腔热情 提交于 2019-12-02 13:13:40
I have a following crash report from my released app: synchronizeMyWords method fetches the entities from database, creates private queue context with main context parent and finally saves results. All operations are in the background thread. This method being called every time app goes into background and foreground . Here is a simplified method: - (AWSTask *)synchronizeMyWords { __weak typeof(self) weakSelf = self; AWSContinuationBlock block = ^id _Nullable(AWSTask * _Nonnull task) { if ([task.result isKindOfClass:[NSArray class]]) { NSArray * records = (NSArray *)task.result;

How can I check the existence of a key/file on an Amazon S3 Bucket using AWS iOS SDK v2?

时光毁灭记忆、已成空白 提交于 2019-12-02 03:09:50
问题 I writing an iOS app that uploads and downloads files from an Amazon S3 bucket. I got said functionality working, but I need to write unit tests for it. Is there any way I can check if a file exists in my bucket so that I can confirm that it has been uploaded?? 回答1: AWSS3 has a method called - headObject: . You can use it to see if the object exists in the bucket. 来源: https://stackoverflow.com/questions/26977483/how-can-i-check-the-existence-of-a-key-file-on-an-amazon-s3-bucket-using-aws-ios