Commit fc205ae9 authored by MaxSol1's avatar MaxSol1
Browse files

audio fix

parent c04587e3
......@@ -63,6 +63,7 @@ type Option struct {
Svg string `json:"svg"`
StrokeColor string `json:"strokeColor"`
Source string `json:"source"`
AudioSource string `json:"audioSource"`
//Rect helper struct for positions
......@@ -6,8 +6,8 @@ import * as meerkat from '../meerkat';
export function AudioOptions({options, updateOptions}) {
return <Fragment>
<label for="src">Source</label>
<input class="form-control" id="src" name="src" value={options.source}
onInput={e => updateOptions({source: e.currentTarget.value})}>
<input class="form-control" id="src" name="src" value={options.audioSource}
onInput={e => updateOptions({audioSource: e.currentTarget.value})}>
<button class="rounded btn-primary btn-large">Render</button>
......@@ -18,7 +18,7 @@ export function AudioOptions({options, updateOptions}) {
export function AudioStream({options}, props) {
return (
<audio controls src={options.source} type="audio/mpeg"></audio>
<audio controls src={options.audioSource} type="audio/mpeg"></audio>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment