User Tag List

Results 1 to 5 of 5

Thread: Youtube object Question

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    pdsoft's Avatar
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Youtube object Question

    The Youtube extension for flash is exactly what I need for a project Im working on, but I can't quite figure out how to implement the 'get video state' expression... Im still not experienced enough with mmf2, so maybe Im missing something here, I was hoping someone could help

    I want to run an event based on the loaded video's state.
    For example, if video state= ended, create a next button.

    Im a bit stumped because I need to create a condition but I have a 'get' expression to work with. How would I go about using the expression 'get video state' for this to function?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Get Video State returns the state of the player. Possible values are unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5).
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    pdsoft's Avatar
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick reply Stephen!

    Ah, so get video state will return a value. Ok that has put me a step closer to what Im trying to do.

    Still though, what I don't understand is the general method of how to retrieve that value.
    Basically, what Im asking is how/where do I put an expression like ''GetVideoState$( "YouTube", 1)'' so I can retrieve it's value for the condition Im trying to create (If video state=0)?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, I really should write some docs when I get some free time. I forgot to mention it should be a string. It should be like this: (Notice the "" around the id)

    Code:
    +GetVideoState$( "YouTube", "1") = "Ended"
    +Only once while event loops
         --Your code that happens when the video with id "1" has ended.
    If you need any other help, let me know.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    pdsoft's Avatar
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome, thank you for clarifying

Similar Threads

  1. YouTube Player using Web Object
    By Fernando in forum File Archive
    Replies: 2
    Last Post: 4th December 2013, 07:50 PM
  2. [Released] YouTube Object
    By Stephen in forum Beta Flash Extensions
    Replies: 27
    Last Post: 15th November 2011, 03:12 PM
  3. Click-able bracket image in flash, youtube object?
    By FlameEX in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 22nd August 2011, 01:56 AM
  4. YouTube Object
    By Stephen in forum SWF/Flash Extensions
    Replies: 0
    Last Post: 27th March 2011, 05:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •