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

EXO PLAYER not playing some HD IPTV channels. #4925

Closed
littlelitleStar opened this issue Oct 9, 2018 · 14 comments
Closed

EXO PLAYER not playing some HD IPTV channels. #4925

littlelitleStar opened this issue Oct 9, 2018 · 14 comments
Assignees

Comments

@littlelitleStar
Copy link

Hello everyone.

Im developing an app for IPTV, i have integrated EXO PLAYER , and its workin fine.
But i dont know why.

Some channels it doesnt play ( usually those in HD )

Does anyone HAD this problem and knows how to fix it ?

@littlelitleStar
Copy link
Author

how to implement (TSExtrator) to setup workaround flag in default constructor.
how to use FLAG_DETECT_ACCESS_UNITS and FLAG_ALLOW_NON_IDR_KEYFRAMES

@Danishbutt1122
Copy link

hello @psycomani i also developing iptv app, and channles working fine on mobile but the issue is when i run app in android box, its just buffering.
in FAQ they said to add FLAGS but i dont know how to add flags
here is my code , to play and build mediasources

`public void play(String url) {
    try {
        MediaSource mediaSource = buildMediaSource(Uri.parse(url));


        simpleExoPlayerView.setPlayer(player);


        player.prepare(mediaSource, true, false);
        player.setPlayWhenReady(true);
    } catch (Exception e) {

        Log.e("googo1", e.getMessage());
    }
}

private MediaSource buildMediaSource(Uri uri) {


   
    return new ExtractorMediaSource.Factory(
            new DefaultHttpDataSourceFactory(mHandler.userAgent)).
            createMediaSource(uri);
}`

@Danishbutt1122
Copy link

@ojw28 hello sir please slove that issue

@littlelitleStar

This comment has been minimized.

@tonihei
Copy link
Collaborator

tonihei commented Oct 11, 2018

In order to help you with that we need more information about the actual problem. Please provide example media, used devices, ExoPlayer version and a bugreport as requested in the issue template.

@tonihei tonihei self-assigned this Oct 11, 2018
@littlelitleStar
Copy link
Author

tonihei !

there is no info that i can give to you.
EXOPLAYER isnt playing some channels *mostly HD channels, I saw some problems like this and all answers were to add some FLAGS on EXO.

Flags are at this website https://google.github.io/ExoPlayer/faqs.html
on this section.
image

But the problem is that i dont know how to add them.
Do you know how to add these FLAGS on exo ?( FLAG_ALLOW_NON_IDR_KEYFRAMES and FLAG_DETECT_ACCESS_UNITS )

@tonihei
Copy link
Collaborator

tonihei commented Oct 12, 2018

As noted in the FAQ article you linked, you can use setTsExtractorFlags in the DefaultExtractorsFactory.
And you can set the extractors factory when creating your media source (e.g. with ExtractorMediaSource.Factory.setExtractorsFactory).

@littlelitleStar
Copy link
Author

Can we contact in any other ways ( whatsapp or anything else) ?
I really dont get how to put this.

@tonihei
Copy link
Collaborator

tonihei commented Oct 12, 2018

In your code above:

DefaultExtractorFactory extractorsFactory = new DefaultExtractorsFactory();
extractorsFactory.setTsExtractorFlags(/* your flags here */);
return new ExtractorMediaSource.Factory(
         new DefaultHttpDataSourceFactory(mHandler.userAgent))
     .setExtractorsFactory(extractorsFactory)
     .createMediaSource(uri);

@tonihei
Copy link
Collaborator

tonihei commented Oct 12, 2018

Unfortunately, we don't have time to debug your code. Please try to set the extractor flags as in my post above.

@littlelitleStar
Copy link
Author

oh., I thought you could do this.

@littlelitleStar
Copy link
Author

Does anyone else , can give some HELP ?

@littlelitleStar
Copy link
Author

Hello tonihei !!
I fixed that, i ADDED ALLOW_NON_IDR_FRAMES , AND its working.
but i have another problem.

It plays channels with PIXELS
image

Can we fix this ?

@tonihei
Copy link
Collaborator

tonihei commented Oct 15, 2018

Second question is tracked by #4951. Closing this issue because the first question was answered.

@tonihei tonihei closed this as completed Oct 15, 2018
ojw28 pushed a commit that referenced this issue Dec 18, 2018
Use random access indicator in transport streams

Issue:#1967
Issue:#2020
Issue:#2182
Issue:#2469
Issue:#2581
Issue:#2748
Issue:#2939
Issue:#2979
Issue:#3316
Issue:#3574
Issue:#3709
Issue:#3747
Issue:#4103
Issue:#4184
Issue:#4355
Issue:#4538
Issue:#4719
Issue:#4861
Issue:#4925
Issue:#4951
Issue:#5108
Issue:#5186
PiperOrigin-RevId: 225798044
ojw28 pushed a commit that referenced this issue Dec 19, 2018
Use random access indicator in transport streams

Issue:#1967
Issue:#2020
Issue:#2182
Issue:#2469
Issue:#2581
Issue:#2748
Issue:#2939
Issue:#2979
Issue:#3316
Issue:#3574
Issue:#3709
Issue:#3747
Issue:#4103
Issue:#4184
Issue:#4355
Issue:#4538
Issue:#4719
Issue:#4861
Issue:#4925
Issue:#4951
Issue:#5108
Issue:#5186
PiperOrigin-RevId: 225798044
@google google locked and limited conversation to collaborators May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants