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: Pramod Viswanath, Shivakumar L Narayan, Ganesh H Shankar








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;" 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: 65
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: 65
Joined: Sun Apr 27, 2008 12:59 pm









Return to Your Views and Suggestions to Improve CNP

Who is online

Users browsing this forum: No registered users and 1 guest