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} onError={onError}
allowsFullscreenVideo allowsFullscreenVideo
scrollEnabled={false} scrollEnabled={false}
automaticallyAdjustContentInsets height={200}
source={{ source={{
html: ` uri: `https://player.vimeo.com/video/${videoId}?h=489fff465c`,
<html> headers: {"Referer":"https://social.emmint.com"}
<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>
`,
}} }}
/> />
); );