Giter Site home page Giter Site logo

kontent-custom-element-wistia's Introduction

Last modified Issues MIT License

Stack Overflow GitHub Discussions

kontent logo wistia logo

FeaturesDemoDeployConfigurationSaved valueDevelopmentContributorsLicenseResources

This custom element for Kentico Kontent allows users to upload, search & select videos from wistia media projects.

Features

  • Editors can
    • Select projects from Wistia
    • Upload new files
    • Search media files by name
    • Store media file json as value (example output below)

Demo

Demo Animation

Quick Deploy

Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your account as well.

Deploy to Netlify

Configuration

You will need to add the custom element to a content type filling in the hosted code URL and the following JSON parameters:

{
    "wistiaAccessToken": "<YOUR WISTIA ACCESS TOKEN>",
    "wistiaSubdomain": "<YOUR WISTIA SUBDOMAIN>",
    "videoPreviewType": "video | thumbnail", // choose one
    "projectsPerRow": 3, // number of projects per row
    "videosPerRow": 3, // number of videos per row
    "pageSize": 9 // page size of videos to load
}

What is Saved

The custom element saves JSON with selected media file as a string.

Example:

{
   "id":72627052,
   "name":" [Example Video] Wistia Video Essentials",
   "type":"Video",
   "created":"2021-05-04T07:48:43+00:00",
   "updated":"2021-05-04T13:49:00+00:00",
   "duration":214.882,
   "hashed_id":"zjj3nsgyud",
   "description":"",
   "progress":1.0,
   "status":"ready",
   "thumbnail":{
      "url":"https://embed-ssl.wistia.com/deliveries/da5c32cfe2d73b62db603d73cd54164e.jpg?image_crop_resized=200x120",
      "width":200,
      "height":120
   },
   "project":{
      "id":5883712,
      "name":"Richards's first project",
      "hashed_id":"7zn7cu096m"
   },
   "assets":[
      {
         "url":"http://embed.wistia.com/deliveries/933fdcdf0d6e606d4c6cf5d8704e7ad9.bin",
         "width":1920,
         "height":1080,
         "fileSize":397431776,
         "contentType":"video/mp4",
         "type":"OriginalFile"
      },
      {
         "url":"http://embed.wistia.com/deliveries/da5c32cfe2d73b62db603d73cd54164e.bin",
         "width":960,
         "height":540,
         "fileSize":502852,
         "contentType":"image/png",
         "type":"StillImageFile"
      }
   ],
   "transcript":{
      "videoId":"6bedf9f1-d2c0-4873-aded-4deef17fdb27"
   },
   "embedCode":"<EMBED CODE>"
}

Development

This custom element is built with Angular. See package.json for scripts regarding building & publishing the library.

Contributors

We have collected notes on how to contribute to this project in CONTRIBUTING.md.

Originally created by @Enngage

License

MIT

Additional Resources

kontent-custom-element-wistia's People

Contributors

enngage avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.