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

Start without network connection and cache ends up in error #22

Open
pavels opened this issue Nov 4, 2021 · 1 comment
Open

Start without network connection and cache ends up in error #22

pavels opened this issue Nov 4, 2021 · 1 comment

Comments

@pavels
Copy link

pavels commented Nov 4, 2021

If you try to run garlic player without network connectivity and if there is no cached smil index, you will end up with white screen forever.

There should be some kind of retry mechanism so it will eventually download the index once the connectivity is available.

It is of course possible to first somehow wait for network and after that start the player, but this should not be needed, as there can already exist cached content so we can display content event the network is not yet available.

Also somehow connected to this is refresh after load - garlic player supports http-equiv="Refresh" and that is great, but if you by accident distribute smil index without this directive, the player will never try to load any content again and is stuck with the current cache until restarted. Maybe there can be some parameter for the player to periodically reload index file even without http-equiv="Refresh" directive present?

@sagiadinos
Copy link
Owner

Hello Pavel,

A “wait for internet”-mechanism will be very OS-specific. Done this in garlic-launcher (android).

The periodical request seems to be a good idea, but it should be configurable via command line or dialog.

but this should not be needed, as there can already exist cached content so we can display

Do you mean displaying a kind of standard message like: “Waiting for network…”?

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

No branches or pull requests

2 participants