我在我的应用程序中使用AVPlayer播放视频.
在我的应用程序中,我添加了播放下一个/上一个视频的功能,所以如何设置空缓冲区.
所以,如果有人有解决方案可以帮助我.
objective-c ios avplayer avplayeritem avplayerviewcontroller
我已经在我的 ios 应用程序中实现了条带基本集成。我参考了此链接进行集成https://stripe.com/docs/mobile/ios/basic集成。
当我打电话时 STPPaymentHandler.shared().confirmPayment(withParams: paymentIntentParams,authenticationContext: paymentContext),
这是我的代码
// Assemble the PaymentIntent parameters
let paymentIntentParams = STPPaymentIntentParams(clientSecret: clientSecret)
paymentIntentParams.paymentMethodId = paymentResult.paymentMethod?.stripeId
paymentIntentParams.configure(with: paymentResult)
// Confirm the PaymentIntent
STPPaymentHandler.shared().confirmPayment(withParams: paymentIntentParams, authenticationContext: paymentContext) { status, paymentIntent, error in
switch status {
case .succeeded:
// Your backend asynchronously fulfills the customer's order, e.g. via webhook
completion(.success, nil)
case .failed:
completion(.error, error) // Report error
case .canceled:
completion(.userCancellation, nil) // Customer cancelled
@unknown default:
completion(.error, nil)
}
}
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Error Domain=com.stripe.lib …Run Code Online (Sandbox Code Playgroud)