我怎样可以打开YouTube应用在Android中(使用Dreamweaver CS6)一个YouTube链接? [英] How can I open a YouTube link with youtube app in Android (using Dreamweaver CS6)?

查看:266
本文介绍了我怎样可以打开YouTube应用在Android中(使用Dreamweaver CS6)一个YouTube链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Adobe Dreamweaver的CS6和jQuery移动开发Android应用程序。开发后,我的应用程序是通过PhoneGap的放在一起。在这里,我有以下问题:我有与YouTube相关链接一些按钮,但我希​​望他们能够在YouTube应用打开。我想工作只能在Dreamweaver中,并且只在必要时使用插件。我已经读到意图和URL-S,但我不知道如何使用他们,他们在Dreamweaver中是如何工作的。我还没有发现它的任何好的教程呢。

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.

如果你能请详细说明。

推荐答案

通常情况下你可以简单地链接到YouTube上。 YouTube应用将处理请求,如果用户允许,将启动。

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

YouTube应用有特殊意图的处理程序,URL中到YouTube将被逮住。所以通常是第一个链接到YouTube的用户将被或问,如果YouTube应用应该启动浏览器(S)。

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).

这种联系是什么在原生Android应用程序的工作原理是: http://www.youtube .COM /手表?v = XXXX

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

所以在Dreamweaver / HTML就应该是这样的:

So in dreamweaver/html it should look like this:

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

这篇关于我怎样可以打开YouTube应用在Android中(使用Dreamweaver CS6)一个YouTube链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆