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

How to play .ts video file from sdcard in exoplayer? #5090

Closed
majidebrahimii opened this issue Nov 10, 2018 · 5 comments
Closed

How to play .ts video file from sdcard in exoplayer? #5090

majidebrahimii opened this issue Nov 10, 2018 · 5 comments
Assignees

Comments

@majidebrahimii
Copy link

I use Exoplayer 2.9.0, I want to show the .ts video file on the sdcard in the Exoplayer. How can this work?(I downloaded all segment of m3u8 and integrated them in one file)

@AquilesCanta
Copy link
Contributor

There is no difference with what you'd do for any other file, other than the permission requirement to read external storage. I'd suggest you add your file path to the demo app sample list, and go from there. Since the permission require runtime handling, that might be the harder bit. Remember that what you are trying to play is no longer HLS, but rather a progressive playback, so the media source should be ExtractorMediaSource.

@majidebrahimii
Copy link
Author

@AquilesCanta I use ExtractorMediaSource and play a video but thumbnail seekbar and total time not showing when playing video.

@ojw28
Copy link
Contributor

ojw28 commented Nov 12, 2018

The seek scrubber and total time should display as of 2.9.0 (but not earlier versions).

A two sentence issue description is almost by definition not sufficient for us to help you. Please provide complete information as is clearly requested in the issue template. For this particular issue a piece of sample media (i.e. the TS file after you've merged the chunks together) would help us to easily reproduce the issue.

@majidebrahimii
Copy link
Author

majidebrahimii commented Nov 13, 2018

@ojw28 I use exoplayer 2.9.0 . Need special settings for displaying total time and Seek Bar? This link file is made from downloaded parts:

https://files.fm/f/2wjhpj6h

I play this file in MX Player and defualt player my phone without problem( Samsung Galaxy Note 3).
Tell me if you need to code. Thank you for your help.

@ojw28
Copy link
Contributor

ojw28 commented Nov 13, 2018

Your issue is a duplicate of #5097.

@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