Media player Playlist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • vxr666
    Forum Member
    • Dec 2002
    • 6

    Media player Playlist

    i am facing a problem i made a play list but the media player object is in a separate page than the playlist page i tried to use a global = a variable but it gives me an error message which says something about number

    how do i have the playlist play the file names in the global list randomly


    my other question is it possible to have ams auto play audio CDs in either Mp3 player or Media player

    Thank you
  • Corey
    Indigo Rose Staff Alumni
    • Aug 2002
    • 9745

    #2
    Re: Media player Playlist


    i made a play list
    An .m3u playlist? or a global list of filenames? Global lists are global and can be accessed fro any page...


    it gives me an error message which says something about number
    Please be more specific...

    As to the random thing I'll have to know more about your list, what type of list is it and what format did you use to add info to it? i.e. what does your list look like?

    As to your other question, you can have AutoPlay Media Studio play audio in any way that the host system is capable of, so if their system is configured to play audio CDs via both their MP3 and Windows Media players then you can easily do that via AutoPlay Media Studio.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment

    • vxr666
      Forum Member
      • Dec 2002
      • 6

      #3
      Re: Media player Playlist

      for the play list Box

      <IR_ACTIONS_LIST>
      <Action name="Get Selected">
      <Type>126</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <TargetListBox>VideoListBox</TargetListBox>
      <Variable>%VListBox%</Variable>
      <VariableDelimiter>,</VariableDelimiter>
      </Action>
      <Action name="Get Item Data">
      <Type>121</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <TargetListBox>VideoListBox</TargetListBox>
      <Index>%SelectedIndex%</Index>
      <Variable>%VideoItemData%</Variable>
      </Action>
      <Action name="Write">
      <Type>32</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <FileName>c:\video\VPlaylist.txt</FileName>
      <DataToWrite>%VideoDataItem%</DataToWrite>
      <IfFileExists>0</IfFileExists>
      </Action>
      <Action name="Read">
      <Type>31</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Variable>%TextFile%</Variable>
      <FileName>c:\video\Vplaylist.txt</FileName>
      </Action>
      <Action name="Add">
      <Type>111</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <TargetList>VGlobal</TargetList>
      <AddType>0</AddType>
      <Index/>
      <Text>%TextFile%</Text>
      <Delimiter>,</Delimiter>
      </Action>
      <Action name="Jump">
      <Type>1</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <PageName>VideoPlayer</PageName>
      </Action>
      </IR_ACTIONS_LIST>

      the playlist page on show

      <IR_ACTIONS_LIST>
      <Action name="Search">
      <Type>18</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Variable>%Files%</Variable>
      <Delimiter>,</Delimiter>
      <FileName>*.*</FileName>
      <LocalFixedDrives>0</LocalFixedDrives>
      <RemoteDrives>0</RemoteDrives>
      <RemovableDrives>0</RemovableDrives>
      <CDROMDrives>0</CDROMDrives>
      <SpecificDirectoriesDrives>1</SpecificDirectoriesDrives>
      <CustomDirectoriesDrives>c:\video</CustomDirectoriesDrives>
      <RecurseCustom>0</RecurseCustom>
      <DialogTitle>Searching for Files</DialogTitle>
      <DialogText>Searching for files. This may take a few moments.</DialogText>
      <ShowDialog>0</ShowDialog>
      </Action>
      <Action name="Add Files">
      <Type>119</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <TargetListBox>VideoListBox</TargetListBox>
      <AddType>1</AddType>
      <Index/>
      <ItemToAdd>%Files%</ItemToAdd>
      <ItemDelimiter>,</ItemDelimiter>
      <InformationToDisplay>2</InformationToDisplay>
      <ShowFileExtension>0</ShowFileExtension>
      </Action>
      </IR_ACTIONS_LIST>


      this is what i have as the play list when i preveiw the projest and choos a file from the list box it gives me this error

      could not get the items data from list box object a malformed numeric index was passedin. index is not numeric %selectedindex%


      2- for the random bit
      i have a different playlist for the MP3 files the file names are saved in a txt file then this text file is loaded to a global list which loads the mp3s one after the other. what i want is not to have the same files play in the order every time i want them to play randomly

      3- i didnt understand what you mean.
      i want to know if i can with only ams and its inbuilt plays load and play an audio cd if it is inserted in the cd rom if yes then how... i dont want winamp or windows media player to load i want either the ams mp3 or ams media player to play the cd


      Thank you

      Comment

      • Corey
        Indigo Rose Staff Alumni
        • Aug 2002
        • 9745

        #4
        Re: Media player Playlist

        About the error, I would suggest inserting a few dialogs to display your variable contents during various stages of the process so you can track the problem to it's source. You should be able to locate your error that way then correcting it will be a simple matter. WHo knows, maybe someone else here has the time to do that for you, keeps your eyes on this thread...

        As to the random thing an easy fix would be to name your MP3 files numerically (true name is still in ID3) and using a variable set random value action, call them randomly. You can add each number to a "played" list as you go along and use an IF conditional to make sure you aren't repeating MP3 from the list.

        As to the last question, you can't do anything which the host system cannot do on it's own. The media player in AMS is the same as the one on the host's system. I don't see any way to control an audio CD via the internal MP3 player in AMS but if the host system is configured to then you can do that easily though it's default MP3 player via your AMS application.

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment

        Working...
        X