Skip to content

Instantly share code, notes, and snippets.

@tokufxug
tokufxug / zappar_ua_aframe_video_audio.html
Created October 29, 2021 09:47
zappar_ua_aframe_video_audio
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
<meta name="application-name" content="Zappar Video Demo Application">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="robots" content="noindex" />
<meta name="robots" content="nofollow" />
<title>Zappar Video Demo Application</title>
@tokufxug
tokufxug / index.html
Created October 20, 2021 05:37
Zappar Video Demo Application
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
<meta name="application-name" content="Zappar Video Demo Application">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="robots" content="noindex" />
<meta name="robots" content="nofollow" />
<title>Zappar Video Demo Application</title>
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using UnityEngine;
using UnityEngine.XR.MagicLeap;
using UnityEngine.UI;
using UnityEngine.Networking;
@tokufxug
tokufxug / MLQRCodeExample.cs
Last active August 31, 2021 07:00
MLQRCodeExample.cs
// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
//
// Copyright (c) 2019-present, Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Developer Agreement, located
// here: https://auth.magicleap.com/terms/developer
//
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
@tokufxug
tokufxug / mldb-unity-startup.cmd
Last active February 18, 2022 23:11
mldb log
01-24 23:15:52.284 30702 1 W linker : /package/bin/Player.elf: unsupported flags DT_FLAGS_1=0x81
01-24 23:15:52.944 30702 1 I Unity : Unity 2019.3.6f1 (5c3fb0a11183) [2019.3/staging]
01-24 23:15:52.944 30702 1 I Unity : Lumin SDK 0.21.0.20190513r
01-24 23:15:52.951 30702 1 I Unity : Command line: bin/Player.elf
01-24 23:15:53.208 30702 1 W linker : /package/bin/libil2cpp.so: unsupported flags DT_FLAGS_1=0x81
01-24 23:15:53.473 30702 1 I Unity : SetResolutionImmediate : 1280x960 fs=1 hz=60
01-24 23:15:53.473 30702 1 I Unity :
01-24 23:15:53.473 30702 1 I Unity : (Filename: Line: 19)
01-24 23:15:53.473 30702 1 I Unity :
01-24 23:15:53.934 30702 1 I Unity : XRGeneral Settings awakening...
document.addEventListener('mlstage-denied', (e) => {
//hide turkey model when the stage is denied.
turkeyModel.visibility = 'hidden';
});
document.addEventListener('mlstage-granted', (e) => {
//animate turkey model once the stage is granted.
turkeyModel.animation = 'fly';
});
<ml-stage extents="top: 0; right: 0.5; bottom: 0; left: 0.5; front: 0.5; back: 0.5"></ml-stage>
<ml-stage id="stage" extents="left:200px;"></ml-stage>
<html lang="en">
<head>
<meta name="viewport" content="transparent-background">
<title>Prismatic: Page Orientation</title>
<style type="text/css">
body {
color: #ffffff;
}
.label {