Jump to content

How to add a JS library to a plugin


Recommended Posts

VicMoore
Posted

I am trying to use the hls.min.js library within a plugin, but don't know how to add it.  I tried adding a script tag to load the lib as shown below, but this did not work.

<div is="emby-scroller" class="view flex flex-direction-column scrollFrameY flex-grow" data-mousewheel="true" data-horizontal="false" data-centerfocus="card" data-controller="__plugin/mytvconfigjs" data-title="${HeaderTVSourceSetup}">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet">
    <script type="text/javascript" src="./hls.min.js"></script> 
 

How should I add this library so I can use it within an Emby plugin.

My goal is to stream an Emby video to a node in the DOM using hls.

Vic

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...