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

getDuration() only returns correct result after playing twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • cordova-android
    • DreamWeaver BuildGap Service

    Description

      Using a set up very similar to the Media examples in the Docs for Play and Record, I am trying to get the length of the recording when I come into the PLAY function.

      Calling "my_media.getDuration()" the first time returns -1; But then after that the correct length of the file is returned.

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            somo Neil Friend
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: