InfoHeap
Tech tutorials, tips, tools and more
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Youtube tutorials

  • Create and embed youtube playlist
  • Create youtube video link from a specific start time
  • Embed youtube video slice
  • Enable youtube monetization and link to adsense
  • Upload closed captions youtube video
  • Create vanity url for your channel in youtube
 
  • Home
  • > Tutorials
  • > Youtube

How embed youtube video slice (specific start and end time)

By admin | Last updated on Mar 21, 2016

Youtube iframe video embed code can be used to embed a slice of a video using extra parameters start and end. These are the steps to embed video slice.

  1. Visit the video page, click share and then embed.
    youtube-video-share-embed

  2. You should be able to see the following embed code. This can be used to embed the full video.
    <iframe width="560" height="315" src="https://www.youtube.com/embed/NxJ0W-yz0LQ" frameborder="0" allowfullscreen></iframe>

  3. Now add start=20 and end=25 parameters as shown below. This code can be used to embed video which will start at 20 seconds and play for 5 seconds (till 25 seconds).
    <iframe width="560" height="315" src="https://www.youtube.com/embed/NxJ0W-yz0LQ?start=20&end=25" frameborder="0" allowfullscreen></iframe>
    try it online

Suggested posts:

  1. How to create youtube video link from a specific start time
  2. Embed youtube video with javascript on-click lazy loading approach
  3. How to create and embed youtube playlist
  4. How to upload closed captions for your youtube video
  5. HTML5 – video tag
  6. Using camtasia to generate screencast video on your computer
  7. Comic strip – Video ads and recursion
  8. How to change default system voice for text-to-speech on Mac
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Tutorials, Youtube
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries

Copyright © 2023 InfoHeap.

Powered by WordPress