在iPhone Safari HTML页面上打开带有图像的Youtube视频

时间:2016-10-06 17:38:52

标签: javascript html iphone iframe youtube

有人可以帮我弄清楚如何使用占位符图片在手机上打开YouTube视频,以便用户在iphone上的safari中点击html页面上的图片时,视频会自动播放全屏(注意:开启在这个例子中,视频会自动全屏显示,就像点击嵌入式youtube iframe时一样。

谢谢!

1 个答案:

答案 0 :(得分:0)

下面的正常语法是否会给您带来某种问题?它在我的模拟器上看起来不错......:

var f = @"C:\Program Files (x86)\MyAppFolder\many_subfolders\manager.exe";

//f.length > 260 characters

bool fileExists = File.Exists(f); //return false, even if the file exists

// Throw exception: "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
bool fileInfoExists = new FileInfo(f).Exists;