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

Identify .ts that is displaying at current time #287

Open
billyjoker opened this issue Mar 30, 2023 · 0 comments
Open

Identify .ts that is displaying at current time #287

billyjoker opened this issue Mar 30, 2023 · 0 comments

Comments

@billyjoker
Copy link

billyjoker commented Mar 30, 2023

I need to identify the filename of the .ts that is displaying at realtime the player, for check with the stored in the hls manifest. I've tried by using some method as follows, but this is just the ts read from the hls manifest onTimeLineChanged:


    @Override
    public void onTimelineChanged(Timeline timeline, int reason) {
    ....
        printSegmentChunks(((HlsManifest) manifest).mediaPlaylist.segments);
    ....
    private void printSegmentChunks(List<HlsMediaPlaylist.Segment> segments) {
        for (HlsMediaPlaylist.Segment segment : segments) {
            Log.i(TAG, "chunk "   segment.url);
        }
    }

So what I need exactly is to obtain the current displayed HlsMediaPlaylist.Segment object in realtime

Please could you assist to me ? Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants