android - Float视频 View 在Android Youtube API中可用吗

标签 android api youtube

使用Youtube API 开发我的Android应用,并希望将 YouTube 提供的所有功能添加到其实际APP中。

有一项新功能,当播放视频时,如果我们返回,该视频将 float 到右下角。

如何实现此功能。我不希望使用任何第三方库
谁能帮帮我吗?

最佳答案

您需要了解什么是API。 API-就像服务器和客户端之间的桥梁。

从维基百科:

In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application software. In general terms, it's a set of clearly defined methods of communication between various software components. A good API makes it easier to develop a computer program by providing all the building blocks, which are then put together by the programmer. An API may be for a web-based system, operating system, database system, computer hardware, or software library. An API specification can take many forms, but often includes specifications for routines, data structures, object classes, variables, or remote calls. POSIX, Microsoft Windows API, the C++ Standard Template Library, and Java APIs are examples of different forms of APIs. Documentation for the API is usually provided to facilitate usage. The status of APIs in intellectual property law is controversial.



因此,这是与Internet专用部分进行通信的一种方式。您需要一些库来执行此 float 窗口。有些服务向SDK(开发工具包)提供帮助工具,以创建可连接到该服务的应用程序,但据我所知,YouTube还没有它。

看一看this library,也许这就是您所需要的。

关于android - Float视频 View 在Android Youtube API中可用吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41804121/

相关文章:

python - 如何加载维基百科文章的旧(修订)内容

java - Twitter api - 每小时不超过 150 个请求

ios - iOS 上嵌入 YouTube 视频的媒体回调

youtube - 关注YouTube数据API上的特定主题

iphone - 有适用于 iOS 的 RESTful YouTube API 吗?

android - 为 ListView android 格式化 "empty list"文本

android - 如何在更改 EditText 文本时更改 TextView 文本?

Python:无法保存到 CSV

android - 防止 TextInputLayout 使 TextInputEditText 更高

android - Switch State 不改变 setChecked 没有效果