Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make JMF player plays sequence of videos automatic?  RSS feed

 
Eman Abdo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my Question, my program needs to run sequence of videos automatic one after the other directly. This is my program in more detailed:

I made a function that takes an ArrayList of String objects represent the videos' names. This ArrayList object will enter a function that is representing the related videos in the same order.
I made a loop loops as the number of videos. In each loop, I refreshed the values of url to take the new name of video and then the value of player.
then the player starts.
(also I declared a variable (event) of ControllerListener)

Until now every thing was good, the problem is :
How can I stop at this point until the video finishes?

To do that, I have used this way:

- suspendig loop : while(!(event enstanceof EndOfMediaEvent));

but the result is not as desired.



Is there any way to pass this problem ?
 
Eman Abdo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't there any idea ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!