This topic provides answers to commonly asked questions about media asset upload.
What can I do if the upload SDK for iOS fails to upload files with an error Error Domain=NSCocoaErrorDomain?
- Method 1: Grant the permission for reading local resources to the upload SDK for iOS.
- Method 2: Store local resources in the sandbox directory before uploading.
This issue occurs because the WeChat browser is not compatible with the HTML5 player.
To resolve this issue, delete the
multiple="" parameter from
<input type="file" name="file" id="files" multiple="">.
What can I do if the preview page is stretched when the resolution is set to 480p in the stream ingest SDK?
When the resolution of an ingested stream is set to 480p in the stream ingest SDK, the video image of the stream is properly displayed. However, the preview page may be stretched. This issue occurs because the resolution of a 480p video is 480 × 640 pixels, which is not supported by most mobile phone screens.
How can I view and import an AAR package in Android Studio?
To view files in an AAR package, change the file name extension of the package from
.zip and decompress the package. Then, you can view the
.jar files, images, and text files in the package.
- Copy the
.aarpackage to your project and reload the project. Generally, copy the package to the Project name/libs/ directory.
- In the build.gradle file, add the path of an on-premises repository to the root tag
and add the compilation dependencies to the dependencies part.
Replace libs in the sample code with the name of the directory to which the AAR package is imported. In the compile parameter, set the name field to the name of the AAR package and the ext field to the file name extension.
- Choose When the project is rebuilt, the imported AAR package is displayed in the External Libraries directory of the project.
to rebuild the project.