Slightly better video player

This commit is contained in:
aeroreyna
2022-03-08 21:54:40 -08:00
parent 9d464e45bc
commit 0ebe199c23

View File

@@ -9,16 +9,10 @@ const VimeoPlayer = ({ videoId, onError }) => {
onError={onError}
allowsFullscreenVideo
scrollEnabled={false}
automaticallyAdjustContentInsets
height={200}
source={{
html: `
<html>
<body>
<iframe src="https://player.vimeo.com/video/${videoId}" width="100%" height="200px" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<script src="https://player.vimeo.com/api/player.js"></script>
</body>
</html>
`,
uri: `https://player.vimeo.com/video/${videoId}?h=489fff465c`,
headers: {"Referer":"https://social.emmint.com"}
}}
/>
);