Skip to content

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

Description

@crosenblum

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions