@prozilla-os/media-viewer
About
@prozilla-os/media-viewer
is a ProzillaOS application for viewing different kinds of media.
Installation
@prozilla-os/core
is required to run this application.
sh
npm install @prozilla-os/core @prozilla-os/media-viewer
yarn add @prozilla-os/core @prozilla-os/media-viewer
pnpm add @prozilla-os/core @prozilla-os/media-viewer
Usage
Basic setup
tsx
import { Desktop, ModalsView, ProzillaOS, Taskbar, WindowsView, AppsConfig } from "@prozilla-os/core";
import { mediaViewer } from "@prozilla-os/media-viewer";
function App() {
return (
<ProzillaOS
systemName="Example"
tagLine="Powered by ProzillaOS"
config={{
apps: new AppsConfig({
apps: [ mediaViewer ]
})
}}
>
<Taskbar/>
<WindowsView/>
<ModalsView/>
<Desktop/>
</ProzillaOS>
);
}
Window options
tsx
/**
* A virtual file containing media to open
*/
file: VirtualFile;