MCPcopy
hub / github.com/surmon-china/videojs-player / updateState

Function updateState

player/state.ts:168–171  ·  view source on GitHub ↗
(key: keyof PlayerState, value: any)

Source from the content-addressed store, hash-verified

166
167 // update state
168 const updateState = (key: keyof PlayerState, value: any) => {
169 state[key] = value as never
170 options.onUpdate(key, value, { ...state })
171 }
172
173 // playing state https://github.com/videojs/video.js/issues/181
174 // un-loop: play > playing > pause > ended

Callers 2

createPlayerStateFunction · 0.85
timeUpdateListenerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected