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

Exoplayer simulation #3810

Closed
themavencoder opened this issue Feb 6, 2018 · 4 comments
Closed

Exoplayer simulation #3810

themavencoder opened this issue Feb 6, 2018 · 4 comments
Assignees
Labels

Comments

@themavencoder
Copy link

themavencoder commented Feb 6, 2018

[No content]

@themavencoder
Copy link
Author

Is it possible to simulate the exoplayer using Average speed and slow speed. Find the following for high, average and low speed consecutively:

  1. End to end delay
  2. Startup delay
  3. Playback continuity.

Simulate for high speed and sudden drop to average speed.
Simulate for average speed and sudden drop to low speed

@themavencoder
Copy link
Author

Is it possible to calculate end to end delay, startup delay and playback continuity on exoplayer simulating both high speed, low speed and average speed?

@tonihei
Copy link
Collaborator

tonihei commented Feb 7, 2018

I think there are a couple of questions in here:

Is it possible to "simulate" playback?
Depends on what kind of simulation you think of. We have a lot of fake classes which can replace almost every part of the real playback. Please have a look into the testutils project. Some examples on how to use them can be found here.
Be aware that these fake classes were designed to facilitate these tests and may not fully represent all the functionality you may want to simulate.

Can we simulate high, average, or low speed?
I assume you mean speed (i.e. bandwidth) of the network. You can simulate artificial data loads by using a custom DataSource implementation which lets the current thread sleep whenever we try to read something to simulate the time needed to load the data. How long you let the thread sleep can then be determined by how "fast" your network is supposed to be.

Can you measure "end to end delay", "startup delay", and "playback continuity"?
I'm not really sure what these values should measure exactly. But in any case, you can listen to the events in the event listener and create whatever metrics you like to measure. We are currrently also working on an Analytics extension to make detailed analytics of playbacks simpler and easier to use. So this part will probably get easier in the future.

@tonihei tonihei self-assigned this Feb 7, 2018
@ojw28 ojw28 added the question label Feb 12, 2018
@tonihei
Copy link
Collaborator

tonihei commented Mar 1, 2018

Closing due to inactivity.

@tonihei tonihei closed this as completed Mar 1, 2018
@google google locked and limited conversation to collaborators Aug 10, 2018
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