Dailymotion Flash Player API

[亡魂溺海] 提交于 2019-12-11 18:48:40

问题


Dailymotion Flash API has been discontinued. It redirects to use new Player API. Old Flash API: http://www.dailymotion.com/pl/doc/api/player-deprecated/flash_api New Player API: http://www.dailymotion.com/doc/api/player.html Old API is still working correctly. There is no information how long it will be available yet. I tried to update Flash project with new Player API. Everything would be fine, but when I try to load new Player API under other Flash project, it tells that loaded dailymotion player api is not pure Flash file that can be run. Old dailymotion api code:

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

Old dailymotion api result: working. New player api code:

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

New player api result:

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

How can I load new player api under other Flash project? Is it possible?


回答1:


Our documentation isn't clear. We'll clarify all these points : support period, version, usage, etc.

I recommend you to use the /swf route into your as3 projects. The /embed/video is just a wrapper around /swf. You'll still benefit of last improvements using that route (/swf).

Hope this help.

Yvan



来源:https://stackoverflow.com/questions/23500902/dailymotion-flash-player-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!