A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: pause = 'true' with xml for mediaplayer not working

  1. #1
    Senior Member
    Join Date
    Dec 2010
    Posts
    111

    Question pause = 'true' with xml for mediaplayer not working

    Is this a bug?

    I am using the set external playlist command. However it will not start paused.

    It plays each time.

    I am using both the parameter in the xml file 'pause = true' and also in the mediaplayer properties in koolmoves.

    this is my code:

    ---------------AS3------------

    mp.setExternalXMLPlaylist(new URLRequest('mp.xml'));
    stop();




    ---------------XML--------------

    <?xml version="1.0" encoding="utf-8"?>
    <playlist start="0" pause="true" repeat="true" shuffle="false">
    <item label="Grapevine Fires">
    <audio src="./mp3/test1.mp3" />
    </item>
    <item label="Kiss And Say Goodbye">
    <audio src="./mp3/test3.mp3" />
    </item>
    </playlist>


    -------------------------------


    Files:

    http://rapidshare.com/files/43990822...alplaylist.zip


    why does it not work? A bug?


    cheers

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Wilbert is sick so lets wait a few days until he feels better. He probably is best suited to determine if this is a bug.

  3. #3
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    It's not a bug. It's explained in the docs.
    pause can be "init", "before", "after" or "false". When omitted pause is "false".

  4. #4
    Senior Member
    Join Date
    Dec 2010
    Posts
    111

    Question

    Thanks Wil.


    I however looked through the docs and I cannot see where it is mentioned.

    I did a search for the word 'pause' in the help file, came up with nothing.

    I did a search for the word 'pause' in the 'mediaplayer api.txt' and it did not show what you mentioned.

    It says this: "paused : when set to true, the player starts in paused mode."

    I also searched the manual pdf.

    Where is it mentioned exactly?

    cheers

  5. #5
    Senior Member
    Join Date
    Dec 2010
    Posts
    111
    I also cannot set the 'repeat' = false

    it does not work either

    cheers

  6. #6
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    You have to open the KoolMoves AS3 API documentation and look at the MediaPlayer class. Just below the setExternalXMLPlaylist method, there's an example of a playlist file that mentions the options.

  7. #7
    Senior Member
    Join Date
    Dec 2010
    Posts
    111
    Not in this API (see attachment)


    AHA!!!

    but I think I just found the documentation you mean.

    Here:

    C:\Program Files\KoolMoves\Bin\AS3\Documentation\km\Index.htm l


    Why is the documentation in such an obscure place?

    Anyway thanks for your help.
    Attached Files Attached Files

  8. #8
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    The one you found is the right one. You can also bring it up by clicking a button in the actionscript editor windows.
    The other file (the one you attached) is for the AS1 based media player.

  9. #9
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    I bookmarked it in my browser so it's easy to find. In the software you can't keep it open while editing code.

Tags for this Thread

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center