Skip to content

bug(IOS): video recording truncates final segment — last few seconds lost on stopRecordVideo() - only in IOS app #364

@ahmedragaeiy

Description

@ahmedragaeiy

Bug Report

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 8.4.0
  @capacitor/core: 8.4.0
  @capacitor/android: 8.4.0
  @capacitor/ios: 8.4.0

Installed Dependencies:

  @capacitor/cli: 7.6.2
  @capacitor/core: 7.6.2
  @capacitor/android: 7.6.2
  @capacitor/ios: 7.6.2

Plugin Version

@capgo/camera-preview@7.26.4

context(s)

ManualModel: false
AutoMode: false
CapgoCloud: false
OnPremise: false

Platform(s)

Current Behavior

When recording a video using startRecordVideo() and stopping with stopRecordVideo(),
the output file is missing the last few seconds of footage (whatever does not fill a full 10-second chunk).

It appears the plugin records internally in fixed 10-second segments on iOS, and the
final incomplete segment is silently dropped rather than flushed and appended when
recording stops.

Example:

  • Record for 13 seconds → output file contains only 10 seconds
  • Record for 24 seconds → output file contains only 20 seconds
    this problem happens only in IOS app doesn't happen in android

Expected Behavior

expect to get the full recorded video duration
for example record 23 sec in IOS app expect it to be 23 sec not just 20 sec

Code Reproduction

Other Technical Details

npm --version output:

node --version output:

pod --version output (iOS issues only):

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions