We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b4ec1c commit 4c4f982Copy full SHA for 4c4f982
src/DefaultPlayer/DefaultPlayer.js
@@ -128,7 +128,10 @@ export default videoConnect(
128
readyState,
129
networkState,
130
error: error || networkState === 3,
131
- loading: readyState < 4,
+ // TODO: This is not pretty. Doing device detection to remove
132
+ // spinner on iOS devices for a quick and dirty win. We should see if
133
+ // we can use the same readyState check safely across all browsers.
134
+ loading: readyState < (/iPad|iPhone|iPod/.test(navigator.userAgent) ? 1 : 4),
135
percentagePlayed: getPercentagePlayed(restState),
136
percentageBuffered: getPercentageBuffered(restState),
137
...restState
0 commit comments