Click here to Skip to main content
13,708,184 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am working on ASP.Net application which will provide the Video gallery. I ll have video link on my database. I need to embed those video on my page dynamically (it may from youtube,yahoo,DailyMothion or any other site..).

I have worked as followed by Embedded Video , but it will allow only to play you tube videos, other videos are not playing.

<object width="480" height="385">
<param name="movie"
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src=""
   type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="480" height="385"></embed></object>

Please suggest me to achieve
Posted 10-Jul-14 1:52am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Sounds like you're looking for oEmbed[^] - so long as the site supports an oEmbed API, you can pass it a link to a video and it will return the markup required to display that video.

There's a jQuery wrapper[^] which will convert a list of links into embedded players:
<div><a href="" class="oembed">YouTube Video</a></div>

<script src="//"></script>
<script src="jquery.oembed.js"></script>
$(function() {

Alternatively, you could use a server-side solution such as OptionStrict.oEmbed[^] to generate the markup on the server.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180920.1 | Last Updated 10 Jul 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100