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

Video Player Controller network from 0.4.1 won't work #16584

Closed
vijaykanta opened this issue Apr 14, 2018 · 3 comments
Closed

Video Player Controller network from 0.4.1 won't work #16584

vijaykanta opened this issue Apr 14, 2018 · 3 comments

Comments

@vijaykanta
Copy link

I recently upgraded video player from default to 0.4.1 to allow VideoPlayerController.network() constructor to work out of the box. The sample code was straightly taken from the video player plugin website, where the URL is passed for streaming and it won't work. I see a dark box when I initiate playing.

Here's the log

V/MediaPlayer-JNI( 6863): native_setup
V/MediaPlayer( 6863): constructor
V/MediaPlayer( 6863): setListener
V/MediaPlayer( 6863): setVideoSurfaceTexture
V/MediaPlayer-JNI( 6863): setParameter: key 1400
V/MediaPlayer( 6863): MediaPlayer::setParameter(1400)
V/MediaPlayer-JNI( 6863): setAudioStreamType: 3
V/MediaPlayer( 6863): MediaPlayer::setAudioStreamType
V/MediaPlayer( 6863): setVideoSurfaceTexture
V/MediaPlayer( 6863): prepareAsync
D/MediaHTTPConnection( 6863): setReadTimeOut = 30000ms
D/MediaHTTPConnection( 6863): setReadTimeout with 30000ms
I/System.out( 6863): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out( 6863): (HTTPLog)-Static: isSBSettingEnabled false
W/MediaHTTPConnection( 6863): request failed with error => 0
D/MediaHTTPConnection( 6863): setReadTimeout with 30000ms
I/System.out( 6863): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out( 6863): (HTTPLog)-Static: isSBSettingEnabled false
W/MediaHTTPConnection( 6863): request failed with error => 0
V/MediaPlayer( 6863): message received msg=100, ext1=1, ext2=-1005
E/MediaPlayer( 6863): error (1, -1005)
V/MediaPlayer( 6863): callback application
V/MediaPlayer( 6863): back from callback
E/MediaPlayer( 6863): Error (1,-1005)

However the VideoPlayerController.asset() works flawlessly with physical video.

@vijaykanta
Copy link
Author

Bump. Can anyone find a solution for me here?

@vijaykanta
Copy link
Author

Ok guys, sorry, but the URL I was using to load off network was a dead link. I have used a different link and it works out of the box immediately. It's all in the game of patience and research. :D

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant