Aviary HTM5L示例不在iOS Safari工作(照片似乎保持加载)
-
11-12-2019 - |
题
我拍摄了样本HTML5并在iOS Safari中尝试。
样本照片出现,但连续保留加载,也没有执行禽流编辑动作。
任何人都有解决方案吗?
这是 http://www.aviary.com/web-文档
<!-- Load Feather code -->
<script type="text/javascript" src="http://feather.aviary.com/js/feather.js"></script>
<!-- Instantiate Feather -->
<script type="text/javascript">
var featherEditor = new Aviary.Feather({
apiKey: '12345678',
apiVersion: 2,
tools: 'all',
appendTo: 'injection_site',
onSave: function(imageID, newURL) {
var img = document.getElementById(imageID);
img.src = newURL;
}
});
function launchEditor(id, src) {
featherEditor.launch({
image: id,
url: src
});
return false;
}
</script>
<div id="injection_site"></div>
<img id="image1" src="http://images.aviary.com/imagesv5/feather_default.jpg"/>
<!-- Add an edit button, passing the HTML id of the image and the public URL ot the image -->
<p><input type="image" src="http://advanced.aviary.com/images/feather/edit-photo.png" value="Edit photo" onclick="return launchEditor('image1', 'http://images.aviary.com/imagesv5/feather_default.jpg');" /></p>
. 解决方案
我在api@aviary.com上联系了鸟瞰,他们提到了今天有一个错误的错误。它现在有效。
其他提示
必须将此代码放在直播服务器上,本地似乎在此处工作。鸟鸟Web文档说:“在服务器上设置一个位置,以便发送服务器到服务器HTTP帖子”。
以防... 您必须在照片中添加完整的“src”。 相反,我们使用“src='/ upload / miphoto.png'”你必须使用“src=' http:// localhost:8080 / project /上传/ miphoto.png '“ 希望这有助于!
不隶属于 StackOverflow