Answers for "Python Video Playing"

0

Python Video Playing

from flask import Flask, render_template


app = Flask(__name__, static_folder='static')

@app.route('/')
def index():
    return render_template('index.html')
Posted by: Guest on August-03-2021
0

Python Video Playing

<!DOCTYPE html>
<html>
<head>
  <title>Video Example</title>
</head>
<body>
  <h2>Serving video files from Flask template</h2>
  <video width="320" height="240" controls>
    <source src={{ url_for('static', filename="demo.mp4") }} type="video/mp4">
    Your browser does not support the video tag.
  </video>
</body>
</html>
Posted by: Guest on August-03-2021
0

Python Video Playing

├── app.py
├── static
│   └── demo.mp4
└── templates
    └── index.html
Posted by: Guest on August-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language