Skip to content

Commit

Permalink
Fixed naming and a couple of bugs in the Media framework
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Sep 8, 2010
1 parent 637dc82 commit 4afd3ec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion frameworks/media/views/audio.js
Expand Up @@ -6,7 +6,7 @@
// ==========================================================================

sc_require('views/controls');
sc_require('views/miniControls');
sc_require('views/mini_controls');
/**
@class
Expand Down Expand Up @@ -178,7 +178,10 @@ SC.AudioView = SC.View.extend({
return;
case "flash":
var flashURL= sc_static('videoCanvas.swf');

var movieURL = this.get('value');
if (!movieURL) return;

if(movieURL.indexOf('http:')==-1){
movieURL=location.protocol+'//'+location.host+movieURL;
}
Expand Down
6 changes: 3 additions & 3 deletions frameworks/media/views/controls.js
Expand Up @@ -6,7 +6,7 @@
// ==========================================================================
/*globals SC */

sc_require('views/mediaSlider');
sc_require('views/media_slider');
/** @class
(Document Your View Here)
Expand Down Expand Up @@ -43,7 +43,7 @@ SC.MediaControlsView = SC.View.extend({
renderStyle: 'renderImage',
theme: ''
}),
progressView: SC.mediaSlider.design({
progressView: SC.MediaSlider.design({
layout: { top: 0, left: 20, right: 220, height:20},
value:0,
minimum: 0,
Expand Down Expand Up @@ -74,7 +74,7 @@ SC.MediaControlsView = SC.View.extend({
value: '',
icon: 'minus'
}),
volumeView: SC.mediaSlider.design({
volumeView: SC.MediaSlider.design({
layout: { top: 0, right: 20, width: 100, height:20},
value:0,
valueBinding: "*owner.target.volume" ,
Expand Down
Expand Up @@ -12,7 +12,7 @@
@extends SC.View
*/
SC.mediaSlider = SC.SliderView.extend({
SC.MediaSlider = SC.SliderView.extend({

mediaView: null,

Expand Down
Expand Up @@ -6,7 +6,7 @@
// ==========================================================================
/*globals SC */

sc_require('views/mediaSlider');
sc_require('views/media_slider');
/** @class
(Document Your View Here)
Expand Down
Expand Up @@ -6,7 +6,7 @@
// ==========================================================================
/*globals SC */

sc_require('views/mediaSlider');
sc_require('views/media_slider');
/** @class
(Document Your View Here)
Expand Down Expand Up @@ -43,7 +43,7 @@ SC.SimpleMediaControlsView = SC.View.extend({
renderStyle: 'renderImage',
theme: ''
}),
progressView: SC.mediaSlider.design({
progressView: SC.MediaSlider.design({
layout: { top: 0, left: 25, right: 0, height:20 },
value:0,
minimum: 0,
Expand Down
5 changes: 4 additions & 1 deletion frameworks/media/views/video.js
Expand Up @@ -7,7 +7,7 @@


sc_require('views/controls');
sc_require('views/miniControls');
sc_require('views/mini_controls');

/**
@class
Expand Down Expand Up @@ -203,7 +203,10 @@ SC.VideoView = SC.View.extend({
return;
case "flash":
var flashURL= sc_static('videoCanvas.swf');

var movieURL = this.get('value');
if (!movieURL) return;

if(movieURL.indexOf('http:')==-1){
movieURL=location.protocol+'//'+location.host+movieURL;
}
Expand Down

0 comments on commit 4afd3ec

Please sign in to comment.