Godot Version
4.5 dev 5
Question
I’m trying to add an encryption key to protect my web build. I compiled the release templates using the following command: scons platform=web lto=full threads=no tools=no target=template_release
The project exported successfully with encryption enabled. However it appears that most of the audio broke, and I get this issue in the browser console:
Some details about the software I’m using to build:
Operating system: Windows 10
SCons: v4.9.1
emsdk: 3.1.62
Python: 3.10.1
If you need any additional information feel free to ask!
Edit: Apparently the specific python server script I was using caused the issue, however I still don’t know why. If anyone wants to take a look at it here’s the code:
from flask import Flask,render_template_string
from flask_compress import Compress
import os
app = Flask(name)
Compress(app)
from OpenSSL import SSL
context = SSL.Context(SSL.DTLS_SERVER_METHOD)
context.use_privatekey_file(r"server.key")
context.use_certificate_file(r"server.crt")
@app.route(“/”)
def hello_world():
file=open(os.getcwd()+“/”+“index.html”)
return render_template_string(file.read())
@app.route(“/”)
def fileSend(file):
file=open(os.getcwd()+“/”+file,“rb”)
return file.read()
app.run(ssl_context=‘adhoc’,port=443,debug=True,host=“0.0.0.0”)