Page 1 of 1

Stripchat Cam Embed iFrame?

Posted: Mon Apr 11, 2022 9:58 pm
by grundy
Any Stripcash affiliates know where this promo tool is?

I can't seem to find it in the Ad creatives.

Re: Stripchat Cam Embed iFrame?

Posted: Tue Apr 12, 2022 9:40 pm
by brian74
I think this is what you are looking for.

Stripcash.com > Documentation > Scripts > Site Parts > /widgets/Player/lib.js

Code: Select all

<!-- first of all, download script itself -->
  <script
    id="SCPlayerScript" <!-- this is important -->
    type="text/javascript"
    src="https://creative.your-domain.com/widgets/Player/lib.js"
  ></script>

  <!-- then put the container somewhere in your HTML -->
  <div id="player-container"></div>

  <!-- finally, run the player instance -->
  <script type="text/javascript">
    // 1. create player instance

    const player = new StripchatPlayer({
      modelName: 'YOUR_MODEL_NAME_HERE',
      userId: 'YOUR_USER_ID_HERE',
      strict: 1,
      showModal: 'signup',
      autoplay: 'all',
    });


    // 2. mount it on prepared container

    player.mount(document.getElementById('player-container')).then((app) => {
      // 3. use it

      /*
      app
        .setParams({ modelName: 'ANOTHER_MODEL_NAME' })
        .then(() => {
          // OK
        })
        .catch(() => {
          // Model must be perform private show right now, try later
        });
      */

      // 4. remove it

      // app.destroy();
    })

  </script>
I have not implemented it, but seems pretty self explanatory.