Dailymotion Player的私人视频 [英] Dailymotion Player for private videos

查看:175
本文介绍了Dailymotion Player的私人视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建应用程序以播放我们帐户中的Dailymotion视频,并且需要使用嵌入式Dailymotion播放器(或HTML5视频,但从目前为止我看来不可能)播放非公开视频。

We're building apps to play Dailymotion videos from our account and need to play non-public videos with the embedded Dailymotion player (or HTML5 video, but that seems not possible from what i have read so far).

我们的PHP脚本应从播放列表中读取所有片段,并将它们传递给HTML5 / JS前端以设置播放器。这应该在没有任何用户交互身份验证的情况下起作用,而仅在使用API​​密钥和秘密值的情况下起作用,因为PHP代码将自动从HTML5 / JS应用程序执行。当然,密钥不是公开的,因为它们仅存储在PHP代码的服务器上。

Our PHP script should read all clips from a playlist and pass them to the HTML5/JS frontend to setup the player. This should work without any user interactive authentification, but only with the API keys and secret values, since the PHP code will be executed automatically from the HTML5/JS app. Of course the keys are not public, since they are stored only on the server for the PHP code.

在VIMEO中,这可以通过API密钥来工作,并且您还可以设置视频

in VIMEO this works through the API keys and also you can set videos to private but allow embedding them on specific domains.

问题是:
1)我们可以通过未经用户身份验证的
通过PHP访问非公开视频吗? 2)我们可以通过DM播放器播放非公开视频吗?

questions are: 1) can we access our non public videos through PHP without user authentification 2) can we play our non public videos through the DM player?

感谢您的回答。

推荐答案

在Dailymotion上,只有您观看私有视频,因为该私有视频不会出现在您的频道页面上。可以与其他用户共享它,并使用其私有ID进行播放。请注意,当您公开私人ID或私人网址时,该视频将不再被视为私人。

On dailymotion, a private video is only viewable by you as it does not appear on your channel page. It is possible to share it with other users and play it by using its private id. Beware that when you disclose the private id or private url, the video can no longer be considered as "private".

要获取此私有ID,您可以在API中的 video 对象上请求以下字段(请求必须经过身份验证,但这是您在php脚本中所做的事情):

To get this private id, you can request the following field on the video object in the API (the request must be authentified, but this is what you do in your php script):


  • private_id 。然后,您可以使用它在播放器中播放视频。

  • 您还可以请求 url 。如果获得验证,此请求将在dailymotion.com上提供视频的私人网址

  • private_id. Then you can use it to play the video in the player.
  • you can also request the url. If authentified, this request will provide the private url of the video on dailymotion.com

关于HTML5 dailymotion播放器,您可以订阅Beta版位于 https://www.dailymotion.com/player

About the HTML5 dailymotion player, you can suscribe to the beta at https://www.dailymotion.com/player

这篇关于Dailymotion Player的私人视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆