This is a message.

scaling in BuiltInConfig.as not working Created Nov 5, 2009

This thread is solved

Views: 2259     Replies: 4     Last reply Aug 7, 2011  
You must login first before you can use this feature

pomonacollege

Posts: 17

Registered:
Oct 26, 2009

scaling in BuiltInConfig.as not working

Posted: Nov 5, 2009

Hello, my scaling preference of "fit" in my BuilInConfig.as file is not doing what it should. Here it is below...any ideas? Thanks. Example viewable athttp://pomona.edu/dev/home/video-test-2.asp



package {
//    import org.flowplayer.controls.Controls;
//    import org.flowplayer.content.Content;
//    import org.flowplayer.akamai.AkamaiConnectionProvider;
//    import org.flowplayer.rtmp.RTMPStreamProvider;
//    import org.flowplayer.pseudostreaming.PseudoStreamProvider;
//    import org.flowplayer.audio.AudioProvider;
//    import org.flowplayer.captions.Caption;
//    import org.flowplayer.securestreaming.SecureStreaming;
//    import org.flowplayer.smil.SmilResolver;
//    import org.flowplayer.bwcheck.BwProvider;
//    import org.flowplayer.cluster.ClusterConnectionProvider;

    public class BuiltInConfig {
//        private var rtmp:org.flowplayer.rtmp.RTMPStreamProvider;
//        private var controls:org.flowplayer.controls.Controls;
//        private var content:org.flowplayer.content.Content;
//        private var akamai:org.flowplayer.akamai.AkamaiConnectionProvider;
//        private var rtmp:org.flowplayer.rtmp.RTMPStreamProvider;
//        private var pseudostreaming:org.flowplayer.pseudostreaming.PseudoStreamProvider;
//        private var audio:org.flowplayer.audio.AudioProvider;
//        private var captions:org.flowplayer.captions.Caption;
//        private var securestreaming:org.flowplayer.securestreaming.SecureStreaming;
//        private var smil:org.flowplayer.smil.SmilResolver;
//        private var bwcheck:org.flowplayer.bwcheck.BwProvider;
//        private var cluster:org.flowplayer.cluster.ClusterConnectionProvider;

        public static const config:Object = {
			// add in key to remove logo
			"key": '******************',
			
			"clip": { 
				"scaling": "fit"
			},
			
			"screen": { 
			    "top": 0, 
			    "left": 0,
			    "width": '100%', 
			    "height": '100%',
			    "background": '#000000'
			 },	
			
			
            "plugins":{
            	"controls": {
					"url":"flowplayer.controls-pomona.swf",
					"autoHide": "always",
					"hideDelay": 1500,
					"opacity": .7,
					"mute": false,
					"background": "#7f7f7e",
				
					// position	
					"width": "100%",
				
					// tooltips (since 3.1) 
					"tooltips": { 
						"buttons": true, 
				    	"fullscreen": "Enter fullscreen" 
					}
				}
			}
				
//                content: { url: "org.flowplayer.content.Content" },
//                akamai: { url: "org.flowplayer.akamai.AkamaiConnectionProvider" },
//                rtmp: { url: "org.flowplayer.rtmp.RTMPStreamProvider" },
//                pseudostreaming: { url: "org.flowplayer.pseudostreaming.PseudoStreamProvider" },
//                audio: { url: "org.flowplayer.audio.AudioProvider" },
//                captions: { url: "org.flowplayer.captions.Caption", captionTarget: 'content' }
//                securestreaming: { url: "org.flowplayer.securestreaming.SecureStreaming" },
//                smil: { url: "org.flowplayer.smil.SmilResolver" }
//                cluster: { url: "org.flowplayer.cluster.ClusterConnectionProvider" }
//                bwcheck: { url: "org.flowplayer.bwcheck.BwProvider" }
                }
            }
        }
    //}


pomonacollege

Posts: 17

Registered:
Oct 26, 2009

» scaling in BuiltInConfig.as not working

Posted: Nov 16, 2009

Reply to: scaling in BuiltInConfig.as not working, from pomonacollege
Anyone have any ideas why this isn't working? :)

pomonacollege

Posts: 17

Registered:
Oct 26, 2009

» » scaling in BuiltInConfig.as not working

Posted: Nov 30, 2009

Reply to: » scaling in BuiltInConfig.as not working, from pomonacollege
Hmmm, still can't figure out what is going on here...any ideas? Thanks!!!

Abbey

Posts: 20

Registered:
Sep 11, 2009

» » » scaling in BuiltInConfig.as not working

Posted: Jan 20, 2010

Reply to: » » scaling in BuiltInConfig.as not working, from pomonacollege
I have this same problem, scaling only takes effect when I use it as a javascript config on my flowplayer page.


package {

    public class BuiltInConfig {

        public static const config:Object = {

            clip: {
	        	autoPlay: false,
	        	autoBuffering: true,
	        	accelerated: false,
	        	scaling: 'orig'
	        }
 
        } // end config
    } // end class 
} // end package



		<a  
			 href="http://e1h13.simplecdn.net/flowplayer/flowplayer.flv"  
			 style="display:block;width:520px;height:330px"  
			 id="player"> 
		</a> 
	
		
		<script>
			flowplayer("player", "flowplayer.swf", {
			        // set a common clip event listener         
					onStart: function(clip) {             
						//alert(clip.isCommon);       // false
						//alert(clip.autoPlay);         // returns: true WHY??? should be false!

						alert(clip.scaling);          // returns: scale NO! I put 'orig'  
					},
					log : {         
						level  : 'info'    
					}		
			});
		</script>

EDIT: Another way I found was to edit Clip.as directly.

I found it at: flowplayer.core/src/actionascript/org/flowplayer/model/Clip.as