cannot use program until tShellCommand is stopped.
Posted: Fri Jan 18, 2013 7:28 pm
Hello everyone!
This is my first post and I am very very new to programming but have made it pretty far via tutorials and such.
But now im stuck and need any assistance that could be given.
This programs purpose is to connecting to a IP camera and this program has to use ffmpeg/ffplay. (another player is not an option)
What I have so far works exactly as I need it to however when the video starts I cannot touch any other button on the app until the video is stopped.
If i do hit buttons while video is playing it seems to store what I hit in memory and will exectute once the video is stopped.
Note video is stopped by closing the video window.
This program is built on one stack. Is this my problem? Is it that I need to use some time of while-then statement.
Any help would be appricated.
Below is a sample of what the script is so far. other functions are the same but are used for recording or taking snapshots.
on mouseUp
answer "Video feed will begin shortly..Press OK to continue.."
put field "ipaddress" into IpAddress
put "C:/ff/bin/ffplay -i rtsp://" into Path
put ":8554/main" & space & "-ss" & space & "3" & space & "-x" & space & "640" & space & "-y" & space & "380" into MainPlay
put Path & IpAddress & MainPlay into tShellCommand
set the hideconsolewindows to true
put shell(tShellCommand)
end mouseUp
This is my first post and I am very very new to programming but have made it pretty far via tutorials and such.
But now im stuck and need any assistance that could be given.
This programs purpose is to connecting to a IP camera and this program has to use ffmpeg/ffplay. (another player is not an option)
What I have so far works exactly as I need it to however when the video starts I cannot touch any other button on the app until the video is stopped.
If i do hit buttons while video is playing it seems to store what I hit in memory and will exectute once the video is stopped.
Note video is stopped by closing the video window.
This program is built on one stack. Is this my problem? Is it that I need to use some time of while-then statement.
Any help would be appricated.
Below is a sample of what the script is so far. other functions are the same but are used for recording or taking snapshots.
on mouseUp
answer "Video feed will begin shortly..Press OK to continue.."
put field "ipaddress" into IpAddress
put "C:/ff/bin/ffplay -i rtsp://" into Path
put ":8554/main" & space & "-ss" & space & "3" & space & "-x" & space & "640" & space & "-y" & space & "380" into MainPlay
put Path & IpAddress & MainPlay into tShellCommand
set the hideconsolewindows to true
put shell(tShellCommand)
end mouseUp