Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

ARKit demo that streams a video on a wall

License

NotificationsYou must be signed in to change notification settings

Bersaelor/WallStreaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small example demonstrating how to play a video on a wall usingARKit.

Video on the wall

This became possible when iOS 11.3 / ARKit "1.5" added the.vertical option for the.planeDetection parameter ofARWorldTrackingConfiguration.

The only "trick" was to useSpriteKit'sSKVideoNode in an standardSpriteKitSKScene:

letplayerItem=AVPlayerItem(url: streamURL)letplayer=AVPlayer(playerItem: playerItem)letvideoNode=SKVideoNode(avPlayer: player)    scene.addChild(videoNode)

and setting the texture of the virtual wall added whereARKit detects the vertical surface:

guardlet material= plane.materials.firstelse{return}    material.diffuse.contents= scene

About

ARKit demo that streams a video on a wall

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp