-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Catch up playback problem, questions #2760
Comments
Have you read the Javadoc for Timeline, Window and Period, and getCurrentPosition? They describe the model used in some detail: http://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer2/Timeline.html Please let us know whether you're able to answer your question, or whether you're still stuck. If still stuck, perhaps you could provide a concrete example of specific calls that are not working as you expect. |
I will try to explain what I need and the problems that I'm having with this special kind of content:
I have checked, during the playback, all the fields where I think I can get the value I need, but I can't find it. Only the duration is available for the Period and the Window
|
Hi, @ojw28 can you please provide some help with this issue (my previous post). BR, |
If you just want elapsed time, couldn't you just time this yourself at the application level? I don't think you need any player support to do this. |
Beyond that, it's hard to advise what to do without access to a test stream that's setup in the way you describe. |
Hi, @ojw28 What I need is to get the currentPosition in the interval (0, duration). That works perfectly with other contents. I'm getting the currentPosition within ExoplayerWrapper method: In my first post, you have an example of the manifest Thanks, |
It's unclear whether this:
and this:
are the same thing. They sound like different things to me, so it's still quite unclear what you're asking for. In the
Are you trying to get (1), but seeing that |
Hi @ojw28 Dont' know if there is a case in the TimeLine Javadoc that describes exactly what I'm trying to do. I will tray to explain more in detail and see if you have any suggestion.
Thanks, |
Ah, so the problem is that you have a VOD manifest that's actually just a static snapshot of a previously broadcast (and possibly still ongoing) live stream. The timestamps in the VOD manifest don't start at t=0 for this reason, but you want positions reported as though they do. Is that correct? Please provide working test content, and we'll take a look at figuring out how to do this. We're not going to investigate without. Thanks. |
Hi @ojw28, that's correct. I'm not doing that with ongoing assets, just with ended assets. BR, |
There were a few things wrong. Specifically the case in the ref'd issue. Also, the timeline was being marked as non-dynamic in the empty-but-live case (it should be marked dynamic as segments may be added later). Issue: #2760 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157103727
It's somewhat ambiguous from the SmoothStreaming specification exactly how this use case is supposed to work. That said, we were definitely doing some things wrong with the timeline construction. I've made some changes and now you should see the window position advancing from 0 as you expect. Please give it a try by using the latest from the |
@ojw28 Hi, BR, |
Nope, sorry. We're not going to cut a release just for this, so it'll be ready when it's ready. In the meantime you'll need to patch the change in locally if you want it. |
There were a few things wrong. Specifically the case in the ref'd issue. Also, the timeline was being marked as non-dynamic in the empty-but-live case (it should be marked dynamic as segments may be added later). Issue: #2760 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157103727
Exoplayer 2.2.0
Device: Nexus player
Android 7.1.1
I'm trying to play Smooth Streaming Rolling Buffer CatchUp (CDN buffer) assets with Exoplayer.
The time reference for the chanks is not starting at 0, as happens with VOD assets, but for example at 14931911990078373, see manifest example:
I'm having some problems in the Exoplayer wrapper, as it's expecting position received and passed to SimpleExoPlayer in the interval (0, duration), but for this asset it's in the interval (14931911990078373, 14931911990078373+duration), affected methods are:
My questions are:
The text was updated successfully, but these errors were encountered: