PRNDcompany / YouTubePlayerView

Super easy Youtube Player View, not Fragment
163 stars 24 forks source link

YouTubePlayerView (Deprecated)

⚠️ **Deprecation Notice

Please note that the YouTube Android Player API has been deprecated and is no longer recommended for use. As a result, YouTubePlayerView will also be deprecated. Instead, you can migrate to the YouTube IFrame Player API.

What is YouTubePlayerView?

Problem 1 - Jar File

Problem 2 - Fragment style

Problem 3 - Conflict Fragment with androidx

YouTubePlayerView is super easy YouTube Player View

Setup

Gradle

Maven Central

dependencies {
    implementation 'kr.co.prnd:youtube-player-view:x.x.x'
    //implementation 'kr.co.prnd:youtube-player-view:1.3.0'    
}

If you think this library is useful, please press star button at upside.



How to use

Dynamic code style

<kr.co.prnd.YouTubePlayerView
    android:id="@+id/you_tube_player_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
val youTubePlayerView:YouTubePlayerView = findViewById(R.id.you_tube_player_fragment_view)
youTubePlayerView.play(VIDEO_ID)

Fragment

FAQ

- Why don't you need a developer key?

License

Copyright 2019 PRNDcompany

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.