Stream has a CDN (hosted by Imgix) which customers access by default.
We recommend customers update their CDN from the default to their own.
Here’s how to change CDN’s for iOS - React / React Native - and Android.
For iOS -
First, you might need to implement your own Uploader
:
class MyUploader: Uploader {
// and fill missing functions
}
then, assign this to your presenter:
let myUploader = MyUploader()
channelPresenter.uploadManager = UploadManager(uploader: myUploader)
For React / React Native -
<MessageInput
doImageUploadRequest={(file, channel) => {
// your upload logic
return image;
}}
doFileUploadRequest={same}
/>
For Android SDK -
val customCdnUrl = "https://some.service.com"
val client = ChatClient.Builder(apiKey, context)
.cdnUrl(customCdnUrl)
.build()
Comments
0 comments
Please sign in to leave a comment.