-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kinesis video putmedia for iOS #2382
Comments
Hi @PaulScala, Thanks for reaching out. I'm not super familiar with this part of the SDK, but it seems like there is a unit tests here named "testGetHlsStreamingSessionUrl"
Perhaps changing line 84 from:
to something like:
might be what you're looking for? |
@wooj2 Thank you for the suggestion. The problem is Here is the object the API returns:
|
Hey @PaulScala , I checked around with people more familiar with this area, and they said that there is currently no easy way to support this at the moment. They suggested two potential options with moving forward:
Option one seems to be very involved, and it seems like option 2 does some of the heavy lifting for you. Best of luck! |
Hi @wooj2 Thank you for following up on this. It looks like option 1 would be the best path forwards for us. Does the AWS iOS SDK have anything I can leverage for helping make a SigV4 request, or is it best to make my own REST layer. |
Hey @PaulScala , As part of AWSCore, there is AWSSignature which I believe should be of some help: |
Hey @wooj2 So I have been digging into the AWS core SDK trying to implement this, and I got a bit stuck. My understanding is that to load data into a web request you need to use a request sterilizer. Since none of the request serializes take a data object in I have to create my own: class AWSRawRequestSerializer: NSObject, AWSURLRequestSerializer {
var data : Data
init(data: Data) {
self.data = data
}
func validate(_ request: URLRequest!) -> AWSTask<AnyObject>! {
return AWSTask(result: nil)
}
func serializeRequest(_ request: NSMutableURLRequest!, headers: [AnyHashable : Any]!, parameters:
[AnyHashable : Any]!) -> AWSTask<AnyObject>! {
if headers != nil {
for (key, value) in headers {
request.addValue(value as! String, forHTTPHeaderField: key as! String)
}
}
request.httpBody = self.data
return AWSTask(result: nil)
}
} The problem I am having is when I set any idea what I am missing? When I step step through the request the method |
Any updates on this topic? I have the same issue! |
Thanks for opening this feature request. We don't plan on adding support for |
State your question
Hi how do you do a put media request to Kinesis using the iOS SDK?. I can't seam to find any reference code after getting the endpoint URL from
getDataEndpoint
.I see in the android SDK there is a
PutMediaClient.builder()
but I can't seam to find something similar in the iOS SDK.Which AWS Services are you utilizing?
Kinesis Video
Environment:
Device Information:
The text was updated successfully, but these errors were encountered: