我正在尝试使用Swift从YouTube (个人帐户)加载视频/播放列表。我添加了YTPlayerView类和iframe文件,但视频没有加载。我在故事板中添加了一个UIView,并将其类更改为YTPlayerView并创建了一个IBOutlet。youtube_ios_player_helper
@IBOutlet var videoPlayerv=M7
in another folder I have the following code:
import AVKit
videoPlayer = AVPlayer(url: Bundle.main.url(forResource: filename, withExtension: fileFormatvideoPlayer?.play() return videoPlayer!}
<