条语,一款结合了人工智能的社交APP。将语音和视频作为用户主要互动方式,为用户提供一个相较于图文更具视听效果的社交环境。
目前公测中,期间派发10,000张「专属AI语音机器人-15分钟克隆你的声音」兑换券和10,000张「个性化AI语音机器人-自由编辑文字转AI语音」7天券。
添加微信:QSHI_2023,备注【条语】,即可获得1张「专属AI语音机器人」兑换券和1张「个性化AI语音机器人」7天券。
抖音 iOS Swift版
Home Page: https://sshiqiao.github.io/document/douyin-swift.html
License: MIT License
条语,一款结合了人工智能的社交APP。将语音和视频作为用户主要互动方式,为用户提供一个相较于图文更具视听效果的社交环境。
目前公测中,期间派发10,000张「专属AI语音机器人-15分钟克隆你的声音」兑换券和10,000张「个性化AI语音机器人-自由编辑文字转AI语音」7天券。
添加微信:QSHI_2023,备注【条语】,即可获得1张「专属AI语音机器人」兑换券和1张「个性化AI语音机器人」7天券。
使用1.0版本,对比了一下demo,好像只是添加了use_frameworks这一个区别, 没有找到引用类蛋疼
视频播放的tableView ,创建时height 为什么是屏幕5倍的高度
这样写我能理解
VisitorRequest.saveOrFindVisitor(success: { data in
let response = data as! VisitorResponse
let visitor = response.data
Visitor.write(visitor:visitor!)
}, failure: { error in
print ("注册访客用户失败")
})
但是这样就
VisitorRequest.saveOrFindVisitor(success: { data in
let response = data as! VisitorResponse
let visitor = response.data
Visitor.write(visitor:visitor!)
}) { error in
print("注册访客用户失败")
}
为何 { error in print("注册访客用户失败") }
是写在 saveOrFindVisitor()
外面的😰
会报下面的编译错误
Showing All Messages
"_swift_getFieldAt", referenced from:
HandyJSON.Metadata.Class._propertyDescriptionsAndStartPoint() -> ([HandyJSON.Property.Description], Swift.Int32?)? in libHandyJSON.a(Metadata.o)
HandyJSON.Metadata.Struct.propertyDescriptions() -> [HandyJSON.Property.Description]? in libHandyJSON.a(Metadata.o)
ld: symbol(s) not found for architecture arm64
Hello @sshiqiao , I am unable to load some video I am getting blank screen instead of Video. Can you please suggest me something.
Please Help!
你好,请问该仓库遵循什么开源协议?MIT吗?麻烦请补充开源协议文件。谢谢!
func respondWithDataForRequest(loadingRequest:AVAssetResourceLoadingRequest) -> Bool {
let mimeType = self.response?.mimeType ?? ""
let contentType = UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, mimeType as CFString, nil)
loadingRequest.contentInformationRequest?.isByteRangeAccessSupported = true
loadingRequest.contentInformationRequest?.contentType = contentType?.takeRetainedValue() as String?
// 崩溃位置 ---
loadingRequest.contentInformationRequest?.contentLength = (self.response?.expectedContentLength)!
var startOffset:Int64 = loadingRequest.dataRequest?.requestedOffset ?? 0
if loadingRequest.dataRequest?.currentOffset != 0 {
startOffset = loadingRequest.dataRequest?.currentOffset ?? 0
}
if Int64(data?.count ?? 0) < startOffset {
return false
}
let unreadBytes:Int64 = Int64(data?.count ?? 0) - (startOffset)
let numberOfBytesToRespondWidth:Int64 = min(Int64(loadingRequest.dataRequest?.requestedLength ?? 0), unreadBytes)
if let subdata = (data?.subdata(in: Int(startOffset)..<Int(startOffset + numberOfBytesToRespondWidth))) {
loadingRequest.dataRequest?.respond(with: subdata)
let endOffset:Int64 = startOffset + Int64(loadingRequest.dataRequest?.requestedLength ?? 0)
return Int64(data?.count ?? 0) >= endOffset
}
return false
}
在项目里直接把PlayerView拿过来用的, 一开始都运作的很好, 点开过若干(十个以上)播放页面以后就黑了,以后点开播放都是黑屏了
业务流程是外面列表有播放器,进入内容页面有播放器,点击全屏播放还有播放器(可能三个都有播放过,请求的是同一地址)
urlSession:didCompleteWithError:显示error为nil, 正确存到了Cache中,
但PlayerItem显示State:Fail,其中Error信息如下:
Error Domain=AVFoundationErrorDomain Code=-11839 "无法解码" UserInfo={NSLocalizedDescription=无法解码, NSUnderlyingError=0x283ea4fc0 {Error Domain=NSOSStatusErrorDomain Code=-12913 "(null)"}, NSLocalizedRecoverySuggestion=停止其他所有对媒体解密的操作,然后再试一次。, NSLocalizedFailureReason=此媒体所需的解码器正忙。}
从一篇文章中找到了解决方案
在APP运行期间, 只要执行这个方法, 超过16次, 就会出现这个这个错误.
https://www.jianshu.com/p/d3566e950e91
可能顺便解决内存积存的问题?
我发现在scrollViewDidEndDragging 实现上下滑分页逻辑的时候,UIScrollView的减速效果很明显,怎么把减速效果去掉
AVPlayerView -> respondWithDataForRequest -> UTTypeCreatePreferredIdentifierForTag -> Unmanaged
Dream to find a kotlin(android) version. LOL
iPhone has denied the launch request.
iphone7 12.1 xcode 10.1
希望大神多多分享这种干货
dyld`dyld_fatal_error:
-> 0x1200f5088 <+0>: brk #0x3
手机 iphone6 plus 8.4.1 xcode 10.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.