BVB Source Codes

Cloud on the CMS (SyCms) v1.95 Show flvPlayer.js Source code

Return Download Cloud on the CMS (SyCms) v1.95: download flvPlayer.js Source code - Download Cloud on the CMS (SyCms) v1.95 Source code - Type:.js
  1. CKEDITOR.dialog.add('flv', function(a){
  2.     var b = a.config;
  3.     var escape = function(value){
  4.         return value;
  5.     };
  6.     return {
  7.  
  8.         title: '插入Flv视频',
  9.         resizable: CKEDITOR.DIALOG_RESIZE_BOTH,
  10.         minWidth: 350,
  11.         minHeight: 300,
  12.         contents: [{
  13.             id: 'info',
  14.             label: '常规',
  15.             accessKey: 'P',
  16.             elements: [
  17.                 {
  18.                     type: 'hbox',
  19.                     widths: ['80%', '20%'],
  20.                     children: [{
  21.                         id: 'src',
  22.                         type: 'text',
  23.                         label: '源文件'
  24.                     }, {
  25.                         type: 'button',
  26.                         id: 'browse',
  27.                         filebrowser: 'info:src',
  28.                         hidden: true,
  29.                         align: 'center',
  30.                         label: '浏览服务器'
  31.                     }]
  32.                 },
  33.                 {
  34.                     type: 'hbox',
  35.                     widths: ['35%', '35%', '30%'],
  36.                     children: [{
  37.                         type: 'text',
  38.                         label: '视频宽度',
  39.                         id: 'mywidth',
  40.                         'default': '470px',
  41.                         style: 'width:50px'
  42.                     }, {
  43.                         type: 'text',
  44.                         label: '视频高度',
  45.                         id: 'myheight',
  46.                         'default': '320px',
  47.                         style: 'width:50px'
  48.                     }, {
  49.                         type: 'select',
  50.                         label: '自动播放',
  51.                         id: 'myloop',
  52.                         required: true,
  53.                         'default': 'false',
  54.                         items: [['是', 'true'], ['否', 'false']]
  55.                     }]//children finish
  56.                 }, {
  57.                     type: 'textarea',
  58.                     style: 'width:300px;height:220px',
  59.                     label: '预览',
  60.                     id: 'code'
  61.                 }]
  62.         }, {
  63.             id: 'Upload',
  64.             hidden: true,
  65.             filebrowser: 'uploadButton',
  66.             label: '上传',
  67.             elements: [{
  68.                 type: 'file',
  69.                 id: 'upload',
  70.                 label: '上传',
  71.                 size: 38
  72.             },
  73.             {
  74.                 type: 'fileButton',
  75.                 id: 'uploadButton',
  76.                 label: '发送到服务器',
  77.                 filebrowser: 'info:src',
  78.                 'for': ['Upload', 'upload']//'page_id', 'element_id'
  79.             }]
  80.         }],
  81.         onOk: function () {
  82.             mywidth = this.getValueOf('info', 'mywidth');
  83.             myheight = this.getValueOf('info', 'myheight');
  84.             myloop = this.getValueOf('info', 'myloop');
  85.             mysrc = this.getValueOf('info', 'src');
  86.             html = '' + escape(mysrc) + '';
  87.             //editor.insertHtml("<pre class=\"brush:" + lang + ";\">" + html + "</pre>");
  88.             a.insertHtml("<embed height=" + myheight + " width=" + mywidth + " autostart=" + myloop + " flashvars=\"file=" + html + "\" allowfullscreen=\"true\" allowscriptaccess=\"always\" bgcolor=\"#ffffff\" src=\"" + b.flv_path + "jwplayer.swf?autostart=" + myloop + "\"></embed>");
  89.         },
  90.         onLoad: function () {
  91.         }, onShow: function () {
  92.             var A = this;
  93.             A.fakeImage = A.objectNode = A.embedNode = null;
  94.             m = new CKEDITOR.dom.element('embed', a.document);
  95.             var o = A.getSelectedElement();
  96.             if (o && o.data('cke-real-element-type') && o.data('cke-real-element-type') == 'flash') {
  97.                 A.fakeImage = o;
  98.                 var p = a.restoreRealElement(o);
  99.                 var autostart = p.getAttribute("autostart");
  100.                 var width = p.getAttribute("width");
  101.                 var height = p.getAttribute("height");
  102.                 var flashvars = p.getAttribute("flashvars");
  103.                 this.setValueOf("info", "mywidth", width);
  104.                 this.setValueOf("info", "myheight", height);
  105.                 this.setValueOf("info", "myloop", autostart);
  106.                 this.setValueOf("info", "src", flashvars.replace("file=", ""));
  107.             }
  108.         }
  109.     };
  110. });
  111.  
downloadflvPlayer.js Source code - Download Cloud on the CMS (SyCms) v1.95 Source code
Related Source Codes/Software:
SuperSocket v1.6.6 - SuperSocket the Socket is a lightweight and extens... 2016-08-19
Students' basic information input program v2.0 - 1, the program is based on. net4.0 framework and d... 2016-08-19
Student information input system v2.0 - 1, the program is based on. net4.0 framework and d... 2016-08-19
Baidu handwriting input source v1.0 - Baidu handwriting input method source code, no nee... 2016-08-19
Rui bao tong v1.0 JAVA version of B2B e-commerce system - Rainbow B2B system developed using the popular JAV... 2016-08-19
1.0 housing, rental housing sale platform - Rent housing rent out platform is a very typical r... 2016-08-19
Deng Xi v2.4 website help system - Deng Xi website help system is a very useful help ... 2016-08-19
Address book v1.0 FaLiang three layer - This Demo is a three layer address book source cod... 2016-08-19
Ray speed v7.0 wage query system - To modify the software to conduct a comprehensive ... 2016-08-19
Easy to point the content management system DianCMS v6.0.0 SQL version - Easy content management system (DianCMS) is based ... 2016-08-19
www.html5rocks.com - ....a top-notch resource for web developer 2017-05-12
MTStatusBarOverlay - A custom iOS status bar overlay seen in Apps like ... 2017-05-12
blueprint - Reverse engineer server configuration ... 2017-05-12
PullToRefresh - A simple iPhone TableViewController for adding the... 2017-05-12
mrjob - Run MapReduce jobs on Hadoop or Amazon Web Service... 2017-05-11
wax - Wax is now being maintained by alibaba ... 2017-05-11
ledisdb - a high performance NoSQL powered by Go ... 2017-05-11
d3-cloud - Create word clouds in JavaScript. ... 2017-05-11
react-makes-you-sad - Here's a flowchart to make you happy again! 2017-05-11
flat-surface-shader - Flat Surface Shader for rendering lit triangles to... 2017-05-11

 Back to top