【发布时间】: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