arkit_plugin_puftpalkim 1.6.0 copy "arkit_plugin_puftpalkim: ^1.6.0" to clipboard
arkit_plugin_puftpalkim: ^1.6.0 copied to clipboard

PlatformiOS

Fork of arkit_plugin with gapless, native AVQueuePlayer/AVPlayerLooper video looping for ARKit video materials, and a transparent (non-black) camera view background.

arkit_plugin_puftpalkim #

A fork of arkit_plugin (source) 1.5.0, used by the PuftPalkim app.

The Dart API is unchanged from upstream arkit_plugin 1.5.0 — see the upstream README and API docs for usage.

Why this fork exists #

  1. Gapless video-material looping. The only Dart-facing behavior change is in the iOS native implementation of ARKitMaterialProperty.video(...). Upstream builds the video material from a one-shot AVPlayer (via SKVideoNode(url:) / SKVideoNode(fileNamed:)), which has no native loop — looping it from Dart (remove/re-add the node, or toggle visibility) causes a visible stutter or a black-flash at every restart. This fork builds the video material from an AVQueuePlayer paired with an AVPlayerLooper, which is Apple's own mechanism for gapless native looping. Looped video materials now loop with no visible seam.
  2. Transparent camera view background (1.6.0). ARSCNView is opaque with a black backgroundColor by default in upstream. That's visible as a black box behind/around the AR camera video for the brief moment before the AR session starts drawing camera frames (and along any edge where the view doesn't exactly fill its container). This fork sets backgroundColor = .clear / isOpaque = false on the view so the Flutter page behind it shows through instead of black.

This is packaged as an independent, renamed pub.flutter-io.cn package (rather than a dependency_overrides entry) because the consuming project is built with FlutterFlow, whose dependency model only supports adding a dependency by pub.flutter-io.cn package name + version — it has no field for a git/path source.

Usage #

import 'package:arkit_plugin_puftpalkim/arkit_plugin_puftpalkim.dart';

License #

MIT, same as upstream. See LICENSE — original copyright notice preserved per the MIT license's terms.

0
likes
140
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Fork of arkit_plugin with gapless, native AVQueuePlayer/AVPlayerLooper video looping for ARKit video materials, and a transparent (non-black) camera view background.

Topics

#ar #arkit

License

MIT (license)

Dependencies

flutter, json_annotation, meta, vector_math

More

Packages that depend on arkit_plugin_puftpalkim

Packages that implement arkit_plugin_puftpalkim