vnc

command
v0.0.0-...-2ebff51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 7 Imported by: 0

README

Instructions

Install required codecs

In this example, we'll be using x264 and opus as our video and audio codecs. Therefore, we need to make sure that these codecs are installed within our system.

Installation steps:

Download vnc example

git clone https://github.com/cpdevs/mediadevices.git
Compile vnc example
cd mediadevices/examples/vnc && go build

Open example page

jsfiddle.net you should see two text-areas and a 'Start Session' button

Run the webrtc example with your browsers SessionDescription as stdin

In the jsfiddle the top textarea is your browser, copy that, and store the session description in an environment variable, export SDP=<put_the_sdp_here>

Run echo $SDP | ./vnc

In Windows

type sdp.txt| .\vnc.exe

Input webrtc's SessionDescription into your browser

Copy the text that ./webrtc just emitted and copy into second text area

Hit 'Start Session' in jsfiddle, enjoy your video!

A video should start playing in your browser above the input boxes, and will continue playing until you close the application.

Congrats, you have used pion-MediaDevices! Now start building something cool

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL