Embedding YouTube and Vimeo videos within CNP

This forum is dedicated for discussions related to features of CNP. All suggestions are welcome!! We may not be able address all of them nevertheless.

Moderators: Madhav Jois, Vikas T R, Nevil Zaveri, Aniket R Thopate, Adithya U N








Embedding YouTube and Vimeo videos within CNP

Postby CNP Staff » Mon Mar 12, 2012 7:31 pm

Friends,

We are enabling ways to embed YouTube and Vimeo videos within CNP Pages.

Here is how you can do it. For YouTube video like this - http://www.youtube.com/watch?v=Khfjp_AqhKw" onclick="window.open(this.href);return false; for example note down the video ID after v= in the URL. In this case it is Khfjp_AqhKw
Now put that between the new BB Code that we have created like this -

[youtube]Khfjp_AqhKw[/youtube]

That's it !!

If you want to just use the background music use the this BBcode - [youtube_no_video] For example you may add this to your image description -

[youtube_no_video]Khfjp_AqhKw[/youtube_no_video]

With this above BBCode you will only hear the music associated with a video which can serve as background music for your image.

PLEASE NOTE IF WE HAVE TWO SUCH BBCodes IN A PAGE MUSIC WILL OVERLAP. SO DON'T ADD A COMMENT WITH
ANOTHER BACKGROUND MUSIC. NO TWO BACKGROUND VIDEO MUSICS PLEASE !!

If you want to point to a short portion of a Youtube video with start and end then you can achieve this by,

[youtubese]video_id,start_time_in_seconds,end_time_in_seconds[/youtubese]

Here is an example -

[youtubese]UwsEeQpxkFw,1200,1620[/youtubese]


For Vimeo videos like for example -"http://vimeo.com/8426920"

Copy the last video ID, which in this case is 8426920 Put this ID between the new BB Code as shown below -

[vimeo]8426920[/vimeo]

Hope this will be a useful addition to share videos if any related to the context of any discussion.

The actual videos will get embedded as shown below.
Regards,
CNP Staff
CNP Staff
 
Posts: 89
Joined: Sun Apr 27, 2008 12:59 pm

Re: Embedding YouTube and Vimeo videos within CNP

Postby CNP Staff » Mon Mar 12, 2012 7:32 pm

The purpose of these embedded videos is just to show how embedding works within a CNP page.






Regards,
CNP Staff
CNP Staff
 
Posts: 89
Joined: Sun Apr 27, 2008 12:59 pm

Re: Embedding YouTube and Vimeo videos within CNP

Postby Ganesh H Shankar » Tue Jul 31, 2018 8:50 pm

I have added a new BBCode to embed an MP4 video. Here is how you can do it:

[mp4_video]URL[/mp4_video]

URL above is a link to an MP4 file on the web. Here is an example:

[mp4_video]http://www.example.com/sample_video.mp4[/mp4_video]

I hope this will be useful.
Ganesh H. Shankar
Wishing you best light,

Image
Fine Art Nature Photography
User avatar
Ganesh H Shankar
Site Admin
 
Posts: 1141
Joined: Thu Apr 24, 2008 6:54 pm
Location: Bangalore, INDIA









Return to Your Views and Suggestions to Improve CNP

Who is online

Users browsing this forum: No registered users and 14 guests