dailymotion-sdk-php
dailymotion-sdk-php copied to clipboard
post a private video
Hi, is there a setting to post a video privately and generate a visibility link used in a site. So that the video is only visible on the site and not on Dailymotion.
$videoTitle = $title;
$channel = 'auto';
$postvideo = $api->post(
'/me/videos',
array(
'url' => $url,
'title' => $videoTitle,
//'tags' => 'dailymotion,api,sdk,test',
'channel' => $channel,
'published' => true,
'is_created_for_kids' => false,
)
);
Best Regards
I found for the parameter during the upload, on the other hand, is the ID different for a private video ?
$postvideo = $api->post(
'/me/videos',
array(
'url' => $url,
'title' => $videoTitle,
//'tags' => 'dailymotion,api,sdk,test',
'channel' => $channel,
'published' => false,
'is_created_for_kids' => false,
'private' => true
)
);
return => Array ( [id] => xxxxxxx [title] => test client [channel] => auto [owner] => xxxxx ) private ID ???
Hello @gtraxx, yes the ID is different for a private video, you can retrieve it using the private_id fields. To play a private video, use its private ID when you reference it