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

Determination between Live and VOD #2320

Closed
ChernyshovYuriy opened this issue Jan 12, 2017 · 2 comments
Closed

Determination between Live and VOD #2320

ChernyshovYuriy opened this issue Jan 12, 2017 · 2 comments
Labels

Comments

@ChernyshovYuriy
Copy link

Hi team,

While new feature is very cool, many applications depends on previous behaviour, when duration of Live stream is some kind of not in normal range, for instance -1.
Now, with this feature when user can seek within Live stream, what is a way to get know that stream is Live. We can not relay on -1 (or whatever value is) anymore.
Our Library has 3 different types of players and they manageable by common interface.
Now, it is inconsistence in behaviour from ExoPlayer side.
The question is - is there any way that ExoPlayer can notify that stream is Live?

@ojw28 ojw28 added the question label Jan 12, 2017
@ojw28
Copy link
Contributor

ojw28 commented Jan 12, 2017

You can query this information from the player's timeline. The demo application does this here. Static means VOD. Dynamic means Live.

We should probably add an ExoPlayer.isDynamic method for convenience, so you don't have to query the timeline directly. I'll do this.

@ChernyshovYuriy
Copy link
Author

Thanks guys for the support.

@ojw28 ojw28 closed this as completed Jan 13, 2017
ojw28 added a commit that referenced this issue Jan 13, 2017
- Support querying whether the current window is dynamic
  and seekable. The new methods are similar to getDuration,
  which is also a convenience method for the current window.
- Improve demo app to restore positions in VOD items within
  playlists where the last item is live. Also restore the
  position within the window for live items unless the player
  failed with BehindLiveWindowException.

Issue: #2320

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=144443898
@google google locked and limited conversation to collaborators Jun 28, 2017
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

2 participants