actionscript-跟踪动作以获取FLV视频中有关提示点的信息

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了actionscript-跟踪动作以获取FLV视频中有关提示点的信息相关的知识,希望对你有一定的参考价值。

this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list
  1. /* ||||||||||||||||| CUEPOINT TRACES ||||||||||||||||||||
  2. these trace actions are handy for returning the info that flash has about any cuepoints it encounters, embedded in an FLV [flash video] file. put these traces inside a cuepoint listener function to test whether flash is picking up the cuepoints in the first place, before you add any more complicated code. these traces will display:
  3.  
  4. - the 'event' the listener has detected [ie. a cuepoint]
  5. - the name of the cuepoint
  6. - the type of the cuepoint [ie. 'event' or 'navigation']
  7. - the time the cuepoint sits at in the video
  8.  
  9. [note: this code assumes your FLV video file has an instance name of 'vid'. if you change the instance name change the "this.vid.playheadTime" part of the code accordingly]
  10. ||||||||||||||||||||||||||||||||||||||||||| */
  11.  
  12.  
  13.  
  14. // begin traces
  15. trace("listener detected: "+eventObject.type);
  16. trace("cuepoint is called: "+eventObject.info.name);
  17. trace("cuepoint is of type: "+eventObject.info.type);
  18. trace("vid playhead time: "+vid.playheadTime);
  19. trace("------ ");
  20. // end traces

以上是关于actionscript-跟踪动作以获取FLV视频中有关提示点的信息的主要内容,如果未能解决你的问题,请参考以下文章

actionscript3-跟踪操作以获取有关FLV视频中提示点的信息

ActionScript 3 导入必要的动作脚本以使用FLV和元数据[即。中cuePoints]

如何使用动作脚本控制 Flash 中的 FLV 播放?

如何以编程方式将 ActionScript CuePoints 注入 FLV 文件

使用ActionScript生成FLV视频文件

ActionScript 3 flash中FLV视频的actionscript cuepoint监听器