I'm trying to figure out how I can specify a custom end time for YouTube video. I am using the following shortcode to embed YouTube videos on my website.
[video type="video/youtube" src="https://www.youtube.com/watch?v=nlvVGwssklQ"]
I need to specify different end times for each video on the website.
I am looking for something like:
[video type="video/youtube" src="https://www.youtube.com/watch?v=nlvVGwssklQ" **end="2m6s"**]
It seems you are using the MediaElement plugin for WordPress. The plugin description does not show an option for setting the end time for YouTube videos.
You need to customize the plugin so it allows setting the end time. The MediaElement documentation has a function called getCurrentTime() which returns the current playing time of the video. You can check if the current playing time is equal to your end time and if so, stop the player. You can add this check within the handler for timeupdate event.
Another option is to post a feature request on the plugin support forum
Related
So I'm creating a WordPress website for a friend (based on his YouTube channel) -gaming walkthrough-
where every videos being embedded in a post/page while keeping the same page theme
just changing the embedded link every time.
I tried scraping YouTube channel for links of videos along side game name.
but to make a page each time with different link …. takes a lot of time (200+ videos )
is there a way (maybe running a script ) to automate WordPress for that ?
I want to embed an unlisted channel with unlisted videos into a web page that displays each video as a thumbnail. When you click on the thumbnail it plays in page - or some variation of this. What is the best and easiest way to accomplish this via free plugin or script?
A quick search in google found a couple of options.
Wordpress Legacy
https://www.wpbeginner.com/beginners-guide/how-to-easily-embed-videos-in-wordpress-blog-posts/
Third-Party Plugin
https://wordpress.org/plugins/youtube-embed-plus/
Additional Reading/Options
https://kinsta.com/blog/embed-youtube-video-wordpress/
I want to get a youtube video into a blog post and it should have these features:
start & end time,
autoplay,
loop,
no controls showing
I tried to customize the code myself but only the start and end time worked the rest didn't.
Hi you can use the same shortcode and add you own parameters.
Wordpress Site Admin can't publish <iframe>s on multsite network
I am using wordpress video popup(link) for playing YouTube videos but, after completion the video it is showing related videos on YouTube. I donot want to show related videos at the end of the video it needs to change pause state.This is the link I have used for video popup.How can I stop showing related videos? please provide any links or suggessions
Try adding ?rel=0 at the end of your video URL.
UPDATE
If you go to the website of the wordpress plugin you can see that there is a limitation.
http://wp-time.com/video-popup-plugin-for-wordpress/
You have to install Extend Link Plugin and there you find that a premium attribute rel=”1″ to disable YouTube related videos is necessary.
I am new to WordPress.I want to know how can I use multiple screencast videos in a single page using "Screencast Video Embedder" plugin.
Please help?
If you are using this Screencast.com Video Embedder.
It Looks like the plugin uses shortcodes [screencast url="SCREENCAST SHORT URL" width="WIDTH" height="HEIGHT"] so just add that multiple times to your page with different screencast urls.