LSP / embed support for appending a string to the video url
This commit is contained in:
parent
d8bfe8cebc
commit
63f9fb52a5
3 changed files with 68 additions and 39 deletions
16
lsp/mist.js
16
lsp/mist.js
|
@ -2862,6 +2862,9 @@ var UI = {
|
|||
if ((opts.forceprotocol) && (opts.forceprotocol != '')) {
|
||||
open.push('data-forcetype="'+opts.forceprotocol+'"');
|
||||
}
|
||||
if ((opts.urlappend) && (opts.urlappend != '')) {
|
||||
open.push('data-urlappend="'+opts.urlappend.replace(/\"/g,'\\"')+'"');
|
||||
}
|
||||
return '<'+open.join(' ')+'>'+inner+'</div>';
|
||||
}
|
||||
|
||||
|
@ -2916,6 +2919,19 @@ var UI = {
|
|||
embedoptions.forceprotocol = $(this).getval();
|
||||
$('.embed_code').setval(embedhtml(embedoptions));
|
||||
}
|
||||
},{
|
||||
label: 'Video URL addition',
|
||||
type: 'str',
|
||||
pointer: {
|
||||
main: embedoptions,
|
||||
index: 'urlappend'
|
||||
},
|
||||
help: 'The embed script will append this string to the video url, useful for sending through params.',
|
||||
classes: ['embed_code_forceprotocol'],
|
||||
'function': function(){
|
||||
embedoptions.urlappend = $(this).getval();
|
||||
$('.embed_code').setval(embedhtml(embedoptions));
|
||||
}
|
||||
},$('<h3>').text('Protocol stream urls'),$protocolurls
|
||||
]));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue