Я хочу, чтобы пользователи загружали видео непосредственно в мою учетную запись на YouTube с собственными заголовками и описаниями.
$youtube_video_title = "deltager"; // This is the uploading video title.
$youtube_video_description = "Example"; // This is the uploading video description.
$youtube_video_category = "News"; // This is the uploading video category.
$youtube_video_keywords = "example, video"; // This is the uploading video keywords.
Это заголовки, а затем форма.
<form action="<?php echo($response->url); ?>?nexturl=<?php echo(urlencode($nexturl)); ?>" method="post" enctype="multipart/form-data" onsubmit="return checkForFile();">
Deltager Nr: <input type="text" name="deltager" />
Emne: <input type="text" name="emne" />
<input id="file" type="file" name="file"/>
<div id="errMsg" style="display:none;color:red">
You need to specify a file.
</div>
<input type="hidden" name="token" value="<?php echo($response->token); ?>"/>
<input type="submit" value="Upload Film :-)" />
</form>
Я хочу, чтобы ввод в форме был определен в заголовке, описании и т. Д.
Таким образом, «deltager», «example» и т. Д. - это изменения для получения текста ввода.
Спасибо.