i




 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parent page iframe generated id from aspx page
03-13-2012, 05:02 AM
Post: #1
Not Solved parent page iframe generated id from aspx page
hi friends,

parent page iframe generated id from aspx page.my question is i want the parent page record value how to get in below aspx page using javascript function.

this is the parent page html file using javascript

<tr><td> Record Id:<p id="recordvalue"> </p></td></tr></table>
<script>
function recordkey()
{
var myvar = document.VideoRecorder.getStreamName();
document.getElementById('recordvalue').innerHTML=myvar+'.flv';

}

function userHasCamMic(cam_number,mic_number,recorderId){
//alert("userHasCamMic("+cam_number+","+mic_number+")");
//this function is called when HDFVR is initialized
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function btRecordPressed(recorderId){
//alert("btRecordPressed");
//recordkey();
//this function is called whenever the Record button is pressed to start a recording
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function btStopRecordingPressed(recorderId){

recordkey();
//alert("btStopRecordingPressed");
//this function is called whenever a recording is stopped
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function btPlayPressed(recorderId){
//alert("btPlayPressed");
//this function is called whenever the Play button is pressed to start/resume playback
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function btPausePressed(recorderId){
//alert("btPausePressed");
//this function is called whenever the Pause button is pressed during playback
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function onUploadDone(streamName,streamDuration,userId,recorderId){
//alert("onUploadDone("+streamName+","+streamDuration+","+userId+")");

//this function is called when the video/audio stream has been all sent to the video server and has been saved to the video server HHD,
//on slow client->server connections, because the data can not reach the video server in real time, it is stored in the recorder's buffer until it is sent to the server, you can configure the buffer size in avc_settings.XXX

//this function is called with 3 parameters:
//streamName: a string representing the name of the stream recorded on the video server including the .flv extension
//userId: the userId sent via flash vars or via the avc_settings.XXX file, the value in the avc_settings.XXX file takes precedence if its not empty
//duration of the recorded video/audio file in seconds but acccurate to the millisecond (like this: 4.322)
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function onSaveOk(streamName,streamDuration,userId,cameraName,micName,recorderId){
//alert("onSaveOk("+streamName+","+streamDuration+","+userId+","+cameraName+","+micName+")");

//the user pressed the [save] button inside the recorder and the save_video_to_db.XXX script returned save=ok
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function onSaveFailed(streamName,streamDuration,userId,recorderId){
//alert("onSaveFailed("+streamName+","+streamDuration+","+userId+")");

//the user pressed the [save] button inside the recorder but the save_video_to_db.XXX script returned save=fail
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}
function onSaveJpgOk(streamName,userId,recorderId){
//alert("onSaveJpgOk("+streamName+","+userId+")");

//the user pressed the [save] button inside the recorder and the save_video_to_db.XXX script returned save=ok
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function onSaveJpgFailed(streamName,userId,recorderId){
//alert("onSaveJpgFailed("+streamName+","+userId+")");
//the user pressed the [save] button inside the recorder but the save_video_to_db.XXX script returned save=fail
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function onFlashReady(recorderId){
//alert("onFlashReady()");
//you can now communicate with HDFVR using the JS Control API
//Example : document.VideoRecorder.record(); will make a call to flash in order to start recording
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}

function onPlaybackComplete(recorderId){
//alert("onPlaybackComplete()")
//this function is called when HDFVR plays back a recorded video and the playback completes
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
}


function onCamAccess(allowed,recorderId){
//alert("onCamAccess("+allowed+")");
//the user clicked Allow or Deny in the Camera/Mic access dialog box in Flash Player
//when the user clicks Deny this function is called with allowed=false
//when the user clicks Allow this function is called with allowed=true
//you should wait for this function before allowing the user to cal the record() function on HDFVR
//this function can be called anytime during the life of the HDFVR instance as the user has permanent access to the Camera/Mic access dialog box in Flash Player
//recorderId: the recorderId sent via flash vars, to be used when there are many recorders on the same web page
if (allowed){
document.getElementById("recordbtn").disabled = false
}else{
document.getElementById("recordbtn").disabled = true
}
}

</script>



this is aspx page i call the parent page iframe .my question is i want the parent page record value how to get in below aspx page using javascript function.

/* ASPX Page*/

<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" language="javascript">
function getid()
{

}
</script>
</head>

<body>
<form id="form1" runat="server">
<div>

<iframe id="videoEmbed" src="http://localhost/hdfvr/record-api.html" width="700" height="700" style="border:none" frameborder="0"></iframe>

</form>
</body>

thanks in advance.



Thanks & Regards,
Quote


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Get Parent URL From a Child window gopal_nivas 0 3,148 09-02-2015 09:03 AM
Last Post: gopal_nivas
  custom error page handling in mvc praveen 0 1,051 04-23-2014 07:12 AM
Last Post: praveen
  Find examples MDI Parent Child Form Load as shown in Figure dongtrien 3 2,308 12-09-2013 04:56 AM
Last Post: dongtrien
  Error while executing the page in MVC4 trytaher 3 1,257 12-03-2013 08:24 AM
Last Post: magnum_2007
  How do I fix "This page can't be displayed" error in asp.net c#? Iunknown 2 4,745 09-10-2013 05:54 AM
Last Post: magnum_2007



User(s) browsing this thread: 1 Guest(s)