🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
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

Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
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