encodedVideoExtentionCheck
talawa-api / utilities/encodedVideoStorage/encodedVideoExtensionCheck / encodedVideoExtentionCheck
Function: encodedVideoExtentionCheck()
> encodedVideoExtentionCheck(encodedUrl
): boolean
Checks if the provided base64 encoded URL represents a video with the "mp4" extension.
Parameters
encodedUrl
string
The base64 encoded URL of the video.
Returns
boolean
true
if the encoded URL is a valid mp4 video, false
otherwise.
Defined in
src/utilities/encodedVideoStorage/encodedVideoExtensionCheck.ts:6