objective-c - ios 关于跳转至客户端播放视频的问题
高洛峰
高洛峰 2017-04-17 17:38:57
0
2
280

如题
现在业务要求是这样的 如果手机上有客户端 比如优酷 就直接跳转至优酷播放,如果没有 就直接跳转网页播放 跳转网页比较简单就是一个连接 但是跳转APP端的该如何跳转 求解答 谢谢

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
洪涛

You can use Url Scheme to jump to other apps. I have a note to check whether the third-party APP is installed and jump to start:
http://www.jianshu.com/p/28f517775214# 🎜🎜#

阿神

Use URL schema.

Check the interface of Youku to see if it provides a URL to quickly open the video player, such as youku://media?id=123, id=123 is the id of the video to be opened.

If provided, construct a similar URL and pass it to the openURL method. The rest of the work is left to youku App.

func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {
    return true
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!