abbasfreestyle/react-native-af-video-player

Is there anyway to get out full-screen when video finished?

thekubilay opened this issue · 0 comments

the video going full-screen with no problem but, video finishes it's not get out full screen I need to do it manually? is there any option for that?

import React, {Component} from 'react';

import {
    AppRegistry,
    Platform,
    StyleSheet,
    Text,
    View,
    ScrollView,
    TouchableOpacity,
    Button,

} from 'react-native';

import Video from 'react-native-af-video-player';

export default class App extends Component {
    

render() {

    const url = 'https://player.vimeo.com/external/207277102.hd.mp4?s=6939b93ae3554679b57f5e7fa831eef712a74b3c&profile_id=119&oauth2_token_id=57447761'
    const logo = 'https://your-url.com/logo.png'
    const placeholder = 'https://your-url.com/placeholder.png'
    const title = 'My video title'

        return (
            <View style={styles.container}>
                <Video url={url}
                       title={title}
                       logo={logo}
                       placeholder={placeholder}
                       fullScreenOnly
                />
                <ScrollView>
                    <Text>Some content here...</Text>
                </ScrollView>
            </View>
        )
    }
}

    const styles = StyleSheet.create({
        container: {
            marginTop:50,
            flex: 1,
            justifyContent: 'center'
        }
    });

AppRegistry.registerComponent('VideoExample', () => VideoExample);