var form = $('edit_broadcast_stream_form');
var data = form.serialize({hash: true});
data['activeSubState'] = 'PUBLIC';
form.values = data;
location.href="list_live_streams.html";
location.href="list_live_streams.html";
displayAJAXErrors("Saving data failed", json['errors']);
$A(json['ingestLevels']).each(function(item) {
render_template_into("inputLevelMapping", "inputLevelMappings", item);
});
$A(json['ingestWebVttLevels']).each(function(item) {
render_template_into("ingestWebVttLevelMap", "webVttInputLevelMappings", item);
});
$A(json['virtualLevels']).each(function(item) {
render_template_into("virtualLevelMap", "virtualLevelMappings", item);
});
$A(json['virtualWebVttLevels']).each(function(item) {
render_template_into("virtualWebVttLevelMap", "webVTTVirtualLevelMappings", item);
});
$A(json['virtualBroadcastStreams']).each(function(item) {
render_template_into("virtualBroadcastStream", "virtualBroadcastStreams", item);
});
$H(json['queryParameterNameMap']).each(function(item) {
render_template_into("queryParameterNameMap", "queryParameterNameMaps", {
from: item.key,
to: item.value
});
});
$H(json['adContentUrlPrependMap']).each(function(item) {
render_template_into("adContentUrlPrependMap", "adContentUrlPrependMaps", {
from: item.key,
to: item.value
});
});
$H(json['ingestRegexpMap']).each(function(item) {
var mapping = $H(ingestMappingName.get('tagsInManifest')).get(item.key);
if (mapping != null) {
render_template_into("ingestRegexpMap", "tagsInManifestMap", {
from: item.key,
description: mapping['displayName'],
to: item.value
});
} else {
mapping = $H(ingestMappingName.get('publishRequestUrlsType')).get(item.key);
render_template_into("ingestRegexpMap", "receiverUrlMap", {
from: item.key,
description: mapping['displayName'],
to: item.value
});
}
});
if (CMUI_QUERYSTRING.get('dup') != undefined) {
/* Remove Output Feed ID for duplicate */
displayStatus(statusINFO, "Duplicate Broadcast Stream", "Creating duplicate of Broadcast Stream " + json['id']);
delete json['id'];
$('version').remove();
$('name').setValue('Copy of ' + json['name']);
$('vbs_block').select('input[type=hidden]]').each(function(item) {
item.setValue("");
});
$('pageType').setValue('duplicate');
}
if (!json['id']) {
$('__id').up('.formEntry').remove();
}
$('addILM').observe('click', function(ev) {
ev.stop();
render_template_into("inputLevelMapping", "inputLevelMappings", {"videoCodec": "", "audioCodec": ""});
});
$('addWVILM').observe('click', function(ev) {
ev.stop();
render_template_into("ingestWebVttLevelMap", "webVttInputLevelMappings", {});
});
$('addVLM').observe('click', function(ev) {
ev.stop();
render_template_into("virtualLevelMap", "virtualLevelMappings", {});
});
$('addWVVLM').observe('click', function(ev) {
ev.stop();
render_template_into("virtualWebVttLevelMap", "webVTTVirtualLevelMappings", {});
});
$('addVBS').observe('click', function(ev) {
ev.stop();
render_template_into("virtualBroadcastStream", "virtualBroadcastStreams", {'adBreakPrefetchMaxTps': 100});
});
$('addQPNM').observe('click', function(ev) {
ev.stop();
render_template_into("queryParameterNameMap", "queryParameterNameMaps", {});
});
$('addACUPM').observe('click', function(ev) {
ev.stop();
render_template_into("adContentUrlPrependMap", "adContentUrlPrependMaps", {});
});
$('addIMTIM').observe('click', function(ev) {
ev.stop();
var popup = $('popupmenu');
popup = new CMUIPopupMenu('popupmenu', ev.target.innerHTML, '', [], function(uid) {
var mapping = $H(ingestMappingName.get('tagsInManifest')).get(uid);
render_template_into("ingestRegexpMap", "tagsInManifestMap", {
from: uid,
description: mapping['displayName'],
to: mapping['default']
});
});
$H(ingestMappingName.get('tagsInManifest')).each(function(ingestMapping) {
if ($('tagsInManifestMap').down('[value=' + ingestMapping[0] + ']') == null) {
popup.addOption(ingestMapping[1]['displayName'], ingestMapping[0]);
}
});
popup.show.bind(popup, ev.target).defer();
});
$('addIMRUM').observe('click', function(ev) {
ev.stop();
var popup = $('popupmenu');
popup = new CMUIPopupMenu('popupmenu', ev.target.innerHTML, '', [], function(uid) {
var mapping = $H(ingestMappingName.get('publishRequestUrlsType')).get(uid);
render_template_into("ingestRegexpMap", "receiverUrlMap", {
from: uid,
description: mapping['displayName'],
to: mapping['default']
});
});
$H(ingestMappingName.get('publishRequestUrlsType')).each(function(ingestMapping) {
if ($('receiverUrlMap').down('[value=' + ingestMapping[0] + ']') == null) {
popup.addOption(ingestMapping[1]['displayName'], ingestMapping[0]);
}
});
popup.show.bind(popup, ev.target).defer();
});
Disable TS File Prepend For WebVTT Segments
Align PDT
Remove PDT
Redundancy Options
Master Manifest Polling Options
Merge Session Keys
Disable TS File Prepend For WebVTT Segments
Redundancy Options