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

Android video playbackState, seek event non-existant

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Android
    • Environment:

      Description

      The playbackState for Ti.Media.VIDEO_PLAYBACK_STATE_SEEKING_BACKWARD and Ti.Media.VIDEO_PLAYBACK_STATE_SEEKING_FORWARD never fire when a user presses and drags the scrub bar on the video.

      I am only able to get the play and pause events to fire. To reproduce this, create a new titanium mobile project and paste the following into app.js and then compile. The video should begin to play on top of a lovely purple/pink background. As you drag the scrub bar, you will see the playbackState never fires anything for seeking

      var win = Ti.UI.createWindow({
      	backgroundColor:'#ff00ff'
      });
       
      var vidPlayer = Ti.Media.createVideoPlayer({
      	width:Ti.Platform.displayCaps.platformWidth,
      	height:Ti.Platform.displayCaps.platformWidth / 2,
      	top:0,
      	backgroundColor:'#000',
      	autoplay:true,
      	mediaControlStyle:Ti.Media.VIDEO_CONTROL_EMBEDDED,
      	url:'http://vjs.zencdn.net/v/oceans.mp4'	
      });
       
      function playbackStateChange(event)
      {
      	alert('playbackState: ' + event.playbackState);
      }
      vidPlayer.addEventListener('playbackState', playbackStateChange);
       
      win.add(vidPlayer);
      win.open();
      

      I am testing this directly on my android phone which is a Samsung Galaxy Stellar with android OS 4.1.2

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sunila Sunila
                Reporter:
                clathrop Carter Lathrop
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration