Stripchat Cam Embed iFrame?

AFFILIATES FORUM - Forum for adult webcam affiliates.
Post Reply
grundy
Posts: 80
Joined: Mon Apr 11, 2022 8:49 pm

Stripchat Cam Embed iFrame?

Post by grundy »

Any Stripcash affiliates know where this promo tool is?

I can't seem to find it in the Ad creatives.
User avatar
brian74
Posts: 142
Joined: Fri Mar 18, 2022 10:18 am

Re: Stripchat Cam Embed iFrame?

Post 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.
Post Reply

Return to “Affiliate Chat”