Do you need a manage the red5 recorder through javascript ?
We have created some javascript functions and javascript callbacks so you can manipulate your red5 record through javascript:
<script>
// function to manipualte red5 recorder
function startRecording() {
document.getElementById("red5recorder").startRecording();
// start the recording of the video
}
function stopRecording() {
document.getElementById("red5recorder").stopRecording();
// stop the recording of the video
}
function playRecording() {
document.getElementById("red5recorder").playRecording();
// playback the recoprded video
}
function stopVideo() {
document.getElementById("red5recorder").stopVideo();
// stops playing the video
}
function playPause() {
document.getElementById("red5recorder").playPause();
// toggles pause/play of the video
}
function setVolume(value) {
document.getElementById("red5recorder").setVolume(value);
// sets the volume of the player
}
// callbacks functions: these are called from flash to javascript
function recordStarted() {
alert("record started");
// called when recording has started
}
function recordStopped() {
alert("record has stopped");
// is called when recording is stopped
}
</script>
Main