malsup.github.com icon indicating copy to clipboard operation
malsup.github.com copied to clipboard

Uncaught TypeError: Object #<Object> has no method 'media'

Open crosenblum opened this issue 13 years ago • 0 comments

I am trying to use your plugin to play local video files stored on my pc.

I am able to dynamically change the href to the file url of my local video file. And If i click on the link it plays the movie in the current browser tab.

But i am unable to get even the demo movies to work correctly.

I am on a web page, that is a file:// url because I am creating an app that shouldn't require any web site setup.

Does it matter what order I load the js files? Is that cause a problem?

script type="text/javascript" src="http://www.google.com/jsapi"/script script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"/script script type="text/javascript" src="js/jquery.media.js"/script script type="text/javascript" src="js/jquery.metadata.js"/script script type="text/javascript" src="js/swfobject.js"/script

AVI File

$('#media').attr('href','file://'+path); $('a.media').media();

Any suggestions?

crosenblum avatar May 29 '12 11:05 crosenblum