是的,我知道这些问题非常含糊,但在我与 AWS 合作的这些年里,我从未遇到过这样的问题!
无论如何,这非常简单。我正在运行一个最少 2 个最多 4 个实例的 EB 环境。每隔一两天,我都会收到一条错误消息“发生了意外错误 [错误代码:0000000001]”。为了解决这个问题,我每次都必须重建整个环境
实例 ID '' 上的命令执行失败。正在中止操作。让实例运行以进行故障排除。实例尚未重新附加到负载均衡器。
有没有人遇到过这样的问题?
我希望录音继续,但音频静音.我不打算暂停音频.
我现在的替代方案是暂停音频,抛出沉默填充,继续录制,但如果有更简单的方法,那就太棒了.
将视频嵌入UITableViewCell的最佳方法是什么?我正在尝试构建类似Vine/Instagram的东西.
我能够很好地处理异步图像加载SD_WebImage ..但不幸的是它们不支持视频.我也尝试使用MPMoviePlayer进行嵌入,但它只是显示为黑屏.这是我试过的:
override func viewDidLoad() {
super.viewDidLoad()
tableView.frame = CGRectMake(0, 0, view.bounds.width, view.bounds.height);
tableView.delegate = self
tableView.dataSource = self
tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "cell")
self.view.addSubview(tableView)
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("cell") as! UITableViewCell
var moviePlayer : MPMoviePlayerController?
let url = NSURL (string: "http://jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v")
moviePlayer = MPMoviePlayerController(contentURL: url)
if let player = moviePlayer {
player.view.frame = CGRectMake(0, 100, view.bounds.size.width, 180)
player.prepareToPlay()
player.controlStyle = .None
player.repeatMode = .One
player.scalingMode = .AspectFit
cell.addSubview(player.view)
}
return cell …Run Code Online (Sandbox Code Playgroud)