Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUESTION #30

Closed
tommasoverola opened this issue Nov 27, 2018 · 2 comments
Closed

QUESTION #30

tommasoverola opened this issue Nov 27, 2018 · 2 comments

Comments

@tommasoverola
Copy link

It is possible modify getErrorView in playerViewByMethod/index.js without modify your code ?

Because i need to show some error in english.

Thanks in advance.

@xuyuanzhou
Copy link
Owner

use react-native-yz-vlcplayer@1.1.1-beta6

<VlcSimplePlayer
                endingViewText={{
                    endingText: '视频播放结束',
                    reloadBtnText: 'reopen,
                    nextBtnText: 'next'
                }}
                errorViewText={{
                    errorText: 'error',
                    reloadBtnText: 'reload',
                }}
                vipEndViewText={{
                    vipEndText: '试看结束',
                    boughtBtnText: '请购买后观看立即购买',
                }}
                autoplay={false}
                url='rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov'
                initType={2}
                hwDecoderEnabled={1}
                hwDecoderForced={0}
                initOptions={[
                    "--rtsp-tcp",
                    "--network-caching=" + 150,
                    "--rtsp-caching=" + 150,
                    "--no-stats",
                    "--tcp-caching=" + 150,
                    "--realrtsp-caching=" + 150,
                ]}
            />

@tommasoverola
Copy link
Author

Work great, thanks a lot :).
One thing

here you missed:
reloadBtnText: 'reopen',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants