gpt4 book ai didi

ios - 通过 IOS 将多个图像发送到 chromecast 会导致闪烁

转载 作者:行者123 更新时间:2023-11-29 02:23:04 26 4
gpt4 key购买 nike

我想使用 API 而不是自定义接收器将图像流从 iOS 发送到 chromecast。

我可以使用这段代码在 NSTimer 上发送图像

GCKMediaInformation *mediaInformation =
[[GCKMediaInformation alloc] initWithContentID:url
streamType:GCKMediaStreamTypeNone
contentType:@"image/jpg"
metadata:nil
streamDuration:0
customData:nil];

//cast video
[_mediaControlChannel loadMedia:mediaInformation autoplay:TRUE playPosition:0];

但是每帧之间有严重的闪烁。 API是否能够无缝传输图像?

最佳答案

这与 API 无关;这是关于如何在接收方处理多个图像和它们之间的转换的问题; Default/Styled 接收器不会为这类事情做任何特别的事情;你需要编写自己的接收器。

关于ios - 通过 IOS 将多个图像发送到 chromecast 会导致闪烁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27889342/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com