2
votes

From the player documentation: "When the player first loads a video, it will broadcast an unstarted (-1) event."

What's the intended use of this event? That is, what would my host code do differently, as a consequence of seeing it, than it would if the state didn't exist? The example code I've seen does nothing but log it.

2
In android device it throws unstarted and stays in that state itself it will not go to other state, Could you please suggest the solution for it, I am using javascript to autoplay the videoNagaraj

2 Answers

2
votes

I don't imagine that it's very useful. I don't think there's some deeper truth that you're missing out on. I assume it reflects a state that's mainly used internally by the player itself and it was exposed in the API for the sake of completeness.

1
votes

Might be a good way to detect if autoplay is enabled. I.e. "unstarted" would happen on platforms that don't support autoplay but was attempted, but "playing" would be the event for other systems.