mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro.local> Co-authored-by: Alex <111128610+Alexk2309@users.noreply.github.com> Co-authored-by: Simon-Eklundh <simon.eklundh@proton.me>
16 lines
362 B
TypeScript
16 lines
362 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 } })}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|