|
@@ -69,12 +69,23 @@ function PanoVideo({ lodingOk }: Propr) {
|
|
poster: otherUrl + 'pano/pano1.jpg'
|
|
poster: otherUrl + 'pano/pano1.jpg'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ res: '2000x1000',
|
|
|
|
+ url: otherUrl + 'pano/1-2k.mp4',
|
|
|
|
+ poster: otherUrl + 'pano/pano1.jpg'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
res: '4000x2000',
|
|
res: '4000x2000',
|
|
url: otherUrl + 'pano/1-4k.mp4',
|
|
url: otherUrl + 'pano/1-4k.mp4',
|
|
poster: otherUrl + 'pano/pano1.jpg'
|
|
poster: otherUrl + 'pano/pano1.jpg'
|
|
}
|
|
}
|
|
]}
|
|
]}
|
|
- playRes={isMobile ? '4000x2000' : '8000x4000'}
|
|
|
|
|
|
+ playRes={
|
|
|
|
+ isMobile
|
|
|
|
+ ? window.innerHeight * window.devicePixelRatio > 2400
|
|
|
|
+ ? '4000x2000'
|
|
|
|
+ : '2000x1000'
|
|
|
|
+ : '8000x4000'
|
|
|
|
+ }
|
|
onVisibility={() => {
|
|
onVisibility={() => {
|
|
if (document.visibilityState === 'visible') {
|
|
if (document.visibilityState === 'visible') {
|
|
videoSceneModel.play()
|
|
videoSceneModel.play()
|