Is there a way to get( or assume ) data size of video clip from NX API before it's downloaded?
AnsweredIs there a way to get( or assume ) data size of video clip from NX API before it's downloaded?
-
Yes, it is often possible to obtain the size of a video clip through an API before it is downloaded. This can be helpful for a number of reasons, such as estimating the amount of time it will take to download the video or ensuring that the user's device has enough storage space to accommodate the video. The exact method for obtaining the size of a video clip through an API will depend on the specific API being used. However, many APIs provide a way to request metadata about a video, which can include information such as the size, duration, and format of the video. Some APIs may also provide a way to request only specific metadata fields, which can help minimize the amount of data that needs to be retrieved from the server. If the API being used does not provide a way to request metadata about a video, it may still be possible to estimate the size of the video based on its duration and other properties. For example, the bit rate of the video can be used to estimate its size based on its duration, although this method is less accurate than directly retrieving the size through an API.
Please sign in to leave a comment.
Comments
1 comment