按钮中的播放图标
如何在按钮中获得此播放箭头?如果您有一个嵌入 YouTube 视频的网站,则该箭头应该看起来像这样。
(来源:iPhoneIncubator.com)
How do I get this play arrow in a button? This arrow should look like if you have an website with an embed YouTube video.
(source: iPhoneIncubator.com)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您要直接从应用程序播放 YouTube 内容,这里有一些有关如何放置 UIWebView 来显示 YouTube 内容的信息。查看方法#2,它演示了该缩略图的创建。
YouTube API 信息
对于其他视频源,您可以使用将按钮的背景颜色设置为视频的静止帧,
然后将按钮的图像属性设置为具有透明度的播放按钮。
If you're going to be playing YouTube content directly from the app there is some information on how to place a UIWebView to display the content from YouTube. Check out Method #2 which demonstrates the creation of this thumbnail.
YouTube API Information
For other video sources, you could set the background color of the button to be a still frame of the video using
Then set the button's image property to a play button with transparency.