
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@playkit-js/clip-to-parent
Advanced tools
playkit-js-clip-to-parent plugin allows to watch the original video of a clip. It can be watched in the same page, within the same player, or in a new tab.
playkit-js-clip-to-parent is written in TypeScript (*.ts
),
and transpiled in ECMAScript5 using Babel and the TypeScript compiler.
Webpack is used to build the distro bundle and serve the local development environment.
The plugin requires Kaltura Player to be loaded first.
First, clone and run yarn to install dependencies:
git clone https://github.com/kaltura/playkit-js-clip-to-parent.git
cd playkit-js-clip-to-parent
yarn install
Then, build the plugin
yarn run build
Finally, add the bundle as a script tag in your page, and initialize the player
<!--Kaltura player-->
<script type="text/javascript" src="/PATH/TO/FILE/kaltura-player.js"></script>
<!--Playkit clip to parent plugin -->
<script type="text/javascript" src="/PATH/TO/FILE/playkit-clip-to-parent.js"></script>
<div id="player-placeholder" style="height:360px; width:640px">
<script type="text/javascript">
var playerContainer = document.querySelector("#player-placeholder");
var config = {
...
targetId: 'player-placeholder',
plugins: {
clipToParent: {
openInTab: false
}
},
};
var player = KalturaPlayer.setup(config);
player.loadMedia(...);
</script>
</div>
The configuration uses the following structure:
{
openInTab: boolean
}
config.openInTab
Type:
boolean
Default:
true
Description: Defines whether the original video will be loaded in a new tab or in the same page, within the same player.
playkit-js-reels is released under AGPL-3.0
FAQs
Playkit JS clip to parent plugin
We found that @playkit-js/clip-to-parent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.