To automate your video website platform, you need video upload directly through your website. Read this for details about this method. The following code gives an example written in C#.
After the video is uploaded, it is not ready instantly. Do not load the player immediately. Use the API to query when video is ready and only then render the video player. The API for querying video status is described in the API reference as videos/ .