1

I had developed a mobile page to play mp4 video. I had put trigger,but it doesn't work in android. The following is my code

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script type="text/javascript">
    $(document).ready(function() {

        $("#button1").click(function() {

          $('#video1').get(0).play();

        });

        $("#button1").trigger("click");

    });
</script>

<input type='button' value='Button 1' id='button1'>
<video id="video1" src="v1.mp4" />

how to make this code work with android.

user.k
  • 21
  • 3
  • Can you play the video at all? I mean without the button? If you add some alert after calling `play()`, does it show? – GolezTrol Jul 22 '15 at 06:10
  • yes it work when i add alert.jquery text append also working inside button click. – user.k Jul 22 '15 at 06:15
  • try dis link http://stackoverflow.com/questions/1711078/html5-video-element-on-android – Light Jul 22 '15 at 06:17

0 Answers0