K
K
Konstantin2018-12-24 11:32:23
Video broadcast
Konstantin, 2018-12-24 11:32:23

How to correctly implement video upload to the portal using third-party services?

There is a multilingual portal with the ability to post videos and access users to it.
I want to use the youtube api + link access + our layer that downloads the video and saves the video address in the database.
But a large part of the audience is in China, where youtube is blocked.
Perhaps it is worth expanding the layer and uploading the video to several video hosting sites at once, including the Chinese analogue of youtube.
I would like to refuse to implement my own video hosting, because there is a different load on the servers, and I don’t want to reinvent the wheel (third-party video hosting giants do an excellent job with this work and provide an API).
Please share your experience if you have faced similar issue. What is the architectural correct way to implement this functionality?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-12-24
@2ord

Implement layers to the desired number of supported service APIs.
Depending on the country (checking by IP), display one or another set of services (or only one of them).
From an HTML point of view, the upload form can be made to have a consistent look regardless of the service used. The client uploaded the video directly to the hosting - immediately informs the server about the end of the operation, including the identifier and service data for storage in the database on the server.
You also need to take into account many nuances with blocking content in different countries due to their regulations. I would not begin to implement layers to the API without a full understanding of the consequences.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question