Skip to main content

What state does Player go to after stop() function?

1 reply [Last post]
vinaykagarwal
Offline
Joined: 2006-01-14

The player has the following states
Prefetched, Prefetching, Realized, Realizing, Started, Unrealized
Which of these states does the player go to after stop() function is complete on the player? Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
szmarine
Offline
Joined: 2008-06-13

I think it should be prefetched state in most cases. While in some of the implementation, I guess a call to stop() may cause the player release scare resource like HVideoDevice, and further back to the realized state.

One thing need to be mentioned is that stop() is a synchronized method, which means you don't have to check the player state to make sure player stops. Once stop() gets called and returned, the player stopped.