【问题标题】:Dailymotion Flash Player APIDailymotion Flash 播放器 API
【发布时间】:2015-05-06 11:58:22
【问题描述】:

Dailymotion Flash API 已停止使用。它重定向到使用新的 Player API。 旧版 Flash API:http://www.dailymotion.com/pl/doc/api/player-deprecated/flash_api 新播放器 API:http://www.dailymotion.com/doc/api/player.html 旧 API 仍然可以正常工作。目前尚无信息可用多长时间。 我尝试使用新的 Player API 更新 Flash 项目。一切都会好的,但是当我尝试在其他 Flash 项目下加载新的 Player API 时,它告诉加载的 dailymotion 播放器 api 不是可以运行的纯 Flash 文件。 旧dailymotion api代码:

loader.load(new URLRequest("http://www.dailymotion.com/swf?enableApi=1&chromeless=1"));

旧的 dailymotion api 结果:工作。 新播放器api代码:

loader.load(new URLRequest("http://www.dailymotion.com/embed/video/xjk5h2?chromeless=1&controls=flash&startscreen=flash&html=0&api=location"));

新播放器 api 结果:

Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.

如何在其他 Flash 项目下加载新的播放器 api?有可能吗?

【问题讨论】:

    标签: actionscript-3 flash dailymotion-api


    【解决方案1】:

    我们的文档不清楚。我们将阐明所有这些要点:支持期限、版本、使用情况等。

    我建议您在 as3 项目中使用 /swf 路由。 /embed/video 只是 /swf 的包装。使用该路由 (/swf),您仍将受益于最后的改进。

    希望对您有所帮助。

    伊万

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多