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

seekTo is not working with SimpleExoPlayer #2061

Closed
jdprajapati opened this issue Nov 11, 2016 · 6 comments
Closed

seekTo is not working with SimpleExoPlayer #2061

jdprajapati opened this issue Nov 11, 2016 · 6 comments

Comments

@jdprajapati
Copy link

Hi,

MediaSource[] mediaSources = new MediaSource[3];
mediaSources[0] = buildMediaSource(Uri.parse(PlayUrl), null);
mediaSources[1] = buildMediaSource(Uri.parse(PlayUrl1), null);
mediaSources[2] = buildMediaSource(Uri.parse(PlayUrl2), null);

ConcatenatingMediaSource concatenatedSource =
new ConcatenatingMediaSource(mediaSources[0], mediaSources[1], mediaSources[2]);

player.seekTo(0, 30000);
or
player.seekTo(30000);

It will start from begining not the seek time.

Can you please help me for this problem.

Thanks in advance.

Please search the existing issues before filing a new one, including issues that
are closed. When filing a new issue please include all of the following, unless
you're certain that they're not useful for the particular issue being reported.

  • A description of the issue.
  • Steps describing how the issue can be reproduced, ideally in the ExoPlayer
    demo app.
  • A link to content that reproduces the issue. If you don't wish to post it
    publicly, please submit the issue, then email the link to
    [email protected] including the issue number in the subject line.
  • The version of ExoPlayer being used.
  • The device(s) and version(s) of Android on which the issue can be reproduced,
    and how easily it reproduces. If possible, please test on multiple devices and
    Android versions.
  • A bug report taken from the device just after the issue occurs, attached as a
    file. A bug report can be captured using "adb bugreport". Output from "adb
    logcat" or a log snippet is not sufficient.
@andrewlewis
Copy link
Collaborator

Please provide the URLs you're trying to play and we will take a look. (Note that we don't support seeking in some container formats.)

@jdprajapati
Copy link
Author

HI,

"file:///storage/emulated/0/IPTV/arynews_20160915_2046_155.ts"
I am using my local file ts file, its not working with local file.

@jdprajapati
Copy link
Author

can you please give me solution as soon as possible because I am stuck here.
Thanks in advance

@andrewlewis
Copy link
Collaborator

We don't support seeking in MPEG-TS. You will need to use a different format if you require seeking (see the linked page in my previous comment).

See #966 for some more background on this.

@jdprajapati
Copy link
Author

How's it possible?
If I am using m3u8 files then I am able to seek function and it work, why its not working with chunks.
Actually My chunks size is too much that's why I am using ExtractorMediaSource for play seemless play chunks.

Please give me solution its very important.

Thanks.

@andrewlewis
Copy link
Collaborator

Please read #966 for an explanation of why we support seeking with HLS and not plain MPEG-TS.

@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.
Projects
None yet
Development

No branches or pull requests

2 participants