fix hover-to-play: remove status filter so any asset triggers stream fetch
This commit is contained in:
parent
0aa0922fd3
commit
fa787bbe1e
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ function AssetCard({ asset, onOpen }) {
|
|||
const handleMouseEnter = function() {
|
||||
timerRef.current = setTimeout(function() {
|
||||
setHovered(true);
|
||||
if (!hoverStream && (asset.status === 'ready' || asset.status === 'live')) {
|
||||
if (!hoverStream) {
|
||||
window.ZAMPP_API.fetch('/assets/' + asset.id + '/stream')
|
||||
.then(function(r) { if (r && r.url) setHoverStream(r); })
|
||||
.catch(function() {});
|
||||
|
|
|
|||
Loading…
Reference in a new issue