• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
VdoCipher: Secure Video Hosting for BusinessVdoCipher
☰
Sign Up
  • Features
  • Pricing
  • Testimonials
  • About
  • Contact
Login
Sign Up

Watermark user/time specific dynamic variables on WordPress videos

August 10, 2014 /

Please visit Add Text to Videos with Watermark for a detailed introduction to adding watermark to your videos. This particular blog explains what is going on under the hood of the WP plugin, and is useful only if you are adding your own custom-built variables as part of watermark. Currently name, IP and email can be shown as part of watermark.

You can download the WordPress plugin from the WP Plugin Directory

While adding videos watermark or annotation code on vdocipher videos using the WordPress plugin, you can configure the text to fetch dynamic user variables. These variables can be user name, email or date in custom format. Here is the complete list of variables which can be used in the annotation code.

{name} : This shows the display name of the user who is viewing the video. This calls the function: wp_get_current_user()->display_name

{email} : wp_get_current_user()->user_email

{username} : wp_get_current_user()->user_login

{id} : wp_get_current_user()->ID

{ip} : $_SERVER[‘REMOTE_ADDR’]

{date} : This function allows you to configure the video to show date in custom format. You can use the predefined PHP date constants to display date. The format is {date.pattern}, where pattern will be the input of PHP’s date function.

preg_replace_callback('/\{date\.([^\}]+)\}/', function($matches)
{
   return date($matches[1]);
} , $vdo_annotate_code);

 

An example code using the above variable tokens:

[
{'type':'rtext', 'text':'Your IP : {ip}', 'alpha':'0.8', 'color':'0xFF0000','size':'12','interval':'5000'},
{'type':'text', 'text':'Time: {date.h:i:s A}', 'alpha':'0.5' , 'x':'150', 'y':'100', 'color':'0xFF0000', 'size':'12'}
]

Check example video for the above code here: https://www.vdocipher.com/blog/2014/12/add-text-to-videos-with-watermark/

Currently, the WordPress plugin supports a single annotation parameter across the website. If you must have a video without the annotation, you need to add a no_annotate parameter [vdo id='12345678' no_annotate=true]

Supercharge Your Business with Videos

At VdoCipher we maintain the strongest content protection for videos. We also work extremely hard to deliver the best viewer experience. We'd love to hear from you, and help boost your video streaming business.

Free 30-day trial →

Filed Under: Using VdoCipher, Watermark, WordPress Tagged With: wordpress secure streaming, wordpress video plugin, wordpress video streaming, wordpress watermark

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



Secure Your Videos

Blog Categories

  • DRM 
  • APIs and Sample Codes
  • WordPress
  • E-learning
  • Media
  • Video Tech
  • Portuguese
  • Spanish
  • Arabic

Popular Posts

  • Google Widevine DRM 
  • WordPress video plugin: Add Secure Videos to your WP site
  • Understanding Video Quality – Pixels (p), Bitrate (kbps), Aspect Ratios
  • Add text to video with dynamic watermarking
  • Encrypted Video Streaming: VdoCipher & Others
  • Video Hosting For Online Courses
  • Video Quality: What is Video Bitrate, Pixel & Aspect Ratios 
  • Online Video Player
  • Apple Fairplay DRM
  • Study Apps For Students
  • SVOD VS TVOD VS AVOD
  • DRM Security
  • Exoplayer Tutorial
  • Video Platform Comparison

Recent Top Post

  • Enterprise Video Platform
  • Cloud Video Platform
  • Shaka Player
  • Install FFMPEG on Windows
  • Video Aspect Ratio
  • Video Streaming Protocols
  • Adaptive Bitrate Streaming
  • Elearning Statistics 2021
  • DRM Solution
  • Video Bitrate
  • History Of Youtube
  • React Native Video
  • Video Piracy
Recent Blogs
  • Learning Management System 101: All You Need To Know
  • Cloud Streaming and Cloud Video Platform: A Guide for Modern Media
  • CMAF Streaming Guide to Enhance Video Delivery and User Experience
  • Top LMS (Learning Management System) Platforms, Pros, Cons & User Reviews
  • CENC Common Encryption Methods and Algorithms Guide
  • How to Create & Sell Your Online Video Course – Complete Guide
  • What is DRM Technology, its Working & Video Content Protection Types
  • Video Hosting for WordPress: Secure Customisable Player Plugin
Popular Blogs
  • How many use easy video download piracy tools ?
  • Apple FairPlay DRM: Video Protection on iOS & Safari
  • 12 Video Piracy Statistics, 6 Prevention Methods
  • Elearning Video Protection: Ensure Piracy Protection of Your Videos
Navigation
  • Home
  • Glossary
  • Features
  • About Us
  • Pricing
  • FAQs
  • Terms
  • Privacy Policy
  • Contact US
Industry
  • Education and Training
  • Media and Entertainment
  • DRM and Antipiracy
  • APIs for Developers
  • Video Hosting and Marketing
  • Widevine DRM
  • Video DRM
  • Google DRM
  • DRM license Server
  • Custom Video Player
  • <
Follow Us
We are Amazon AWS Technology Partner for Secure Video Hosting for Business
We use Akamai CDN for Secure Video Streaming for Business

© 2023 VdoCipher Media Solutions Pvt. Ltd.