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

iOS: currentPlaybackTime Property of VideoPlayer API does not work for local movies.

    Details

      Description

      currentPlaybackTime property in iOS video Player APIs does not work for local movie files.

      test case:
      1: Use the below sample code and copy paste it on new sample app.js file.
      2: copy paste any movie file of length 3 to 4 minutes.
      3: Deploy the code on device or play it over simulator.
      4: currentPlaybackTime which is suppose to increase the current Time after 15 seconds does not work.

      var tbGroup = Ti.UI.createTabGroup();
       
      var lb1 = Ti.UI.createLabel({
          text : "label1 window1",
          height : 50,
          font : {
              fontSize : 30
          },
          color : 'black'
      });
       
      var lbTemp = Ti.UI.createLabel({
          text : "labelTemp windowTemp",
          height : 50,
          font : {
              fontSize : 30
          },
          color : 'black'
      });
      //var iOSURL = "http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov"; // use it for iOS
      var vPlayer = Ti.Media.createVideoPlayer({
      	url:"moviefile.mp4",
      	initialPlaybackTime:20000,
      	mediaControlStyle:Ti.Media.VIDEO_CONTROL_DEFAULT,
      	mediaTypes:Titanium.Media.VIDEO_MEDIA_TYPE_VIDEO
      });
      var lb2 = Ti.UI.createLabel({
          text : "label2 window2",
          height : 50,
          font : {
              fontSize : 30
          },
          color : 'black'
      });
      var win1 = Ti.UI.createWindow({
          backgroundImage : '/friendship-99a.jpg'
      });
      win1.add(vPlayer);
       
      var winTemp = Ti.UI.createWindow({
          backgroundImage : '/friendship-99a.jpg'
      });
      winTemp.add(lbTemp);
       
      var win2 = Ti.UI.createWindow({
          backgroundImage : '/friendship-99a.jpg'
      });
      win2.add(lb2);
       
      var tb1 = Ti.UI.createTab({
          window : win1
      });
      var tb2 = Ti.UI.createTab({
          window : win2
      });
       
       
      vPlayer.addEventListener("load", function(e) {
         setTimeout(function(){
         	vPlayer.currentPlaybackTime = 200000
         },15000);
       
      });
       
      lb1.addEventListener("click", function(e) {
          //win1.add(activityIndicator);
        
       
      });
       
      tbGroup.tabs = [tb1, tb2];
       
      tbGroup.open();
      

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              anigam Ashish Nigam
              Reviewer:
              Sabil Rahim
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code