Play file in browser or with external helper application #34

Merged
prpr merged 14 commits from df/webif:df-playmedia-patch into master 2022-03-25 22:58:13 +00:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit bf838ed5e4 - Show all commits

View File

@ -873,16 +873,22 @@ $('a.bf').click(function(e) {
type: type
});
$('#playDL').attr('download', file.replace(/.*\//, ''));
if (type == 'ts') {
if (opt.attr('odencd') != 0) {
/* encrypted: link to be enabled once populated */
$('#playDL').disable();
/* ... but if no DLNA never Play */
if (opt.attr('dlna') != 1) $('#play').disable();
} else {
/* link unencrypted file directly */
$('#playDL').attr('href', file);
}
} else {
/* generic: enable Play once media file is parsed */
$('#play').disable();
$('#playDL').attr('href', file);
}
$dialog.dialog('open');