pal.video
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Pal.video | web plugin

Your new in app friend.
Integrate video story within your app.

  • Get feedbacks in your app using the power of videos.
  • Onboard your users

Installation with node

npm i pal.video

Page npm de pal.video

Add pal style file Open your index.html file and add this style file between <head> and </head> like this

<head>
    ...
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pal.video/build/style.css" type="text/css" />
</head>

Installation using html only

Open your index.html file and add these style and js files between <head> and </head> like this :

<head>
    ...
    <script src="https://cdn.jsdelivr.net/npm/pal.video/build/pal.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pal.video/build/style.css" type="text/css" />
</head>

Send an event

Inside the body of your page.

1 - Setup the pal instance

<script type="text/javascript">
    var devApiKey = "eyJ...";
    var prodApiKey = "eyJ0...";

    var pal = pal.Pal.createInstance({
        apiKey: prodApiKey
    });
</script>


2 - Send the Pal event on every page

<script type="text/javascript">
    var pal = pal.Pal.getInstance()
    pal.initialize().then(() => {
        pal.logCurrentScreenAuto();
    });
</script>

If you prefer sending the event with a manual path please use this :

logCurrentScreen('/mypage/'); // don't include your domain name here. Only the path 

Documentation

📙 Check our complete documentation here

Compile

npm run compile-browser

Example run

cd example/webpage 
npm install
npm start

Readme

Keywords

Package Sidebar

Install

npm i pal.video

Weekly Downloads

43

Version

1.0.5

License

none

Unpacked Size

174 kB

Total Files

49

Last publish

Collaborators

  • palvideo