How can I open a YouTube link with youtube app in Android (using Dreamweaver CS6)?

微笑、不失礼 提交于 2019-12-12 02:09:16

问题


I'm using adobe dreamweaver CS6 and jQuery Mobile to develop Android applications. After developing, my apps are put together by phonegap. Here I have the following problem: I have some buttons related to YouTube links, but I want them to open in the YouTube app. I'd like to work only in Dreamweaver, and use plug-ins only if necessary. I've already read about "intents" and "URL-s", but I don't know how to use them and how they work in dreamweaver. I haven't found any good tutorials on it yet.

Please be detailed if you can.


回答1:


Normally you can simply link to youtube. The youtube app will handle the request and will start if the user allows that.

The youtube app has a special intent handler where the urls to youtube will be catched. So normally on the first link to youtube the user will be asked if the youtube app should be started or the browser(s).

Such a link what works in a native android application would be: http://www.youtube.com/watch?v=xxxx

So in dreamweaver/html it should look like this:

<a href="http://www.youtube.com/watch?v=xxxx">Some Video</a> 


来源:https://stackoverflow.com/questions/13663113/how-can-i-open-a-youtube-link-with-youtube-app-in-android-using-dreamweaver-cs6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!