Skip to content

Commit

Permalink
readme updates, Recoder.flashInterface().showFlash()
Browse files Browse the repository at this point in the history
  • Loading branch information
jwagener committed May 28, 2011
1 parent 2b7ba7f commit 8f63838
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -79,7 +79,7 @@ Will initiate a multipart POST (or PUT) to upload the recorded audio. Usage:
"track[title]": "some track",
"oauth_token": "VALID_TOKEN"
},
success: function(){ // will be called after successful upload
success: function(responseText){ // will be called after successful upload
},
error: function(){ // (not implemented) will be called if an error occurrs
Expand Down
3 changes: 1 addition & 2 deletions examples/example-2.html
Expand Up @@ -60,12 +60,11 @@
client_id: "aHT5HITYm8vlkWNabL0Qg",
redirect_uri: "http://recorder.dev/examples/soundcloud-callback.html",
connected: function(){
console.log("uploading");
Recorder.upload({
url: "https://api.soundcloud.com/tracks.json?oauth_token=" + SC.options.access_token,
audioParam: "track[asset_data]",
params: {
"track[title]": "recorder.js track test",
"track[title]": "recorder.js track test",
"track[sharing]": "private"
},
success: function(responseText){
Expand Down
Binary file modified flash/bin-debug/Recorder.swf
Binary file not shown.
Binary file modified flash/bin-release/Recorder.swf
Binary file not shown.
7 changes: 7 additions & 0 deletions flash/src/Recorder.mxml
Expand Up @@ -56,6 +56,7 @@
ExternalInterface.addCallback("startPlaying", startPlaying);
ExternalInterface.addCallback("stopPlaying", stopPlaying);
ExternalInterface.addCallback("upload", upload);
ExternalInterface.addCallback("showFlash", showFlash);
ExternalInterface.addCallback("getDebugLog", getDebugLog);
ExternalInterface.addCallback("data", data);
Expand Down Expand Up @@ -138,6 +139,12 @@
return wavData;
}
protected function showFlash():void
{
Security.showSettings();
triggerCallbacks('showFlash','');
}
protected function toggleRecording():void
{
if (isRecording)
Expand Down
Binary file modified recorder.swf
Binary file not shown.

0 comments on commit 8f63838

Please sign in to comment.