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

Playing a particular resolution video in offline mode (DASH) #2340

Closed
Abilashinamdar opened this issue Jan 17, 2017 · 4 comments
Closed

Playing a particular resolution video in offline mode (DASH) #2340

Abilashinamdar opened this issue Jan 17, 2017 · 4 comments

Comments

@Abilashinamdar
Copy link

My manifest(mpd) file contains multiple resolution videos(like 180p, 360p, 720 etc), i manually parsed the mpd file & downloaded all the video files and stored it in my Local Storage. When I play the video using this manifest file in offline mode, it is playing fine. Now I have deleted the 180p & 360p resolution files. Now when I try to play the video using the same Manifest file , it is not playing . onLoadError is getting called with the deleted file uri. How to configure to player to play only a particular resolution video that is available to play in offline mode ?

@WeiChungChang
Copy link
Contributor

WeiChungChang commented Jan 17, 2017

The problem seems to be that the manifest still contains the representations which include the deleted videos. When bit-rate switches, it may instruct the player to load a deleted video. I guess that is why the onLoadError happens.
Maybe the fast way to test is manually remove the representations related to the deleted videos from MPD and see if it works.

@Abilashinamdar
Copy link
Author

That's what i don't want to remove any representations from the MPD, i want to play only existing files which are stored in my Local Storage. That any how it will works if i remove representations from the MPD but i don't want to touch the MPD.
Is there a way to configure the player to play only existing files? OR
Do we need to add any workaround code to make the player to play existing files?

@ashwanijanghu
Copy link

@Abilashinamdar Can you present any sample to play offline stored videos, I am able to download license offline and stored-retrieve it from native media drm. Need a sample to play video from local storage. Thanks in advance.

@ojw28
Copy link
Contributor

ojw28 commented May 24, 2017

Officially supporting offline mode is tracked by #2643.

@ojw28 ojw28 closed this as completed May 24, 2017
@google google locked and limited conversation to collaborators Sep 22, 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

4 participants