Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3677

Why isn’t this working?

$
0
0

Hi again.

Ok, this is confusing me.

First, the code:

for numberOfVideos = 0 to screenSaveMovieListWindow.ListBox1.RowCount -1
  
  f = New FolderItem(Listbox1.CellTextAt(numberOfVideos,0))
  
  If f <> Nil Then
    movieWindowForPlaying.MoviePlayer1.Movie = Movie.Open(f)
    movieWindowForPlaying.MoviePlayer1.Volume = app.moviePlayerVolume
    movieWindowForPlaying.MoviePlayer1.Play
    
  else
    
  end if
  
next numberOfVideos

What I want the code to do is get a list of the videos that are desired to be played. When I check, it sees all of the videos, with the full names and paths.

So far, so good.

Doing a debug, I see that the file exists, that the player indeed has the right file, but instead of playing that video and proceeding to the next, it falls through to each video until it gets to the end and only plays that one.

What am I not seeing?

Also, as a little side note, when I look at the movie Duration sometimes I see NaN. What is that?

Regards

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3677

Trending Articles