Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coursekit/client

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coursekit/client

CourseKit client library

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
increased by3200%
Maintainers
1
Weekly downloads
 
Created
Source

CourseKit Client

npm

Live demo

https://coursekit-nuxt-demo.netlify.app/

Installation

$ npm i @coursekit/client

Video player

HTML
<div id="video"></div>
JS
const lessonId = ''
const courseId = ''
const opts = {}
const loader = new VideoLoader(courseId, lessonId, opts)

const { status, loginUrl, player } = await loader.createPlayer('#video')

if (status === 200) {
  // User successfully authenticated
  player.addEventListener('ready', () => {
    // Video is ready to play
  })
}

if (status === 401) {
  // User is unauthenticated, show login URL and enrolment link
}

if (status === 403) {
  // User is unenroled, show enrolment link
}

Client

Get watched lessons

TBA

FAQs

Package last updated on 29 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc