Any Stripcash affiliates know where this promo tool is?
I can't seem to find it in the Ad creatives.
Stripchat Cam Embed iFrame?
Re: Stripchat Cam Embed iFrame?
I think this is what you are looking for.
Stripcash.com > Documentation > Scripts > Site Parts > /widgets/Player/lib.js
I have not implemented it, but seems pretty self explanatory.
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>