adobe flash player在服务器2008 r2 IIS7 / 7.5中不起作用? [英] adobe flash player does not working in server 2008 r2 IIS7/7.5?
本文介绍了adobe flash player在服务器2008 r2 IIS7 / 7.5中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好....
我开发的网站用于在asp.net4.0和iis6中使用Flash播放器(.swf)捕获图像。但托管服务器2008 r2 ii7 / 7.5无效。这里用的是JSON对象,请帮帮我!是否需要任何服务器配置?
Hello....
Am developed website for webcam capturing images using flash player(.swf) in asp.net4.0 and iis6. But hosted in server 2008 r2 ii7/7.5 is not working. Here am used JSON object,Please help me!. Required any server configuration?
<script src='<%=ResolveUrl("~/Webcam_Plugin/jquery.webcam.js") %>' type="text/javascript"></script>
<script type="text/javascript">
var pageUrl = '<%=ResolveUrl("~/CS.aspx") %>';
$(function () {
jQuery("#webcam").webcam({
width: 214,
height: 140,
mode: "save",
swffile: '<%=ResolveUrl("~/Webcam_Plugin/jscam.swf") %>',
debug: function (type, status) {
$('#camStatus').append(type + ": " + status + '<br /><br />');
},
onSave: function (data) {
$.ajax({
type: "POST",
url: pageUrl + "/GetCapturedImage",
data: '',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
$("[id*=imgCapture]").css("visibility", "visible");
$("[id*=imgCapture]").attr("src", r.d);
},
failure: function (response) {
alert(response.d);
}
});
},
onCapture: function () {
webcam.save(pageUrl);
}
});
});
function Capture() {
webcam.capture();
return false;
}
</script>
<asp:Image ID="imgCapture" runat="server" Style="width:185px; height:140px;" />
<br />
<asp:Button ID="btnCapture" Text="Capture" runat="server" OnClientClick="return Capture();" style="font-weight: 700; color: #0033CC" />
<br />
<div id="webcam">
</div>
谢谢你。
Thank u.
推荐答案
(function(){
jQuery(#webcam)。webcam({
width:214,
高度:140,
模式:保存,
swffile:'<% = ResolveUrl( 〜/ Webcam_Plugin / jscam.swf)%> ',
debug:function(type,status){
(function () { jQuery("#webcam").webcam({ width: 214, height: 140, mode: "save", swffile: '<%=ResolveUrl("~/Webcam_Plugin/jscam.swf") %>', debug: function (type, status) {
('#camStatus')。append(type +:+ status +' < br / > < br / > ');
},
onSave:function(data){
('#camStatus').append(type + ": " + status + '<br /><br />'); }, onSave: function (data) {
.ajax({
type:POST,
url:pageUrl + / GetCapturedImage,
data:'',
contentType:application / json; charset = utf-8,
dataType:json,
success:function( r){
.ajax({ type: "POST", url: pageUrl + "/GetCapturedImage", data: '', contentType: "application/json; charset=utf-8", dataType: "json", success: function (r) {
这篇关于adobe flash player在服务器2008 r2 IIS7 / 7.5中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文