Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4813

Media.seekTo on first play. Again

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.0, 2.9.0, 3.0.0
    • Fix Version/s: None
    • Component/s: cordova-plugin-media
    • Labels:
      None
    • Environment:

      Android, IOS, OS X

      Description

      It is impossible to use Media.seekTo before the sound is played the first time.
      There was the same issue previously which was fixed in 2.1.0: https://issues.apache.org/jira/browse/CB-403
      However, I still can replicate the problem: the sound always starts playing from the beginning of the file.

      var audio = new Media("data/q.mp3",function(){},function(){},function(){});
      audio.seekTo(30000);
      audio.play();

        Attachments

        1. AudioPlayer.patch
          3 kB
          Alberto Pettarin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              snr Snr
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: