a5storage_UploadVideoToYouTube Function
Syntax
p result = a5Storage_UploadVideoToYouTube(c namedProvider,c filename, c itemName[,c description,[c title,[c tags]]])
Arguments
- namedProviderCharacter
The name of the namedProvider you created for uploading videos to Google
- filenameCharacter
The file name of the video
- itemNameCharacter
The name of the uploaded object on Google
- descriptionCharacter
An optional description of the video
- titleCharacter
An optional title for the video
- tagsCharacter
An optional list of tags for the video
Returns
- resultPointer
An object with an error and errorText property to indicate if the upload succeeded
Description
Xbasic function (a5Storage_UploadVideoToYouTube()) allows you to upload videos to a YouTube account. The function uses the Google YouTube API. In order to use the function you will first need to create a named provider for Google. You will also need to authenticate a connection to a Google account with the correct scopes.
Discussion
The a5Storage_UploadVideoToYouTube() function is optimized to quickly upload individual video files to YouTube. This can be used to upload MP4, MOV, AVI, WMV, FLV, and more. MP4 is the suggested format, with the optimal quality and size characteristics.
namedProvider = "youtubedemoAA" fn = "C:\Jing\INJECTION.mp4" item = file.filename_parse(fn, "ne") p = a5Storage_UploadVideoToYouTube(namedProvider, fn, item, "desc demo upload", "title demo upload") showvar(p) 'use showvar to see the result of the function call.
Videos
How to Upload Videos to YouTube with Alpha Anywhere
This video shows how to create a Google project and a Named Provider in Alpha Anywhere so that you can then use the a5Storage_UploadVideoToYouTube() function to upload videos to YouTube.
See Also