mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
* feat: implement native ARM64 Docker builds with CDN support - Replace QEMU emulation with native ARM64/AMD64 runners (linux-arm64-8-core, linux-x64-8-core) - Fix manifest creation with proper error handling and image existence checks - Add CDN video support with getVideoUrl function and Video component - Update all docs MDX files to use Video component instead of raw video tags - Update GitHub Actions workflow to use architecture-specific builds - Remove QEMU setup to eliminate emulation timeout issues - Maintain multi-arch Docker image support through manifests * Update .github/workflows/build.yml Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
31 lines
533 B
TypeScript
31 lines
533 B
TypeScript
import { getVideoUrl } from '@/lib/utils'
|
|
|
|
interface VideoProps {
|
|
src: string
|
|
className?: string
|
|
autoPlay?: boolean
|
|
loop?: boolean
|
|
muted?: boolean
|
|
playsInline?: boolean
|
|
}
|
|
|
|
export function Video({
|
|
src,
|
|
className = 'w-full -mb-2 rounded-lg',
|
|
autoPlay = true,
|
|
loop = true,
|
|
muted = true,
|
|
playsInline = true,
|
|
}: VideoProps) {
|
|
return (
|
|
<video
|
|
autoPlay={autoPlay}
|
|
loop={loop}
|
|
muted={muted}
|
|
playsInline={playsInline}
|
|
className={className}
|
|
src={getVideoUrl(src)}
|
|
/>
|
|
)
|
|
}
|