Documentation
¶
Overview ¶
Command waveform serves a small page that renders a validator node's precomputed waveform peaks in wavesurfer.
The waveform JSON is proxied through this process so the browser sees a single origin, which keeps the self-signed devnet certificate and any cross-origin rules out of the way.
Audio is deliberately not proxied. Serving it requires a signed request (/content and /tracks/cidstream both refuse an unsigned GET), whereas the waveform does not -- which is rather the point: a client can draw the waveform long before it is in a position to stream anything. To compare against ground truth, the page takes the source file from local disk.
go run ./examples/waveform go run ./examples/waveform --node https://node2.oap.devnet --addr :9000
Click to show internal directories.
Click to hide internal directories.