-
11 Dec 2009 6:30 PM #71
Remove the "Eject" button
Remove the "Eject" button
Without modifying the Ext.apply function of Ext.ux.YoutubePlayer.Control(),
Is there a way to simply not render the ejectbutton?
I'm thinking something along the lines where I pass a config for the buttons I want...Code:Ext.apply(this, { cls : 'ext-ux-youtubeplayer-control', items : [ this.ejectButton, this.playButton, this.stopButton, this.previousButton, this.nextButton, ' ', this.sliderField, ' ', this.elRuntime, new Ext.Toolbar.Spacer(), this.muteButton ] });Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
2 Jan 2010 4:23 PM #72
Example with Desktop?
Example with Desktop?
Can you give us an example of using the player in the desktop? I can't seem to get this to work. I have put in the code.
Code:new MyDesktop.YoutubeWindow(),
Here is the error reported by firebug:Code:MyDesktop.YoutubeWindow = Ext.extend(Ext.app.Module, { id:'yt-win', init : function(){ this.launcher = { text: 'Youtube Player', iconCls:'tabs', handler : this.createWindow, scope: this } }, createWindow : function(){ var playerPanel = new Ext.ux.YoutubePlayer({ developerKey : DEVELOPER_KEY, playerId : 'myplayer', border : false, ratioMode : 'strict', hideMode : 'visibility', bgColor : "#000000", bodyStyle : 'background-color:#000000;' }); playerPanel.on('ready', function(panel, player) { panel.cueVideoById('u1zgFlCw8Aw', 0); }, playerPanel); var desktop = this.app.getDesktop(); var win = desktop.getWindow('yt-win'); if(!win){ win = desktop.createWindow({ id: 'yt-win', title:'Youtube Player', width:740, height:480, iconCls: 'tabs', shim:false, animCollapse:false, border:false, constrainHeader:true, layout: 'fit', items: [playerPanel], bbar : new Ext.ux.YoutubePlayer.Control({ player : playerPanel, border : false, id : 'control', style : 'border:none;' }), listeners : { 'resize': function(){this.bottomToolbar.fireEvent('resize')} } }); } win.show(); } });
Ext.Menu.Adapter is not a constructor
-
4 Jan 2010 4:21 AM #73
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
4 Jan 2010 5:58 AM #74
I have updated the component at r17 to work with Ext 3.0.3 (http://code.google.com/p/ext-ux-yout.../browse/trunk/)
-
4 Jan 2010 5:57 PM #75
Thanks. Fixed that error, but I have another error.
Thanks. Fixed that error, but I have another error.
Thanks. I updated the extension, and now the player works when I open the window once, but after I close it(destroying all the components), I get the following error in firebug:
n is undefined
When I try to reopen the window, I get the following error:
I is undefined
Here is my code:
Code:new MyDesktop.YoutubeWindow(),
I am using the Extjs 3.1 desktop.Code:MyDesktop.YoutubeWindow = Ext.extend(Ext.app.Module, { id:'yt-win', init : function(){ this.launcher = { text: 'Youtube Player', iconCls:'tabs', handler : this.createWindow, scope: this } }, createWindow : function(){ var playerPanel = new Ext.ux.YoutubePlayer({ developerKey : DEVELOPER_KEY, playerId : 'myplayer', border : false, ratioMode : 'strict', hideMode : 'visibility', bgColor : "#000000", bodyStyle : 'background-color:#000000;' }); var desktop = this.app.getDesktop(); var win = desktop.getWindow('yt-win'); if(!win){ win = desktop.createWindow({ id: 'yt-win', title:'Youtube Player', width:740, height:480, iconCls: 'tabs', shim:false, animCollapse:false, border:false, constrainHeader:true, minimizable: false, layout: 'fit', items: [playerPanel], bbar : new Ext.ux.YoutubePlayer.Control({ player : playerPanel, border : false, id : 'control', style : 'border:none;' }), listeners : { 'resize': function(){this.bottomToolbar.fireEvent('resize')} } }); } win.show(); } });
Here is the clip from the firebug console after I open the window, close it(destroying the components), and trying to reopen the window:
I had to send it in a zip, because it is too large, and is 2.7 MB uncompressed.
-
6 Jan 2010 12:48 AM #76
-
10 Jan 2010 6:04 PM #77
Sorry for the delay. Took me some time to upload, but here is the demo.
Sorry for the delay. Took me some time to upload, but here is the demo.
Here is the demo so that you can see for yourself:
http://coolstar.zxq.net/csos/login.php
Username: demo
Password: demo
Then, click Start > Youtube Player.
Note: For some reason, the demo doesn't work in IE. I have to resolve that. For now use some other browser. (e.g, Firefox, Chrome, Safari, Opera).
-
11 Jan 2010 7:42 PM #78
Reminder.
Reminder.
Just a reminder. I put a live demo for you to see:
http://csos.zxq.net/
Username: demo
Password: demo
Then, click Start > Youtube Player.
Note: For some reason, the demo doesn't work in IE. I have to resolve that. For now use some other browser. (e.g, Firefox, Chrome, Safari, Opera).
-
11 Jan 2010 7:43 PM #79
So can you check the demo?
So can you check the demo?
Can you check the demo I put just now?
-
12 Jan 2010 1:45 AM #80
I have checked the demo and can confirm the issue. It seems to be related with the SWFObject. Which Ext version are you using? 3.1?



Reply With Quote
