/* video plugin */
creating a new plugin to upload video directly to youtube.
plugin should handle a multisite network and to be able to use 1 API redirect for the entire network.
Issue problem with the redirect Uri...
if this is multi-site and when you create a new site the redirect URI will be changed and then the redirect URI will be different so API will not work
you need to let the function dill with this issue.
for the main site no problem with the redirect API URL but I wish to add 1 API so you will need to use something like this -
for the redirect URI - please remember that if the main site is subdomain as our demo [login to view URL] then the SUBSITEs will be by default as folders. mean [login to view URL]
and if the main site is on the main domain like [login to view URL] so SUBSITE can be or subdomain as this:
[login to view URL] or
[login to view URL]
example function - [login to view URL]
you can see same plugin but old and if you want you can use it and fix it to work as my requiers - [login to view URL]
video explain - [login to view URL]
adding shortcode of video button in any post type when the user adding a new post clicking the video button he redirects to the video capture in his device.
user capture video or choose from his device Galery video a plugin will upload the video to youtube and automatically embed the video in the post.
title, description, and location will be taken from post details.
post category will add a new playlist in youtube according to category name the category will add auto playlist in youtube account.
admin in setting can set by default as private or public.
when users uploading the video he can choose whether private or public.