Skip to content

Commit

Permalink
check flash version
Browse files Browse the repository at this point in the history
  • Loading branch information
jwagener committed Jun 28, 2010
1 parent de97262 commit 98b6cab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion public/javascripts/home_controller.js
Expand Up @@ -9,13 +9,22 @@ SC.Connect.options = {

var connected = false;

var checkFlashVersion = function(){
var flashVersion = swfobject.getFlashPlayerVersion();
if(!(flashVersion.major >= 10 && flashVersion.minor >= 1)){
alert('Please install a current flash version. Your version: ' + flashVersion.major + '.' + flashVersion.minor);
}
};

$(document).ready(function(){
checkFlashVersion();
var postURI = "http://localhost:3000/upload";
RECORDER = new Recorder($('.recorder embed')[0]);

CALLBACK_REGISTRY.bind('debug', function(arg){
//console.log(arg);
});

CALLBACK_REGISTRY.bind('recordingStart', function(arg){
console.log('rec 1');
});
Expand Down

0 comments on commit 98b6cab

Please sign in to comment.