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

Add support for HLS videos caching on android #4272

Merged

Conversation

IslamRustamov
Copy link
Contributor

@IslamRustamov IslamRustamov commented Nov 3, 2024

Summary

This PR adds a conditional check whether to include HLS video caching or not for Android devices. We already have a bufferConfig prop that enables caching in most cases, but we don't utilise the useCache variable in case of HLS video streaming.

Motivation

Every time the same HLS video is being played - it gets loaded again and again which is counter-efficient.

Changes

  • Added a conditional check with useCache to whether enable HLS video caching or not.

Test plan

Open App Inspector in Android Studio (or proxyman or any other sniffing tool) and check whether HLS videos are getting downloaded with and without bufferConfig prop.

@freeboub
Copy link
Collaborator

freeboub commented Nov 5, 2024

looks good to me

@IslamRustamov IslamRustamov mentioned this pull request Nov 8, 2024
@freeboub freeboub merged commit d277c5e into TheWidlarzGroup:master Nov 15, 2024
3 checks passed
@douzal34
Copy link

Hi @freeboub,

I have seen the new version 6.8.0 and the new HLS cache managing from this PR. However, i've seen on this link that caching is not available for .m3u8 yet.

Does HLS caching managing is possible on rnv component or not ? If yes, can you share an example of it like a basic rnv component with the option needed.

Thanks for your time and have a nice day !

@IslamRustamov
Copy link
Contributor Author

@douzal34 probably docs were not updated

@douzal34
Copy link

Still no update on the doc, it's normal @freeboub ?

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

Successfully merging this pull request may close these issues.

3 participants