So, i have written the simplest possible dash-Application to try out the uses of
html.Video respectively, but can’t seem to get either of them to work. My code (contained in a file
dash_asdf.py) looks as follows:
import dash import dash_html_components as html external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] app = dash.Dash(__name__, external_stylesheets=external_stylesheets) app.layout = html.Div(children=[ html.H1(children='Hello Dash'), html.Div(children=''' Dash: A web application framework for Python. '''), html.Audio(src='/47178__moca__saxu.mp3', controls=True), ]) if __name__ == '__main__': app.run_server(debug=True)
with the file
47178__moca__saxu.mp3 laying in the same directory as the script itself. I can see the controls of the audio-element but the sound doesn’t load!
Have i maybe gotten something about the
Thanks in advance!