intanpalupidn / jquery-oembed

Automatically exported from code.google.com/p/jquery-oembed
0 stars 0 forks source link

Can't resize embed object and can't show youtube videos #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<script type="text/javascript"> 
$(document).ready(function(){
$("#embedido").oembed("http://www.youtube.com/watch?v=VgZFKCv7A68",{embedMethod:
 "append", maxWidth: 615, maxHeight: 320});
});
</script>
<div id="embedido"></div>

This is the code i'm using now. But i doesn't resize the embed and when i try 
to embed a youtube video, this can't be displayed.

(What|where)'s the problem?

Original issue reported on code.google.com by edwinj.m...@gmail.com on 5 Dec 2011 at 8:18

GoogleCodeExporter commented 8 years ago

I am using "jquery/1.6.4/jquery.min.js" and  
"jqueryui/1.8.16/jquery-ui.min.js". I tried all version(1.1.0 and 1.0.5) of 
"jquery.oembed.js". This was working for earlier version of Jquery.

This is not working for Youtube Videos. It works for Flickr.
//HTML
<div >
<a href="http://www.youtube.com/watch?v=Yc5OyXmHD0w" class="oembed">YouTube</a>
<a href="http://www.flickr.com/photos/14516334@N00/345009210/" 
class="oembed">Flickr</a>
</div>
//JavaScript
$(".oembed").oembed();  

Original comment by suman4...@gmail.com on 6 Dec 2011 at 5:27