What Is Client Video Upload?
Client video upload refers to App users directly uploading local videos to VOD.
Video Upload Function TXUGCPublish Not Found?
The video upload module has been made independent from the SDK and open sourced in the Demo. Users are advised to integrate short video upload themselves. The steps are as follows:
1. Download Demo.
2. Copy the uploaded jar package under the
app\libs\upload directory to the ..\app\libs\upload directory of your project.3. Copy the source code directory
Demo\app\src\main\java\com\tencent\liteav\demo\videoupload to your own project directory and modify the package name in the source code.4. In the build.gradle under the project App directory, add the code for referencing the jar package.
dependencies {compile fileTree(include: ['*.jar'], dir: 'libs/upload')}
5. Configure the App's permission in
AndroidManifest.xml.<uses-permission android:name="android.permission.INTERNET"/><uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
What Should I Do If Upload Fails With the Internal Error 1000?
Please check whether the VOD service is enabled.
Short Video Upload Parameter Class Error?
Please check whether the video file URL and image address are correct, and whether the corresponding files can be found in the path.
Short Video Upload Signature Error?
Before initiating uploading, the client needs to request an upload signature from the application server. If the application server allows the client to upload, it will generate an upload signature for the client according to signature rules. The client must carry this signature to let VOD verify whether the client upload is granted.
The steps for client upload signature are as follows:
1. Obtain API key.
2. Concatenate plaintext strings.
3. Convert plaintext strings to final signature.
4. After the service is set up, developers can verify the correctness of the signature through the tools provided by VOD:
Signature generation tool: Quickly generate a signature based on parameters and a key.
Signature verification tool: Parse the signature to obtain the various parameters used when generating the signature.
Is There a Limit to the Duration and Sizes of Maximum Allowed Upload During Video Upload?
The User Generated Short Video SDK (UGSV SDK) has no limit on the duration and sizes of uploaded videos.
Is It Possible to Upload an Image?
The function of uploading pictures separately is not currently supported, but a cover image can be attached when uploading a video. For related notes, please refer to Video Upload.