使用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/