Closed del82 closed 11 years ago
I'm playing with these buttons, and they don't seem to do anything at all.
Can you play audio normally? If so, can you post the browser console output?
If not, then it's likely a path problem. @del82 had changed the master branch to hard code the asset paths. If you switch back the audio path and the swf path (for the audio player) back to relative paths for the dev environment, it works. (Commit 1647caea52e36eb7e000f013e1657e3305688c12)
Ordinary audio playback works fine.
Here's the contents of my JS console for loading the hit, opening the audio player, pausing playback, and hitting start 2s and last 2s (notice that it does not even register the fact that I did this):
-- SoundManager 2: HTML5 support tests (/^(probably|maybe)$/i): mp3: true (preferring flash), mp4: true (preferring flash), ogg: true, wav: true -- application-3b7772841c92f35c1cb6ac5be68251c2.js:21
-- SoundManager 2 V2.97a.20120527 (AS2/Flash 8) + HTML5 audio, high performance mode, normal polling, wmode: transparent, flashBlock mode -- application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager::createMovie(): Trying to load /ezra2/assets/soundmanager2_debug-2a715bd2968703ba6ec042f3037446cc.swf application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager::initMovie(): Waiting for ExternalInterface call from Flash... application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager::externalInterfaceOK() (~0 ms) application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager::init() application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager: Attempting JS to Flash call... application-3b7772841c92f35c1cb6ac5be68251c2.js:21
(Flash): SM2 SWF V2.97a.20120527 (AS2/Flash 8) application-3b7772841c92f35c1cb6ac5be68251c2.js:21
(Flash): JS to/from Flash OK application-3b7772841c92f35c1cb6ac5be68251c2.js:21
Flash security sandbox type: remote application-3b7772841c92f35c1cb6ac5be68251c2.js:21
(Flash): Enabling polling, 10 ms interval application-3b7772841c92f35c1cb6ac5be68251c2.js:21
-- SoundManager 2 loaded (OK) -- application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager: Firing 1 onready() item application-3b7772841c92f35c1cb6ac5be68251c2.js:21
pagePlayer.init(): Using default configuration application-3b7772841c92f35c1cb6ac5be68251c2.js:21
pagePlayer.init(): Ready application-3b7772841c92f35c1cb6ac5be68251c2.js:21
soundManager.createSound(): pagePlayerMP3Sound0 (http://plath.compling.cornell.edu/ezra2/smallaudio/audio.weei.com/hosting/media/weei/1605472/rpgs-podcast.93e217b2-33e7-4dd2-ac1a-f9539b10f1df.mp3) application-3b7772841c92f35c1cb6ac5be68251c2.js:21
SMSound() merged options: {
id: pagePlayerMP3Sound0,
url: http://plath.compling.cornell.edu/ezra2/smallaudio/audio.weei.com/hosting/media/weei/1605472/rpgs-podcast.93e217b2-33e7-4dd2-ac1a-f9539b10f1df.mp3,
onplay: {t.removeClass(this._data.oLI,this._data.className),this._data.cl... },
onstop: {t.removeClass(this._data.oLI,this._data.className),this._data.cl... },
onpause: {if(t.dragActive)return!1;t.removeClass(this._data.oLI,this._data... },
onresume: {if(t.dragActive)return!1;t.removeClass(this._data.oLI,this._data... },
onfinish: {t.removeClass(this._data.oLI,this._data.className),this._data.cl... },
whileloading: {function n(){this._data.oLoading.style.width=this.bytesLoaded/th... },
whileplaying: {var r=null;t.dragActive||!t.config.useThrottling?(e.updateTime.a... },
onmetadata: undefined,
onload: {if(!this.loaded){var e=this._data.oLI.getElementsByTagName("a")[... },
autoLoad: false,
autoPlay: false,
loops: 1,
multiShot: true,
multiShotEvents: false,
pan: 0,
stream: true,
usePolicyFile: false,
volume: 100
} application-3b7772841c92f35c1cb6ac5be68251c2.js:21
SMSound.play(): Attempting to load "pagePlayerMP3Sound0" application-3b7772841c92f35c1cb6ac5be68251c2.js:21
SMSound.load(): http://plath.compling.cornell.edu/ezra2/smallaudio/audio.weei.com/hosting/media/weei/1605472/rpgs-podcast.93e217b2-33e7-4dd2-ac1a-f9539b10f1df.mp3 application-3b7772841c92f35c1cb6ac5be68251c2.js:21
(Flash): auto-play allowed application-3b7772841c92f35c1cb6ac5be68251c2.js:21
SMSound.play(): "pagePlayerMP3Sound0" is starting to play application-3b7772841c92f35c1cb6ac5be68251c2.js:21
GET http://plath.compling.cornell.edu/assets/control_play-0d32906bebdbd87c004cf103c0b3cc60.png 404 (Not Found) application-3b7772841c92f35c1cb6ac5be68251c2.js:16
SMSound._onload(): "pagePlayerMP3Sound0" loaded. application-3b7772841c92f35c1cb6ac5be68251c2.js:21
SMSound.togglePause() application-3b7772841c92f35c1cb6ac5be68251c2.js:21
SMSound.pause() application-3b7772841c92f35c1cb6ac5be68251c2.js:21
GET http://plath.compling.cornell.edu/assets/control_pause-b60b4b8b605d231d49f090793f3e9628.png 404 (Not Found) application-3b7772841c92f35c1cb6ac5be68251c2.js:16
This was caused by my failure to re-precompile static assets when I updated the deploy with Parry's most recent changes. I've just done this, and the buttons, which didn't work before for me, now do. Closing.
Much annotator time is wasted trying to set an appropriate window end and match it to the transcription because annotators must re-listen to the entire clip to hear when it stops. It would be useful to have a way to play the last one or two seconds of the audio clip as it's currently demarcated to verify that the window end is in the right place.
Bonus: make the amount of time that is played settable by the user, with some sane default.