Copy value as text
$QSIFSET(dup,Duplicate,$QSIFUNSET(id,Create,Edit)) RSS Output Feed
Help
location.href="list_output_feeds.html";
location.href="list_output_feeds.html";
displayAJAXErrors("Save Failed", json['errors']);
var form = $('edit_output_feed_form'); var data = form.serialize({hash: true}); /* Serialize web options */ var adv_web = $('adv_web'); var uid; var idx = 0; adv_web.childElements().each(function(item) { if (!item.hasClassName('formEntry')) return; uid = item.getAttribute('uid'); data['webAccessConfig_' + idx + '_version'] = data['version_' + uid]; data['webAccessConfig_' + idx + '_id'] = $F('__id_' + uid); data['webAccessConfig_' + idx + '_name'] = $F('name_' + uid); if ($('renditions_' + uid)) { data['webAccessConfig_' + idx + '_isRendition'] = 'true'; var ridx = 0; $('use_' + uid).childElements().each(function(item) { data['webAccessConfig_' + idx + '_rendition_' + ridx] = item.getAttribute('value'); ridx++; }); data['webAccessConfig_' + idx + '_renditionCount'] = ridx; data['webAccessConfig_' + idx + '_directToBinary'] = $F('directToBinary_' + uid); } else { data['webAccessConfig_' + idx + '_bandwidthMin'] = data['qMin_' + uid]; data['webAccessConfig_' + idx + '_bandwidthMax'] = data['qMax_' + uid]; data['webAccessConfig_' + idx + '_frameRateMin'] = data['rMin_' + uid]; data['webAccessConfig_' + idx + '_frameRateMax'] = data['rMax_' + uid]; data['webAccessConfig_' + idx + '_xMin'] = data['xMin_' + uid]; data['webAccessConfig_' + idx + '_xMax'] = data['xMax_' + uid]; data['webAccessConfig_' + idx + '_yMin'] = data['yMin_' + uid]; data['webAccessConfig_' + idx + '_yMax'] = data['yMax_' + uid]; data['webAccessConfig_' + idx + '_audioChannels'] = data['audio_' + uid]; } data['webAccessConfig_' + idx + '_thumbnailPolicy'] = data['thumbtype_' + uid]; data['webAccessConfig_' + idx + '_thumbnailPixelWidth'] = data['thumbsize_' + uid]; idx++; }); data['webAccessConfig_count'] = idx; /* Serialize mobile options */ var adv_mob = $('adv_mob'); idx = 0; adv_mob.childElements().each(function(item) { if (!item.hasClassName('formEntry')) return; uid = item.getAttribute('uid'); data['mobileAccessConfig_' + idx + '_version'] = data['version_' + uid]; data['mobileAccessConfig_' + idx + '_id'] = $F('__id_' + uid); data['mobileAccessConfig_' + idx + '_name'] = $F('name_' + uid); data['mobileAccessConfig_' + idx + '_autoSelection'] = (data['autoSelection_' + uid]=='true')?'true':'false'; data['mobileAccessConfig_' + idx + '_automaticQualities'] = (data['automaticQualities_' + uid]=='true')?'true':'false'; if (data['autoSelection_' + uid] == 'true') { data['mobileAccessConfig_' + idx + '_deliveryMode'] = $F('deliveryMode1_' + uid); } else { data['mobileAccessConfig_' + idx + '_deliveryMode'] = $F('deliveryMode2_' + uid); } data['mobileAccessConfig_' + idx + '_displayedQuality'] = $F('displayedQuality_' + uid); data['mobileAccessConfig_' + idx + '_displayedQualityTablet'] = $F('displayedQualityTablet_' + uid); data['mobileAccessConfig_' + idx + '_displayedQualityHigh'] = $F('displayedQualityHigh_' + uid); data['mobileAccessConfig_' + idx + '_displayedQualityLow'] = $F('displayedQualityLow_' + uid); data['mobileAccessConfig_' + idx + '_displayedQualityMedium'] = $F('displayedQualityMedium_' + uid); data['mobileAccessConfig_' + idx + '_displayedQualityStandard'] = $F('displayedQualityStandard_' + uid); data['mobileAccessConfig_' + idx + '_neverAutoRedirect'] = $F('neverAutoRedirect_' + uid); data['mobileAccessConfig_' + idx + '_queryParameters'] = $F('queryParameters_' + uid); data['mobileAccessConfig_' + idx + '_showTitle'] = $F('showTitle_' + uid); data['mobileAccessConfig_' + idx + '_showDescription'] = $F('showDescription_' + uid); data['mobileAccessConfig_' + idx + '_showDownloadSizes'] = $F('showDownloadSizes_' + uid); data['mobileAccessConfig_' + idx + '_showDuration'] = $F('showDuration_' + uid); data['mobileAccessConfig_' + idx + '_showMoreOptions'] = $F('showMoreOptions_' + uid); data['mobileAccessConfig_' + idx + '_showVideoThumb'] = $F('showVideoThumb_' + uid); data['mobileAccessConfig_' + idx + '_showNotes'] = $F('showNotes_' + uid); data['mobileAccessConfig_' + idx + '_stylesheet'] = $F('stylesheet_' + uid); data['mobileAccessConfig_' + idx + '_thumbnailPolicy'] = data['thumbtype_' + uid]; data['mobileAccessConfig_' + idx + '_thumbnailPixelWidth'] = data['thumbsize_' + uid]; idx++; }); data['mobileAccessConfig_count'] = idx; /* Serialize metadata */ var adv_params = $('adv_params'); idx = 0; adv_params.select('tr').each(function(item) { if (!item.down('.key')) return; key = item.down('.key').getValue(); value = item.down('.value').getValue(); if (!key) return; data['metadata_' + idx + '_key'] = key; data['metadata_' + idx + '_value'] = value; idx++; }); data['metadata_count'] = idx; /* Misc bits */ data['itemGuidPolicy'] = $F('itemGuidPolicy'); data['itemLinkPolicy'] = $F('itemLinkPolicy'); data['supportsLargeFormat'] = ($F('supportsLargeFormat') == 'true')?'true':'false'; data['appleAccessModeCeilingSeconds'] = $F('appleAccessModeCeilingSeconds'); /* Override default serialization and send data */ form.values = data;
if (CMUI_QUERYSTRING.get('dup') != undefined) { /* Remove Output Feed ID for duplicate */ displayStatus(statusINFO, "Duplicate Output Feed", "Creating duplicate of output feed " + json['id']); delete json['id']; $('version').remove(); $('active').setValue('false'); delete json['defaultMobileAccessConfig_id']; delete json['defaultWebAccessConfig_id']; $('name').setValue('Copy of ' + json['name']); } if (!json['id']) { $('__id').up('.formEntry').remove(); $('rssurl').up('.formEntry').remove(); } else { var rssurl = 'http://' + rsshost +'/' + zeroPad($F('discriminator'), 4) + json['id']; $('rssurl').update( Builder.node('a', { 'href': rssurl }, rssurl) ); } /* Fix discriminator */ $('discriminator').setValue(zeroPad($F('discriminator'), 4)); /* Run onvalue Actions */ runActions($('edit_output_feed_form'), $w('onvalue')); /* Populate the metadata mappings */ $('edit_output_feed_form').fire('cmui:dataready');
Settings
Active
Inactive
disableField('#sortOrder')
enableField('#sortOrder')
Ascending
Descending
Limit feed to
enableField('[name=maxOutputSize]');
disableField('[name=maxOutputSize]');
items of content
Publish items before their publish date
enableField('#supportsLargeFormat');
disableField('#supportsLargeFormat');
High Quality
Standard Quality
Enable Large Format
Prevent forwarding of content on mobile devices.
Force reference movie
Force HTTP stream (Apple HLS)
Hybrid, stream content if more than
enableField('#appleAccessModeCeilingSeconds');
disableField('#appleAccessModeCeilingSeconds');
secs
Apply strict compliance
Low & High
Medium & High
Original GUID
Media Item ID
Media Item ID (Globally Unique)
Original LINK
Original GUID
Media Item ID
Media Item ID (Globally Unique)
Help
Specify Delivery & Quality
Streaming, Fallback to Download
Streaming Only
Download Only
Low (GPRS)
Standard (Edge/3G)
Medium (3G/HSDPA)
High (HSDPA/WLAN)
Tablet
Display User Options
Stream And Download
Streaming, Fallback to Download
Streaming Only
Download Only
Show Qualities Automatically
Select Quality Options
Low (GPRS)
Standard (Edge/3G)
Medium (3G/HSDPA)
High (HSDPA/WLAN)
Tablet
Never Auto-Redirect
Show "More Options..."
Include Video Thumbnail
Include Title
Include Description
Include Duration
Include Download Sizes
Include Data Usage Warning
X
Kbps
X
Kbps
Link directly to binary data
No thumbnail
Link to original Custom Thumbnail URL if available
Use Standard Thumbnail
pixels wide