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

Slow Start Video Play (Firebase) #6484

Closed
lucazin opened this issue Sep 28, 2019 · 16 comments
Closed

Slow Start Video Play (Firebase) #6484

lucazin opened this issue Sep 28, 2019 · 16 comments
Assignees
Labels

Comments

@lucazin
Copy link

lucazin commented Sep 28, 2019

[REQUIRED] Searched documentation and issues

I searched in a lot of sites and stackoverflow, but i didnt find much thing about..
is always de same about buffering e e some changes in these values.

[REQUIRED] Question

First sorry for my english...
My question is.. i have some videos in firebase storage provided by google..and i have good internet connection so
i have a url and exoplayer is playing normal the video.
But its take too long to start the video..almost 4 seconds and the video is small ..just 1.40 MB
and 15 seconds...

Its normal?

Im using this config

//Minimum Video you want to buffer while Playing
public static final int MIN_BUFFER_DURATION = 15000;
//Max Video you want to buffer during PlayBack
public static final int MAX_BUFFER_DURATION = 60000;
//Min Video you want to buffer before start Playing it
public static final int MIN_PLAYBACK_START_BUFFER = 2500;
//Min video You want to buffer when user resumes video
public static final int MIN_PLAYBACK_RESUME_BUFFER = 15000;

I just want my video start fast... not super fast ..but 4 seconds buffering all videos is
really boring..

@kim-vde
Copy link
Contributor

kim-vde commented Sep 30, 2019

Have you tried decreasing the MIN_PLAYBACK_START_BUFFER? What is the format of the files you are playing?

@lucazin
Copy link
Author

lucazin commented Sep 30, 2019 via email

@lucazin
Copy link
Author

lucazin commented Sep 30, 2019 via email

@lucazin
Copy link
Author

lucazin commented Oct 1, 2019 via email

@kim-vde
Copy link
Contributor

kim-vde commented Oct 2, 2019

I don't have enough information at the moment to investigate this issue. You should try to determine if it comes from the server or from Exoplayer first.

@lucazin
Copy link
Author

lucazin commented Oct 2, 2019

but the server is google cloud plataform.. the latency is low .. do you want some video url ?

but tell me..its a normal behavior wait 4 seconds to start a video? even if as 12 seconds?
my network is good no problem with that..

im a bit confused now.
You said enough information,, what kind information u need? Because so real this.. if a put the video in google cloud or amazon s3.. take 3 seconds each video..

imagine a list of videos in recycleview or viewpager.. imagine scrolling waiting 4 seconds.. and watch... scrolling...waiting 4 seconds and watch ...

i dont want to cache all videos in phone storage for watch...its not a point because
some users not have enough space...

My expected behavior is for sure .load first seconds in the video and play streaming and loading the rest of video ... normal behavior for exoplayer right ?

thanks for you attention

@google google deleted a comment from google-oss-bot Oct 2, 2019
@kim-vde
Copy link
Contributor

kim-vde commented Oct 3, 2019

You should first try to determine if it is an ExoPlayer issue and why/where it occurs more specifically. You could for example check how much time the server takes to respond to the ExoPlayer requests. You could also clone the Exoplayer project and add logs to see which component is time consuming.

but the server is google cloud plataform.. the latency is low .. do you want some video url ?

You can share some urls. I will check if the video takes time to start for me as well. If you're unable to share test content publicly, please send them to dev.exoplayer@gmail.com using a subject in the format "Issue #1234", where "#1234" should be replaced with your issue number. Please also update this issue to indicate you’ve done this.

but tell me..its a normal behavior wait 4 seconds to start a video? even if as 12 seconds?

I agree it is quite slow.

You said enough information,, what kind information u need? Because so real this.. if a put the video in google cloud or amazon s3.. take 3 seconds each video..

Are you saying that, if you put your video in another server, it is still taking several seconds to start? Is it any faster or slower in that case?

My expected behavior is for sure .load first seconds in the video and play streaming and loading the rest of video ... normal behavior for exoplayer right ?

Indeed.

@lucazin
Copy link
Author

lucazin commented Oct 3, 2019 via email

@kim-vde
Copy link
Contributor

kim-vde commented Oct 3, 2019

It is sent to the members of the ExoPlayer team.

@lucazin
Copy link
Author

lucazin commented Oct 3, 2019 via email

@lucazin
Copy link
Author

lucazin commented Oct 4, 2019 via email

@kim-vde
Copy link
Contributor

kim-vde commented Oct 4, 2019

I don't think the issue is in ExoPlayer.

Indeed, if you download the video file, push it to the device (e.g. adb push <your file>.mp4 /sdcard) and read it from there (e.g. using uri /sdcard/<your file>.mp4in the demo app), the video starts much faster.

It is probably not due to your Internet connection either because the video is slow to start for me as well (about 2 to 4 seconds).

I would try to find out how much time the server takes to answer the requests from ExoPlayer.

@lucazin
Copy link
Author

lucazin commented Oct 4, 2019 via email

@kim-vde
Copy link
Contributor

kim-vde commented Oct 7, 2019

I don't have enough information at the moment to investigate this issue. It is unclear whether anything is wrong. I need evidence that there is an issue and that it is linked to ExoPlayer.

@lucazin
Copy link
Author

lucazin commented Oct 7, 2019 via email

@kim-vde
Copy link
Contributor

kim-vde commented Oct 9, 2019

We have mp4 samples in the demo app that are on Google Cloud Storage and start playing after 1 or 2 seconds (e.g. Misc > Screens 1080p video (FMP4,H264)). You should try putting your sample there to see if it improves the start time. Please note that an unoptimized configuration of the server (e.g. geographic region) could be the cause of a slow response.

I will close the issue because we don't have the resources to debug it without any evidence that it is linked to ExoPlayer. Feel free to come back to us once you have more information.

@google google locked and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants