Bug 239458 - Animation looping in AR even if not specified.
Summary: Animation looping in AR even if not specified.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebXR (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://maple-summer-branch.glitch.me/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-18 12:05 PDT by Kewal Gokuldas
Modified: 2022-04-23 08:20 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kewal Gokuldas 2022-04-18 12:05:16 PDT
I am using Model-viewer to see an object in AR. But the animation on the object is looping in Quick look even if looping is not on.
Comment 1 Antoine Quint 2022-04-19 23:57:37 PDT
Hi Kewal, thanks for filing this bug. However, a testcase is necessary for us to diagnose this issue, please add one and we'll investigate.
Comment 2 Kewal Gokuldas 2022-04-20 11:13:08 PDT
https://maple-summer-branch.glitch.me/
Will this help ?(In reply to Antoine Quint from comment #1)
> Hi Kewal, thanks for filing this bug. However, a testcase is necessary for
> us to diagnose this issue, please add one and we'll investigate.
Comment 3 Antoine Quint 2022-04-20 11:23:45 PDT
That helps, thank you.
Comment 4 Antoine Quint 2022-04-20 11:38:15 PDT
Going by https://developer.apple.com/documentation/arkit/adding_an_apple_pay_button_or_a_custom_action_in_ar_quick_look, it looks like there isn't an option to control the animation behavior in the AR experience. I could be mistaken though, but I don't expect there is an actual bug here.
Comment 5 Dean Jackson 2022-04-20 13:46:07 PDT
Yeah, it seems this behaviour is specific to model-viewer's in-page implementation.
Comment 6 Kewal Gokuldas 2022-04-20 14:37:33 PDT
I see. So it will be a new feature to control animation in AR? Until then any animation from model-viewer will keep looping ?
Comment 7 Antoine Quint 2022-04-21 00:13:38 PDT
I don't know the particulars of model-viewer. I think in this case it might be more about the USDZ file which does not specify that the animation shouldn't be looping.

I'm told that you can codify that an animation should not be looping using "loopStartToEndTimeCode" in the USDZ file:

customLayerData = {
    string creator = "usdzconvert preview 0.62"
    bool loopStartToEndTimeCode = 0
}
Comment 8 Kewal Gokuldas 2022-04-23 08:20:45 PDT
THANKS !
Comment 9 Radar WebKit Bug Importer 2022-04-23 08:20:55 PDT
<rdar://problem/92217001>