1 Replies - 4551 Views - Last Post: 12 July 2012 - 07:14 AM

#1 roxya  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 19-March 11

Open Standard Media Player Trouble

Posted 10 July 2012 - 08:24 AM

I'm trying to use OSM player as a stand alone player and I'm getting the "jQuery("#osmplayer").osmplayer is not a function" error in Firebug and I haven't changed anything major to the code. I've been trying different things to eliminate a possible conflict between libraries but I've had no luck. I'm not using WordPress. This is my index.html, I've downloaded the extra source files and included them in the project. I've also tried to run this in Chrome 20.0.1132.47, Firefox 4, and IE 8.

<html>
    <head>
        <title>player</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css">

        <!-- Many more themes to chose from... go to http://jqueryui.com/themeroller !-->
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dark-hive/jquery-ui.css">


        <script type="text/javascript" src="minplayer/src/minplayer.compatibility.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.flags.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.async.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.plugin.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.display.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.image.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.file.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.playLoader.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.players.base.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.players.html5.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.players.flash.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.players.minplayer.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.players.youtube.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.players.vimeo.js"></script>
        <script type="text/javascript" src="minplayer/src/minplayer.controller.js"></script>
        <script type="text/javascript" src="src/osmplayer.js"></script>
        <script type="text/javascript" src="src/osmplayer.parser.default.js"></script>
        <script type="text/javascript" src="src/osmplayer.parser.youtube.js"></script>
        <script type="text/javascript" src="src/osmplayer.parser.rss.js"></script>
        <script type="text/javascript" src="src/osmplayer.parser.asx.js"></script>
        <script type="text/javascript" src="src/osmplayer.parser.xspf.js"></script>
        <script type="text/javascript" src="src/osmplayer.playlist.js"></script>
        <script type="text/javascript" src="src/iscroll/src/iscroll.js"></script>
        <script type="text/javascript" src="src/osmplayer.pager.js"></script>
        <script type="text/javascript" src="src/osmplayer.teaser.js"></script>

        <!-- Include the OSM Player template files. -->
        <link rel="stylesheet" href="templates/default/css/osmplayer_default.css">
        <script type="text/javascript" src="templates/default/js/osmplayer.default.js"></script>
        <script type="text/javascript" src="templates/default/js/osmplayer.controller.default.js"></script>
        <script type="text/javascript" src="templates/default/js/osmplayer.pager.default.js"></script>
        <script type="text/javascript" src="templates/default/js/osmplayer.playLoader.default.js"></script>
        <script type="text/javascript" src="templates/default/js/osmplayer.playlist.default.js"></script>
        <script type="text/javascript" src="templates/default/js/osmplayer.teaser.default.js"></script>

        <!-- Here is how you make it come alive... -->
        <script type="text/javascript">
            jQuery.noConflict();
            jQuery(function() {
                jQuery("#osmplayer").osmplayer({
                    width: '400px',
                    height: '600px',
                    playlist: 'playlist.xml'
                });
            });
        </script>
    </head>
    <body>
        <script type="text/javascript">
            (function($) {
                    <div id="osmplayer"></div>
                })(jQuery);
        </script>

    </body>
</html>


Is This A Good Question/Topic? 0
  • +

Replies To: Open Standard Media Player Trouble

#2 roxya  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 19-March 11

Re: Open Standard Media Player Trouble

Posted 12 July 2012 - 07:14 AM

Does anyone even know if I am using it properly? Hints? Ideas? Clues?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1