mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-06 04:32:21 +00:00
16 lines
367 B
TypeScript
16 lines
367 B
TypeScript
import { MpvPlayerViewProps } from "./MpvPlayer.types";
|
|
|
|
export default function MpvPlayerView(props: MpvPlayerViewProps) {
|
|
const url = props.source?.url;
|
|
return (
|
|
<div>
|
|
<iframe
|
|
title='MPV Player'
|
|
style={{ flex: 1 }}
|
|
src={url}
|
|
onLoad={() => props.onLoad?.({ nativeEvent: { url: url ?? "" } })}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|