FLVPlayback Callback Fire order

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Anyone know what order all those FLVPlayback callbacks fire?

I mostly need to know the ones in the beginning (metadata, resize, ready, etc)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

First set is through CTRL+Enter.
Second set is through web browser. (HTTP)

Both are for the entire length of the flv.

Code: [ Select ]
/* Order
stateChange
progress
resize
stateChange
buffering
ready
playheadUpdate
playheadUpdate
stateChange
playing
playheadUpdate (multiple times for length of movie)
stateChange
stopped
playheadUpdate
complete
stateChange
playheadUpdate
stateChange
stopped
rewind
*/

// Code
var flvWatcher = {
    buffering:function(eventObject:Object){trace(eventObject.type);},
    close:function(eventObject:Object){trace(eventObject.type);},
    complete:function(eventObject:Object){trace(eventObject.type);},
    cuePoint:function(eventObject:Object){trace(eventObject.type);},
    fastForward:function(eventObject:Object){trace(eventObject.type);},
    metadataRecieved:function(eventObject:Object){trace(eventObject.type);},
    paused:function(eventObject:Object){trace(eventObject.type);},
    playheadUpdate:function(eventObject:Object){trace(eventObject.type);},
    playing:function(eventObject:Object){trace(eventObject.type);},
    progress:function(eventObject:Object){trace(eventObject.type);},
    ready:function(eventObject:Object){trace(eventObject.type);},
    resize:function(eventObject:Object){trace(eventObject.type);},
    rewind:function(eventObject:Object){trace(eventObject.type);},
    scrubFinish:function(eventObject:Object){trace(eventObject.type);},
    scrubStart:function(eventObject:Object){trace(eventObject.type);},
    seek:function(eventObject:Object){trace(eventObject.type);},
    skinError:function(eventObject:Object){trace(eventObject.type);},
    skinLoaded:function(eventObject:Object){trace(eventObject.type);},
    stateChange:function(eventObject:Object){trace(eventObject.type);},
    stopped:function(eventObject:Object){trace(eventObject.type);},
    volumeUpdate:function(eventObject:Object){trace(eventObject.type);}
}
for(func in flvWatcher){
    player.addEventListener(func, flvWatcher);
}
player.contentPath = "test.flv";
  1. /* Order
  2. stateChange
  3. progress
  4. resize
  5. stateChange
  6. buffering
  7. ready
  8. playheadUpdate
  9. playheadUpdate
  10. stateChange
  11. playing
  12. playheadUpdate (multiple times for length of movie)
  13. stateChange
  14. stopped
  15. playheadUpdate
  16. complete
  17. stateChange
  18. playheadUpdate
  19. stateChange
  20. stopped
  21. rewind
  22. */
  23. // Code
  24. var flvWatcher = {
  25.     buffering:function(eventObject:Object){trace(eventObject.type);},
  26.     close:function(eventObject:Object){trace(eventObject.type);},
  27.     complete:function(eventObject:Object){trace(eventObject.type);},
  28.     cuePoint:function(eventObject:Object){trace(eventObject.type);},
  29.     fastForward:function(eventObject:Object){trace(eventObject.type);},
  30.     metadataRecieved:function(eventObject:Object){trace(eventObject.type);},
  31.     paused:function(eventObject:Object){trace(eventObject.type);},
  32.     playheadUpdate:function(eventObject:Object){trace(eventObject.type);},
  33.     playing:function(eventObject:Object){trace(eventObject.type);},
  34.     progress:function(eventObject:Object){trace(eventObject.type);},
  35.     ready:function(eventObject:Object){trace(eventObject.type);},
  36.     resize:function(eventObject:Object){trace(eventObject.type);},
  37.     rewind:function(eventObject:Object){trace(eventObject.type);},
  38.     scrubFinish:function(eventObject:Object){trace(eventObject.type);},
  39.     scrubStart:function(eventObject:Object){trace(eventObject.type);},
  40.     seek:function(eventObject:Object){trace(eventObject.type);},
  41.     skinError:function(eventObject:Object){trace(eventObject.type);},
  42.     skinLoaded:function(eventObject:Object){trace(eventObject.type);},
  43.     stateChange:function(eventObject:Object){trace(eventObject.type);},
  44.     stopped:function(eventObject:Object){trace(eventObject.type);},
  45.     volumeUpdate:function(eventObject:Object){trace(eventObject.type);}
  46. }
  47. for(func in flvWatcher){
  48.     player.addEventListener(func, flvWatcher);
  49. }
  50. player.contentPath = "test.flv";



Code: [ Select ]
/* Order
stateChange
progress
resize
stateChange
buffering
ready
stateChange
playing
progress
playheadUpdate
progress
playheadUpdate
progress
progress
playheadUpdate
progress
playheadUpdate (multiple times for the length of the flv)
stateChange
stopped
playheadUpdate
complete
stateChange
playheadUpdate
stateChange
stopped
rewind
*/

// Code
var flvWatcher = {
    buffering:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    close:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    complete:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    cuePoint:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    fastForward:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    metadataRecieved:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    paused:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    playheadUpdate:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    playing:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    progress:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    ready:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    resize:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    rewind:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    scrubFinish:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    scrubStart:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    seek:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    skinError:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    skinLoaded:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    stateChange:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    stopped:function(eventObject:Object){_root.events += eventObject.type + "\n";},
    volumeUpdate:function(eventObject:Object){_root.events += eventObject.type + "\n";}
}
for(func in flvWatcher){
    player.addEventListener(func, flvWatcher);
}
player.contentPath = "test.flv";
  1. /* Order
  2. stateChange
  3. progress
  4. resize
  5. stateChange
  6. buffering
  7. ready
  8. stateChange
  9. playing
  10. progress
  11. playheadUpdate
  12. progress
  13. playheadUpdate
  14. progress
  15. progress
  16. playheadUpdate
  17. progress
  18. playheadUpdate (multiple times for the length of the flv)
  19. stateChange
  20. stopped
  21. playheadUpdate
  22. complete
  23. stateChange
  24. playheadUpdate
  25. stateChange
  26. stopped
  27. rewind
  28. */
  29. // Code
  30. var flvWatcher = {
  31.     buffering:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  32.     close:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  33.     complete:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  34.     cuePoint:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  35.     fastForward:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  36.     metadataRecieved:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  37.     paused:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  38.     playheadUpdate:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  39.     playing:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  40.     progress:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  41.     ready:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  42.     resize:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  43.     rewind:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  44.     scrubFinish:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  45.     scrubStart:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  46.     seek:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  47.     skinError:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  48.     skinLoaded:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  49.     stateChange:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  50.     stopped:function(eventObject:Object){_root.events += eventObject.type + "\n";},
  51.     volumeUpdate:function(eventObject:Object){_root.events += eventObject.type + "\n";}
  52. }
  53. for(func in flvWatcher){
  54.     player.addEventListener(func, flvWatcher);
  55. }
  56. player.contentPath = "test.flv";
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Thanks Joebert. Thats exactly what I needed. Although I suppose I could have done that if I'd thought about it. :-)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.