Tuesday, January 17, 2017

What You See In HoloLens To Your Browser

I was thrilled to see my first Hololens developer edition last May.
Recently I'm learning some Hololens and Unity3D tutorials.

When I scanned briefly following page for "Windows Device Portal", which is
https://developer.microsoft.com/en-us/windows/holographic/using_the_windows_device_portal, I thought that I need to sign up for another Microsoft user account for this and skipped reading through.

Spending more time on Unity3D and Hololens, I was able to finished several tutorials.
With great joy, I wanted to share what I did with my daughter.

I thought that I had only two following choices:
  1. Launching the app I developed in my Hololens and hand it over to my daughter.
  2. Or recording a video of the app in the Hololens.
When I was watching a youtube video demo about a Jet Engine training, I wondered how they share the view point of the presenter. I noticed that there was no special equipment other than the hololens of the presenter. I started to google it again and I revisited to the url.

Yes, I can stream what I see via my Hololens to my browser.
The only caveat is that I can't share my app using either recording video or taking a picture.

Any way here is what I did:

  1. Open up Hololens Settings
  2. Select Update & Security.
  3. Select "For developers" menu item in the left menu
  4. Turn on the "Developer Mode" on
  5. Scroll down to the botton of the page, and turn on "Device Portal"
  6. Open up a chrome and type "https://[hololens ip address]
    1. If you don't know it, in your hololens, go to settings->Network & Internet->Advanced Option -> IP v4.
  7. On the top right of the webpage, select "Security".
  8. Click on "Request pin"
    1. In your hololens, you will see the pin number as soon as you click on the button.
    2. Fill out the pin in the page
    3. Create a new user Id (yes, create any new user id)
    4. password
    5. repeat password
  9. Once you signed in, click on "Mixed Reality Capture" menu item on the left menu of the page.
  10. Click on "Live preview"

And also if you want to view it without the portal:
type https://[USERNAME]:[PASSWORD]@[HOLOLENS IP]/api/holographic/stream/live_high.mp4?holo=true&pv=true&mic=true&loopback=true