Skip to content

WatchTubeTeam/WatchTubeKit

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

WatchTubeKit

Simple package to allow developers to use WatchTube for their apps!

This package lets you hand users off to WatchTube for them to enjoy the WatchTube featureset when looking to watch content from YouTube in your app!

Installing

We recommend using the Swift Package Manager and entering https://github.com/WatchTubeTeam/WatchTubeKit

Usage

Begin by importing the module into the file you want to hand the user off to WatchTube from. You'll be interested in using the openWatchTubeVideo(id: String) function.

In SwiftUI

var body: some View {
  Button("Open Video!") {
    let id = "0FH9cgRhQ-k"
    WatchTube.openVideo(id)
  }
}

You may also use this in WatchKit and it will work the same way.

Upcoming

We're planning to add more features for external applications to do with WatchTube, like presenting a playlist or channel. That will have to come later though!

About

Open WatchTube with any video

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages