klionthree.blogg.se

Colorize video app
Colorize video app











  1. Colorize video app how to#
  2. Colorize video app code#

If the image is selected, we assign videoLane.appendImageAsset(filePath) to our variable named visibleAsset, and if video is selected, videoLane.appendVideoAsset(filePath) values.(You can find this class on the GitHub link that I will share at the end of the project.) Because we will add the video to our editor via the file path. If a file is selected, we get the path of the file on the device via the class named FileUtils.At this stage, we first check whether a file is selected or not. Video Editor Kit supports: MP4, 3GP, 3G2, MKV, MOV and WebM, video formats and : BMP, JPG and PNG image formats.Īfter selecting a file from the gallery, we return to the application. The gallery opens and the user selects a video or image from the gallery. Below you can see the codes I wrote for the basic integration:Īccording to the clicked button, it is determined whether to choose a video or a picture.

Colorize video app code#

In my sample application, I wrote a code to get the License ID randomly every time, in order not to get stuck in the quota and because I will only use it myself. In this way, after a pricing policy is determined in the future, we can optionally restrict users after a certain point and apply a pricing policy. We must create License IDs uniquely for each user. Such a scenario has been followed since there is no charge for the use of Video Editor Kit for now. Users whose 3 rights have expired can use the Video Editor Kit again after 12pm on that day. Every time the user deleted and installed the application, user will have consumed 1 right. One of the most important things we need to know about License ID is that a License ID can be used 3 times in 1 day. We can assign any String value to the License ID. We can get the API Key from the agconnect-services.json file that we added to our project or from the project settings page on AppGallery Connect.

Colorize video app how to#

You can click on the link to learn how to get the Access Token. Since I made my application for demo purposes, I did not define an Access Token. It is not mandatory to define an Access Token, but it is recommended to use Access Token in our applications for more secure API calls. To achieve the basic integration of Video Editor Kit, we must first define an Access Token, API Key and License ID.













Colorize video app