Announcement

Collapse
No announcement yet.

mp3 annoyance

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

  • mp3 annoyance

    I would very much appreciate a little help with an issue I'm having. If that help comes in the form of VERY simple english then all the better. If it comes in the form of something I can copy and paste then I'll be in heaven.

    I am not a genius but am finding my way around Autoplay quite well. I have created a little 7 page presentation and have it so that when the application loads up a rather nice 8 minute mp3 starts playing in the background. As I click through the pages all is well (its still playing) until I return to the first page, when the mp3 stops what its doing and starts again. Please can someone give me the lowdown on how to stop this. Basically I want to be able to return to the first page without the mp3 starting over again in the middle of itself.

    Thanks in anticipation
    Irrelevant

  • #2
    Re: mp3 annoyance

    It is found in other parts of the forum here.
    bascially you goto this

    Project settings>Actions>Load Mp3>Repeat>Play

    Know that it is project settings not the page settings.

    Comment


    • #3
      Re: mp3 annoyance

      Use this code to start your MP3. The problem is that when you go back to page 1, you are loading and playing the song again in your On Show or Initialize. By setting a variable to let you know if the MP3 is playing, you can skip that section of code with a simple IF statement.

      // If the MP3 is playing, skip the load and play
      IF (%MP3_IS_PLAYING% != "TRUE")
      MP3.Load ("%SrcDir%\MyMP3\MyFile.mp3")
      MP3.Play
      // Set to true when MP3 is playing
      %MP3_IS_PLAYING% = "TRUE"
      END IF


      <IR_ACTIONS_LIST>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>If the MP3 is playing, skip the load and play</Comment>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%MP3_IS_PLAYING% != "TRUE"</Condition>
      </Action>
      <Action name="Load">
      <Type>105</Type>
      <Function>0</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <MP3File>%SrcDir%\MyMP3\MyFile.mp3</MP3File>
      <External>1</External>
      </Action>
      <Action name="Play">
      <Type>106</Type>
      <Function>0</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>Set to true when MP3 is playing</Comment>
      </Action>
      <Action name="Set Value">
      <Type>6</Type>
      <Function>0</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Variable>%MP3_IS_PLAYING%</Variable>
      <Value>TRUE</Value>
      <Evaluate>0</Evaluate>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      </IR_ACTIONS_LIST>

      Comment


      • #4
        Re: mp3 annoyance

        Thankyou very much people [img]/ubbthreads/images/icons/smile.gif[/img]

        Comment

        Working...
        X