duanduan8439 2015-03-22 06:47
浏览 104

如何使用YouTube API上传录音资产?

We have a CMS on YouTube. I am trying to write a PHP script using Youtube API that uploads sound recordings and creates assets based on these recordings. I am reading the references on inserting assets in Google developers:

https://developers.google.com/youtube/partner/docs/v1/assets/insert

The example shown here is about uploading videos. The following snippet shows how to create a video insert request.

// Create a request for the API's videos.insert method to create and upload the video. $insertRequest = $youtube->videos->insert("status,snippet", $video, array('onBehalfOfContentOwner' => $contentOwnerId, 'onBehalfOfContentOwnerChannel' => $channelId));

But i am not finding anything regarding creating an audio or sound recording insert request to be able to upload the recordings. So how to create insert sound recording insert requests instead of video?

Appreciate any help regarding this issue. Thank you

  • 写回答

1条回答 默认 最新

  • douang4294 2015-03-31 19:15
    关注

    I think you are confused between assets and claims. In that example, you insert video for claim not for asset.

    What you are asking is uploading a reference audio. Here's the full guide: https://developers.google.com/youtube/partner/asset_reference_upload_example

    评论

报告相同问题?

悬赏问题

  • ¥170 如图所示配置eNSP
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥15 键盘指令混乱情况下的启动盘系统重装