mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-10 17:43:35 +08:00
17 lines
580 B
TypeScript
17 lines
580 B
TypeScript
import type { AppDescriptor } from '../types';
|
|
import { VideoPlayerApp } from './VideoPlayer.tsx';
|
|
|
|
export const descriptor: AppDescriptor = {
|
|
key: 'video-player',
|
|
name: '视频播放器',
|
|
iconUrl: 'https://api.iconify.design/mdi:video.svg',
|
|
supported: (entry) => {
|
|
if (entry.is_dir) return false;
|
|
const ext = entry.name.split('.').pop()?.toLowerCase() || '';
|
|
return ['mp4','webm','ogg','m4v','mov','mkv','avi','wmv','flv','3gp'].includes(ext);
|
|
},
|
|
component: VideoPlayerApp,
|
|
default: true,
|
|
defaultBounds: { width: 960, height: 600, x: 180, y: 120 }
|
|
};
|