Most projects work fine in emscripten but no way to get the video player to work, I try a lot of things but nothing works. I changed the SDK version, I used nightly compilation. The videoGrabberExample works, the sounds too, strangely there is only the video function which does not work. I would like to make interactive video tutorials as part of the courses I give…
Does someone have an idea?
beautiful day!
I don’t know javascript, but I know how to read the video player on Arturo’s site https://arturocastro.net/files/of-emscripten/videoPlayerExample/
Other examples work fine…
I probably should have specified that the compilation is carried out without problem, but it is the opening which does not work!
yé!
emrun bin/videoPlayerExample.html
Now listening at http://0.0.0.0:6931/
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
[GFX1-]: Unrecognized feature ACCELERATED_CANVAS2D
[2023-04-12T16:23:39Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 56768)
Traceback (most recent call last):
File "/home/db/emsdk/upstream/emscripten/emrun.py", line 623, in send_head
f = open(path, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/home/db/of_v20230412_linux64gcc6_release/examples/video/videoPlayerExample/bin/favicon.ico'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.10/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.10/http/server.py", line 658, in __init__
super().__init__(*args, **kwargs)
File "/usr/lib/python3.10/socketserver.py", line 747, in __init__
self.handle()
File "/usr/lib/python3.10/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.10/http/server.py", line 420, in handle_one_request
method()
File "/usr/lib/python3.10/http/server.py", line 662, in do_GET
f = self.send_head()
File "/home/db/emsdk/upstream/emscripten/emrun.py", line 625, in send_head
self.send_error(404, "File not found: " + path)
File "/usr/lib/python3.10/http/server.py", line 487, in send_error
self.wfile.write(body)
File "/usr/lib/python3.10/socketserver.py", line 826, in write
self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
----------------------------------------
but no video.
always the same message in the firefox console:
Uncaught ReferenceError: allocate is not defined
_html5video_player_pixel_format http://localhost:6931/videoPlayerExample.js:1
_main http://localhost:6931/videoPlayerExample.js:1
callMain http://localhost:6931/videoPlayerExample.js:1
doRun http://localhost:6931/videoPlayerExample.js:1
run http://localhost:6931/videoPlayerExample.js:1
thank you @Jona , we will have tried!
the rest in the next episode