This topic contains 15 replies, has 2 voices, and was last updated by  sam.g 4 months, 1 week ago.

JS SDK – integration error

  • Hi,

    I am trying to use the JS SDK. However i get the following error:

    Player.js:39
    static qualityValues = _qualityValues;

     

    could you please let me know what could be wrong.

    Thank you

    screenshot

    • This reply was modified 4 months, 2 weeks ago by  sam.g.
    • This reply was modified 4 months, 2 weeks ago by  sam.g.

    Hi Michaรซl ,

     

    Could you please help me on this one. I am trying to integrate this into a web page, to hide the logo and title bar but i get the above error.

     

    Thank you.

     

    get same error even in RunKit

    Hi Sam,

    Sorry for the delay, I’m gonna help you to figure it out.

    First of all, you did not call correctly the setQuality function (cf: the doc, you are supposed to call Player.qualityValue.ULTRA instead of giving a string “ULTRA”).

    However, the server is automatically scaling the quality for now and we cannot choose to force the quality (available soon). So you can implement your code but you will not see the quality change for now.

     

    Your last post is not our doc, furious package is not ours, here the good link for our npm package : https://www.npmjs.com/package/furioos-sdk

     

    Have a nice day ๐Ÿ™‚
    Best regards.

    Hi Maxence,

    I tried that still the same error. Would it be possibleย  for you to make a test project on Github please?

    a test project that only hides the logo and title bar?

    Hi Sam,

    What have you changed in your code ? i can help you to fix it but you need to share me a screen :).

    I notice that your instanciation call is not good (new Player…) You should pass a string as first and second parameter and the last one is an object and by putting it into {} this will not work.

    Are you familiar with javascript code ? I ask to know if i need to simplify the documentation.

    I give you an example of what you are looking for.
    In your case you are suppose to have something like that :

    import { Player } from ‘furioos-sdk’;

    const player = new Player(“123.456”, “myContainer”, { whiteLabel: true, hideTitle: true });

    player.onLoad(function() {
    // Here you know when the player is ready.
    player.start();

    player.setQuality(Player.qualityValues.ULTRA)
    })

    Can you please try this ? and upload some screen if it still does not work ?

    Have a good day.

     

     

    Hi Maxence,

     

    I really wanna take a moment and thank you for being such a great and patient support , helping to keep improving Furioos. I absolutely enjoy the tool and will help to promote this tool as much as I can. I have already shared information about this on my LinkedIn community.

     

    Regarding your notes,I will try that and will share the result with you.

     

    Thank you Maxcene.

    Cheers,

    Have a good day.

    Hi Maxence,

     

    Unfortunately that didn’t work. Here is what I did:

    First I installed the SDK in a clean new folder called Gilead

    npm install –save furioos-sdk

    Second I initialized it

    npm init

    Third, created index.js and wrote the basic code

    Forth I ran the NPM and got the error:

    node index.js

    Any thoughts?

     

    Here is the code in paste bin if you want to have a look.

    https://pastebin.com/EAYFuByu

     

    Hi Sam,

    Your error is due to your implementation, your project use Common JS and import keyWord is used to EcmaScript module, Try to replace the import { Player } from….

    By const furioosSDK = require(“furioos-sdk”);
    And then you can find the player by calling : const player = furioosSDK.Player;

    Have a good day.

    Hi Maxcene,

     

    I tried that and i am getting the following error!

     

     

     

     

    It would be really great if there is a small working sample project on Github or the website zipped, which shows a default project in an empty page at the center with no logo of title bar. From there it would be easier to pick it up.

     

    Hi Sam,

    Your project is not a web project so this is not gonna work. That part of SDK is for developpers and I hope you understand that i cannot take much time to build a github project (may be later but not enough time for now).

    If the only things you want to do is to hide the title bar and the Furioos’ logo, i’m gonna update the embed share UI in order to add a checkbox to hide title (cf: picture)

     

    Is this a good solution for you to hide the title bar and the furioos’ logo on your website ?
    I think it’s easier and it’s gonna be helpfull for non-developers ๐Ÿ™‚

    Have a good day.

    Hi Maxcene,

    I totally understand that. yes it would be great if we could have no logo and title bar, just a box with thumbnail image-poster in it and the play button thats all.

     

    would that be possible?

    thank you

    Yeah this is possible i’m working on it, it’s gonna be available today stay tuned ๐Ÿ™‚

    The update is done you can now hide the title bar with embed link ๐Ÿ™‚

     

    Hope it’s what you were looking for ๐Ÿ™‚
    See you on Furioos ๐Ÿ˜‰

You must be logged in to reply to this topic.