Announcement

Collapse
No announcement yet.

MP3 Object - Seek error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MP3 Object - Seek error

    I have placed several buttons on a page with simple code.
    MP3.Load (%MySong.mp3%)
    MP3.Play
    Works fine, but on button 3 the code is:
    MP3.Load (%MySong.mp3%)
    MP3.Seek(15)
    MP3.Play
    If the first button I click is number 3 then I generate an error Seek is too large for MP3.
    However if I click and begin playing any other song then click button 3 it works.

    Im confused, help?

  • #2
    Re: MP3 Object - Seek error

    It might be that your mp3 has not loaded fully before you try to seek. If you put a sleep 1 after the MP3.load action and then seek see if that helps.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment


    • #3
      Thanks

      Thanks, the sleep command seems to have done the trick.

      Comment


      • #4
        If i were you, I'd give it a 2 second sleep to assure it works on slower systems as well. :

        -Adam

        Comment


        • #5
          I agree

          It just so happens that was exactly what I did, used a 2 second delay. Have not gotten the error again.

          Thanks

          Comment


          • #6
            I wish my brain had a 2 second sleep function. I could nap during page loads and accumulate massive amounts of sleep daily.

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Corey you just need a self bobbler to pause for those times. Variable delay bobbler would be good.
              TJ-Tigger
              "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
              "Draco dormiens nunquam titillandus."
              Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

              Comment


              • #8
                Yeah sure a good old VDB, why didn't I think of that? I'll be like one of those wine cup dipping birds. Ploonk, type-type-type, Ploonk, type-type-type...

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment

                Working...
                X