You know website related to movie, tech, gadget, sports etc are likely depends on YouTube video. If you were running any one of following website, video helps article or post more attractive. For example: lets say you are writing article related to Samsung Galaxy S4. So it is better to insert launching ceremony or review video of Samsung Galaxy S4, but it consume more time and readers get bored to view such a lengthy video. Here we guide how to insert a portion or important part of YouTube video in website or webpage without downloading.To insert a part of YouTube video, you just need to follow simple steps given below.
- Step 1: Let us take your are inserting a part of apple iPhone video, first of all insert this code
1.
<div videoID="t2MOwQ089eQ" startTime="1150" endTime="1350" height="460" width="460" id="youtube-player"></div>
<div videoID="t2MOwQ089eQ" startTime="1150" endTime="1350" height="460" width="460" id="youtube-player"></div>
2.
3. <script src="http://eviltek.blogspot.com.googlecode.com/files/youtube-embed.js"></script>
- Step 2: replace video ID with your YouTube ID
- Step 3: insert start time and end time (in seconds), convert starting and ending time to seconds by using this formula (60*minutes+seconds) before placing. you can also change height and width
- If you are using this code in popular site then host youtube embed.js file with your own server
I hope this will work for you, share this post.....Enjoy.!
No comments:
Post a Comment