lbry-desktop/ui/component/viewers
infinite-persistence 05383701af Restore video loading circle
## Issue
5554: Video: loading circle sometimes does not appear until 2nd click

## What's happening
videojs behavior:
(a) A `src` change makes the Play button re-appear.
(b) An `onPlay` (or `play()`) makes the button go away.

Due to the `m3u8` header async fetch (i.e. return is potentially delayed), the initial `onPlay` (which cleared the button) that happened after user clicked Play gets negated by a potentially-delayed `src` change.

# Changes
- Manually hide the play button that is induced by the change in `src`. In the fetch-delay scenario mentioned above, the player continues to be in a 'playing' state anyway.
- But don't hide the button if paused externally (e.g. browser-level)
Restore video loading circle
2021-03-08 13:28:25 -05:00
..
appViewer semi-broken 2020-04-29 11:00:42 -04:00
threeViewer Fix and enable 3D viewer: #4035 2020-04-27 14:27:04 -04:00
videoViewer Restore video loading circle 2021-03-08 13:28:25 -05:00
codeViewer.jsx Remove alert 2020-02-07 09:21:28 -05:00
comicBookViewer.jsx fix comic-book content-type detection 2020-05-13 10:18:36 -04:00
documentViewer.jsx refactor floatingUri to allow inline players in comments/markdown 2020-10-21 15:29:29 -04:00
docxViewer.jsx semi-broken 2020-04-29 11:00:42 -04:00
htmlViewer.jsx semi-broken 2020-04-29 11:00:42 -04:00
imageViewer.jsx Open ZoomableImage viewer when clicking on the image 2021-02-19 14:05:51 -05:00
pdfViewer.jsx semi-broken 2020-04-29 11:00:42 -04:00