播放错误后Spark Video Player null对象错误

时间:2013-01-07 14:00:23

标签: flex flash-builder video-player

我遇到了Spark VideoPlayer的问题。如果播放器遇到播放错误(可能是由于它无法播放文件),然后我再尝试设置源,我得到一个空对象错误。错误发生在这里:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at spark.components::VideoDisplay/cleanUpSource()
    E:\dev\4.y\frameworks\projects\spark\src\spark\components\VideoDisplay.as:1956]

指向

videoPlayer.displayObject.visible = true;

displayObjectnull

除了放弃VideoPlayer组件并创建自己的组件之外,我似乎找不到解决此问题的方法。

我看过一些与此问题相关的帖子,但我找不到适合我的解决方案。

0 个答案:

没有答案
相关问题