The Media Source Extensions spec is already assuming it can do this:
interface MediaSource {
...
enum State { "closed", "open", "ended" };
readonly attribute State readyState;
...
};
The question then is whether you should be allowed to refer to MediaSource::State from some other interface.