automattic / jetpack-videopress
VideoPress package
Installs: 8 787
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 8
Forks: 1
Type:jetpack-library
Requires
- php: >=7.0
- automattic/jetpack-admin-ui: ^0.4.5
- automattic/jetpack-assets: ^2.3.9
- automattic/jetpack-connection: ^5.1.2
- automattic/jetpack-my-jetpack: ^4.35.11
- automattic/jetpack-plans: ^0.4.11
Requires (Dev)
- automattic/jetpack-changelogger: ^4.2.6
- automattic/wordbless: @dev
- brain/monkey: 2.6.1
- yoast/phpunit-polyfills: ^1.1.1
Suggests
- automattic/jetpack-autoloader: Allow for better interoperability with other plugins that use this package.
- dev-trunk / 0.24.x-dev
- v0.24.11
- v0.24.10
- v0.24.9
- v0.24.8
- v0.24.7
- v0.24.6
- v0.24.5
- v0.24.4
- v0.24.3
- v0.24.2
- v0.24.1
- v0.24.0
- v0.23.31
- v0.23.30
- v0.23.29
- v0.23.28
- v0.23.27
- v0.23.26
- v0.23.25
- v0.23.24
- v0.23.23
- v0.23.22
- v0.23.21
- v0.23.20
- v0.23.19
- v0.23.18
- v0.23.17
- v0.23.16
- v0.23.15
- v0.23.14
- v0.23.13
- v0.23.12
- v0.23.11
- v0.23.10
- v0.23.9
- v0.23.8
- v0.23.7
- v0.23.6
- v0.23.5
- v0.23.4
- v0.23.3
- v0.23.2
- v0.23.1
- v0.23.0
- v0.22.4
- v0.22.3
- v0.22.2
- v0.22.1
- v0.22.0
- v0.21.7
- v0.21.6
- v0.21.5
- v0.21.4
- v0.21.3.1
- v0.21.3
- v0.21.2
- v0.21.1
- v0.21.0
- v0.20.2
- v0.20.1
- v0.20.0
- v0.19.3
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.0
- v0.17.6.1
- v0.17.6
- v0.17.5
- v0.17.4.1
- v0.17.4
- v0.17.3
- v0.17.2
- v0.17.1
- v0.17.0
- v0.16.0
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.13
- v0.14.12
- v0.14.11
- v0.14.10
- v0.14.9
- v0.14.8
- v0.14.7
- v0.14.6
- v0.14.5
- v0.14.4
- v0.14.3
- v0.14.2
- v0.14.1
- v0.14.0
- v0.13.10
- v0.13.9
- v0.13.8
- v0.13.7
- v0.13.6
- v0.13.5
- v0.13.4
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.1
- v0.12.0
- v0.11.1
- v0.11.0
- v0.10.12
- v0.10.11
- v0.10.10
- v0.10.9
- v0.10.8.1
- v0.10.8
- v0.10.7
- v0.10.6
- v0.10.5
- v0.10.4
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.1
- v0.2.0
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-release-v0.13.4
- dev-release-v0.10.8.1
This package is auto-updated.
Last update: 2024-10-11 16:47:19 UTC
README
VideoPress package
How to consume VideoPress package
Install the right packages
First, let's make sure that the automattic/jetpack-videopress
package is set up in your composer.json file:
At minimum you need three things. One is the automattic/jetpack-autoloader
package, which will ensure that you're not colliding with any other plugins on the site that may be including the same packages. Two, of course, is the automattic/jetpack-videopress
package. Third is our automattic/jetpack-config
package that will be your tool for initializing the packages.
Initialize the package
Second, we must initialize ("configure") the jetpack-videopress
package within your plugin, and provide the information about it.
This is where the jetpack-config
and jetpack-autoload
packages come into play. Do this, and you're ready to start consuming the Jetpack connection!
use Automattic\Jetpack\Config; require_once plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php'; function jpcs_load_plugin() { // Here we enable the Jetpack packages. $config = new Config(); $config->ensure( 'videopress' ); } add_action( 'plugins_loaded', 'jpcs_load_plugin', 1 );
Initialization Options
When initializing VideoPress, you can choose whether you want to initialize the Admin UI or not. By default, the admin UI is not initialized. If you want it, just add the admin_ui
key in your options when ensuring the feature:
$config = new Config(); $config->ensure( 'videopress', array( 'admin_ui' => true ) );
Development
Build all bundles
jetpack build packages/videopress
Build in watching dog mode 🐕
jetpack watch packages/videopress
Get Help
Using this package in your WordPress plugin
If you plan on using this package in your WordPress plugin, we would recommend that you use Jetpack Autoloader as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.
Security
Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.
License
videopress is licensed under GNU General Public License v2 (or later)