I recently setup a custom live webm stream running of my home sever here. As you can see if you click the link, it works in a browser. However if I insert it as a webm in my anilist about it infinitely loads. I know not many people here would be able to help but maybe someone might know something. I have the stream added on my profile under the spoilers at the bottom.
more info
Im using a java app I found on github called stream-m (https://github.com/vbence/stream-m)
I have ffmpeg upload my webcam in the webm to the java server and then the link that I have in my about and here allows you to view it as a normal webm file
Unfortunately it doesn't work for me in the browser either. I can access http://webitup.dscloud.me/ with 403 status so I can reach the server. I ran the networking tool to see what is happening but server is trying to send back img/png not webm file and one filled it basically fails to load for me.
Here is the example of I'm talking about
I don't know how familiar you are with Python but you can use OpenCV to stream video as image only if sound is not something you are interested in. It's easy enough to implement
Or you can use Java library like link this one and connect it with and do sockets.
In any case I'd recommend either Web Sockets or if you're using a webserver separate thread with timeouts (save bytes of previous image in memory) of around 50ms so there isn't constant flow of data (ie. users browser buffer doesn't overload).
I don't know if any of this helps :D
Ah shit, my bad, I had the wrong port in the link try this. http://webitup.dscloud.me:4000/consume/first
Ok, now I can see it. And it works, all three figurines are visible.
So I went to check your profile, and you got .webm extension added in the end of URL and that link is invalid. So I tried removing that... and it didn't work.
Then I tried the next thing I thought of and it was to open a codepen and try to link to the same link and well video player was not cooperating, but beside timeout I got an error saying that HTTP link is automatically gonna be converted to HTTPS (which of course won't work).
And lastly I went and tried it on localhost, cause if it doesn't work there, well chances are it's your server. And it worked!
So my best guess is that it might me due to trying to load HTTP request in HTTPS request and like Codepen, Anilist also blocks embedded HTTP. But that theory can only be answered by technical staff if they indeed block unsecure content. So your link should at least have HTTPS (Let's Encrypt is probably the easiest and best to run on server) if it was to get a chance on loading the content.
Sorry I couldn't be of more help.
awesome! thanks so much. I know much more about the hardware/os side of things but networking is still a grey area for me. Ill try getting my server setup for HTTPS. Also, when you said you tried it on localhost, I'm curious as to what that means. I know what localhost is but since the server isn't on your computer I'm not sure what you did.
Sorry I couldn't be of more help.
you were plenty help. Ill get back to you with the results of using HTTPS.
If it doesn't work I may try going the OpenCV route as I am comfortable with python
I'm running local instance of Nginx server, since my job is information system engineer, so I have few virtual machines running different servers. You don't need a virtual machine, you can run Nginx as service on Windows/Linux/MacOS but because of work, I need to have different test environments.
To test your link I made a small HTML page with video tag and linked it to address you gave me and tested if video would play. If it didn't then link wasn't video output it was a webpage that embeds video and if it did then server is fine but problem is with response on Codepen/Anilist.
I hope this satisfies your curiosity :)
As far as my knowledge of networking, let's say I once messed up currents with PoE and fried my Raspberry Pi :D So, I'm in the same boat. I know some basics to get me up and running.
And since you're comfortable with Python, here is an excellent tutorial how to setup Nginx/Gunicorn with Flask application. It's noob friendly if like me you didn't want to touch on setting up server from scratch. And Lets Encrypt has a bot that does all of the SSL setup xD
Update: I stopped the server and left it for a while, me recieving some more figures helped encourage me to get back to work on the server. Right now I am working on setting up a reverse proxy server using nginx. This allows me more control over what external clients see as it is a customizable web server instead of just a complied java application. It also will allow me to add HTTPS to it and hopefully make everything work
IT FUCKING WORKS!!!!!! LETS GOOOOOO. I made a nginx reverse proxy server with a self signed certificate and now it works.