Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2249

iPad video player will not play after being paused

    Details

      Description

      {html}<div><h1>Problem</h1>
      <p>When a movie is paused outside the default controls the movie
      will not play again. Using the default controls still works.</p>
      <h1>Code</h1>
      <pre>
      <code class="javascript">var win = Titanium.UI.createWindow({
      title:'Win'
      });

      var player = Titanium.Media.createVideoPlayer({
      contentURL:'ACCESSO_ANTERIORE_XVID.mp4',
      scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,
      width:400,
      height:300,
      autoplay:false
      });

      var button = Ti.UI.createButton({
      title:'Toggle',
      height:60,
      bottom:120
      });

      button.addEventListener('click',function()
      {
      if(player.playbackState==Titanium.Media.VIDEO_PLAYBACK_STATE_PLAYING){ player.pause(); }
      else{ player.play(); }
      });

      win.add(player);
      win.add(button);
      win.open();</code>
      </pre>
      <h2>HD Ticket</h2>
      <p><a href=
      "http://developer.appcelerator.com/helpdesk/view/52221#c238621">http://developer.appcelerator.com/helpdesk/view/52221#c238621</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              ctredway1 ctredway
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1983
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration