1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Banglore, India
    Posts
    3
    Answers
    1
    Vote Rating
    0
    rak111esh is on a distinguished road

      0  

    Default Answered: Integrate jPlayer with sencha touch 2

    Answered: Integrate jPlayer with sencha touch 2


    I want to integrate jplayer with my sencha project. I have included the js and css in app.json file. However, the question remains where do I instantiate the player? and also where do I write the html code? The following code needs to be taken care of.

    The following Javascript
    Code:
    <script type="text/javascript">
        $(document).ready(function(){
            $("#jquery_jplayer_1").jPlayer({
                ready: function () {
                    $(this).jPlayer("setMedia", {
                        webmv: "http://www.jplayer.org/video/webm/Big_Buck_Bunny_Trailer.webm",
                    });
                },
                swfPath: "../js",
                supplied: "webmv",
            });
        });
    </script>
    And this HTML
    Code:
    <div id =....>
          <div id = "jquery_jplayer_1">
                       .....
          </div>
    </div>

  2. HTML part I added to the view.

    But I was having problems with the javascript part. So modified it a little bit and put it in a painted event. Now it works fine.

  3. #2
    Sencha User
    Join Date
    Aug 2012
    Location
    Banglore, India
    Posts
    3
    Answers
    1
    Vote Rating
    0
    rak111esh is on a distinguished road

      0  

    Default


    HTML part I added to the view.

    But I was having problems with the javascript part. So modified it a little bit and put it in a painted event. Now it works fine.

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    1
    Vote Rating
    0
    vinset is on a distinguished road

      0  

    Default


    Can you post an entire example of Jplayer integrated? Tnx

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar