修改视频问题
This commit is contained in:
parent
efb20500a7
commit
ecdff8aedb
|
@ -3,10 +3,13 @@
|
|||
@tailwind utilities;
|
||||
body {
|
||||
color: #fff;
|
||||
position: relative
|
||||
position: relative;
|
||||
touch-action:pan-y;
|
||||
overflow-y: scroll; /* 确保页面在缩放时仍能滚动 */
|
||||
/* padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom); */
|
||||
}
|
||||
|
||||
footer {
|
||||
/* Fallback for non-iOS devices */
|
||||
bottom: 0;
|
||||
|
|
|
@ -108,7 +108,7 @@ export default function RootLayout({ children }) {
|
|||
{/* <!-- 全屏设置 --> */}
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui,viewport-fit=cover"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0, user-scalable=no, minimal-ui,viewport-fit=cover"
|
||||
/>
|
||||
|
||||
<meta name="apple-touch-fullscreen" content="yes" />
|
||||
|
|
|
@ -58,7 +58,7 @@ export default function Banner() {
|
|||
// alert(encodeURIComponent(links[0]?.params));
|
||||
router.push(
|
||||
`/webView/${encodeURIComponent(
|
||||
links[0]?.params +
|
||||
links[0]?.url +
|
||||
(links[0]?.action === "webViewWithOutHeaderInward" ||
|
||||
links[0]?.action === "webViewHeaderInward"
|
||||
? `?base=${encodeURIComponent(JSON.stringify(base))}`
|
||||
|
|
|
@ -82,7 +82,7 @@ export default function HostList() {
|
|||
// alert(encodeURIComponent(links[0]?.params));
|
||||
router.push(
|
||||
`/webView/${encodeURIComponent(
|
||||
links[0]?.params +
|
||||
links[0]?.url +
|
||||
(links[0]?.action === "webViewWithOutHeaderInward" ||
|
||||
links[0]?.action === "webViewHeaderInward"
|
||||
? `?base=${encodeURIComponent(
|
||||
|
@ -117,7 +117,7 @@ export default function HostList() {
|
|||
<span className="text-base text-white font-medium whitespace-nowrap truncate max-w-[30%]">
|
||||
{item.title}
|
||||
</span>
|
||||
{!!item.age && (
|
||||
{item.mid > 0 && (
|
||||
<>
|
||||
<div className="flex flex-row items-center py-0.5 px-2 ml-1 bg-[#FFFFFF1A] rounded-full">
|
||||
{item?.gender === 1 ? (
|
||||
|
|
|
@ -86,7 +86,8 @@ export const handleShowVideo = (video) => {
|
|||
width="100%"
|
||||
height="100%"
|
||||
controls
|
||||
autoPlay
|
||||
playsinline={true}
|
||||
playsInline
|
||||
controlsList="nodownload noplaybackrate noremoteplayback toggleaudio"
|
||||
muted={true}
|
||||
className={`w-full object-contain`}
|
||||
|
@ -95,7 +96,7 @@ export const handleShowVideo = (video) => {
|
|||
// onTouchStart={(e) => e.preventDefault()}
|
||||
onContextMenu={(e) => e.preventDefault()}
|
||||
// onTouchEnd={(e) => e.preventDefault()}
|
||||
// autoPlay={true}
|
||||
autoPlay={true}
|
||||
>
|
||||
<source src={video.mp4} type="video/mp4" />
|
||||
您的浏览器不支持 Video 标签。
|
||||
|
|
Loading…
Reference in New Issue