Floating video
This commit is contained in:
@@ -5,6 +5,7 @@ import API from './../API.js';
|
||||
import VideoPlayer from './VideoPlayer.js';
|
||||
import VimeoPlayer from './VimeoPlayer.js';
|
||||
import { WebView } from 'react-native-webview';
|
||||
import GlobalState from '../contexts/GlobalState.js';
|
||||
|
||||
const videoIdF = (content) => {
|
||||
let vimeoTag = content.match(/@vimeo:[0-9]+/);
|
||||
@@ -89,7 +90,10 @@ let Media = (props) => {
|
||||
const video2 = hlsUrl ? (
|
||||
loaded ?
|
||||
<VideoPlayer videoUrl={hlsUrl} postId={props.postId} /> :
|
||||
<TouchableHighlight onPress={() => setLoaded(true)}>
|
||||
<TouchableHighlight onPress={() => {
|
||||
//setLoaded(true)
|
||||
GlobalState.currentMedia = hlsUrl;
|
||||
}}>
|
||||
{poster ?
|
||||
<Image source={poster ? { uri: poster } : {}} key={poster} style={styles.poster} /> :
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user