Open pavels opened 2 years ago
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…”?
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 withouthttp-equiv="Refresh"
directive present?