Announcement

Collapse
No announcement yet.

Easy Newbie Question

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

  • #16
    Re: Easy Newbie Question

    I'm getting that media player in the wrong state at the end of the last video. Can't seem to figure out what is causing it.
    The way I thought of doing this works, but involves significantly more typing. This involves typing in the list of videos I want to play for each button to define %videos%. Works perfect, but it's alot more work with the number of videos I have. Your method would be much easier.

    Comment


    • #17
      Re: Easy Newbie Question

      Remember that a delimited list starts out at zero. So if you want to play 5 videos, the %LastVideo% would be set to 4

      0, 1, 2, 3, 4 = 5 videos

      Comment


      • #18
        Re: Easy Newbie Question

        Yeah, it also helps to define the 2 extra videos you added, into the %Videos% definition. DOH!
        Thanks for your patience. I think I now have all the tools to finish this project. I think...

        Comment


        • #19
          Re: Easy Newbie Question

          Probably wouldn't have taken so long if I'd have steered you in the right direction in the first place.

          G'Luck

          Comment


          • #20
            Re: Easy Newbie Question

            One more issue...the client wanted the ability to play the videos full screen. No problem, made a button with the set full screen property. What I want to do is at the end of one of the sequence of videos, have it automatically go back to windowed mode. I tried adding this statement to the current script we put in the endofstream after the endif-
            <IR_ACTIONS_LIST>
            <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>%Video% = %LastVideo%</Condition>
            </Action>
            <Action name="Set Full Screen">
            <Type>138</Type>
            <Function>0</Function>
            <DTIndentLevel>1</DTIndentLevel>
            <Enabled>1</Enabled>
            <ErrorHandling>
            <UserNotificationMode>2</UserNotificationMode>
            <CustomErrorMessage/>
            <OnErrorAction>0</OnErrorAction>
            <JumpToLabel/>
            </ErrorHandling>
            <ObjectName>MediaPlayer1</ObjectName>
            <FullScreen>False</FullScreen>
            </Action>
            </IR_ACTIONS_LIST>

            But for some reasonit runs at the end of each video.

            Comment


            • #21
              Re: Easy Newbie Question

              Ahh, my fault. It should have been
              %SelectedVideo% = %LastVideo%
              Now it works. Although it does momentarily go back to windowed mode while loading the next video. Any ideas?

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎