Skip to content

Activity 7: Wireless Streaming

Objectives:

  • Help Dr. Wang figure out streaming from the headsets

Note: This is not a real activity. But we need to spend some time and make sure that we can cast the headset view onto the computer.


Part 1: Install Scrcpy

We will use a third-party tool called scrcpy (pronounced "screen copy") to cast the headset view to the computer.

Install instructions:

  • Windows (Download scrcpy-win64-v2.3.zip and extract it)

  • MacOS (You will need to install both scrcpy and adb using Homebrew, which you can also install)

Part 2: Plug in the Headset

Plug the headset into your computer.

Open a terminal/command prompt (on Windows, navigate to where you extracted scrcpy).

Run the command adb devices. It should show something like this:

List of devices attached
1WMHHA44872062  device

If it shows "unauthorized" instead of "device", put on the headset and select Allow for the computer to enable debugging or a similar option.

Part 3: Run Scrcpy

First, make sure you and the headset are both on the same Wi-Fi network (JMU-Official-Wireless).

Now, run the following commands:

adb disconnect
scrcpy --tcpip -b 5M --no-audio --crop 1600:900:2017:510

IF that doesn't work, try running the following:

scrcpy --tcpip -e -b 5M --no-audio --crop 1600:900:2017:510

This should launch scrcpy and configure the headset for wireless streaming.

If you get connection errors, try first running:

adb disconnect

Then try the command again. You may need to run the command a few times.

If you get an error with it saying the device is unauthorized, put on the headset and allow debugging again.

Once a window pops up showing the headset view, you can unplug the headset. Verify that the view is still streaming after unplugging the headset.

If the screen is black, put on the headset and wait a few seconds (it may have a secure notification on the device that hides the stream).


That's it! We hopefully now have a method of streaming. To end the stream, simply close the window.

Let's make sure that everyone is able to stream from the headset to their computer.