Web worker not working html5 - html

i have recently started to program in html5,
My friend asked me to build him a youtube video to gif, i have zero idea how to do this, he wants it to sit in his computer (with a web server).
I am looked around in google for few hours before coming in this time because i know this is not google.
So, i found this code - http://techslides.com/demos/video/generate-animatedgif.html, on hes website its working like a charem right? so. he said, copy this template to your web server and it will work.
Well, i did just that - look what happnd -
w.js:3 Uncaught ReferenceError: Worker is not defined
IF NEEDED, i can upload and share my link here if needed. But i will be really happy if someone can tell me what am i doing worng or give me another web that can create gifs ( that you can download the html and host in your own server).
Ty very much, please. i know this is not the reguler qustion in stackoverflow, but please dont close this theard, i ask for help.

Make sure you have this line of code
var worker = new Worker('w.js');
in your html file

So, it seems that web workers can only work if you create a file for them,
So, my answer is simple. I created a w.js file with the code inside, and it works.
Good day all.

Related

How did they do this with youtube

Hi in the below code if i change domain name the video is not streaming saying that the site has no permision
For the safty of orginal owner i have changed domain in below code
https://www.youtube.com/embed/8EDIJcaAq8Y?iv_load_policy=3&modestbranding=0&playsinline=1&rel=0&autoplay=1&start=0&enablejsapi=1&origin=http%3A%2F%2Fwww.cox.com&widgetid=7&showinfo=0
My question is does he take any permision from YT for that site or any other issues
If yes can any one help me with the process
I believe you're talking about the www.cox.com part of the URL.
I've changed it and typed https://www.youtube.com/embed/8EDIJcaAq8Y?iv_load_policy=3&modestbranding=0&playsinline=1&rel=0&autoplay=1&start=0&enablejsapi=1&origin=http%3A%2F%2Fwww.itdoeswork.com&widgetid=7&showinfo=0 instead and opened in a new tab it did work.
What's your exact problem? (I can't comment, pardon me.)
Also tried here:

Is it possible to run the command copy() from a Bookmarklet?

I constantly have to test websites and they always ask the same ID number or zipcode or something. Since I don´t want to give my real number, I always copy and past it from a .txt I have on my computer that has some fake numbers that will past the verification.
I was wondering if I could make my life easier by automating part of this work. My idea was to use Bookmarklet (https://en.wikipedia.org/wiki/Bookmarklet) and the command copy() from google Chrome (https://developers.google.com/web/tools/chrome-devtools/console/command-line-reference#copyobject).
It unfortunately did not work. Any ideas who to do that?
I´ve tried:
javascript:(function(){
copy(1235465);
})();
and
javascript:{copy(1235465);};void(0);
but neither of them have worked.
Is this even possible?
I´ve found a answer for that here: Copy text to clipboard from bookmarklet
Sorry for the duplicated question.
Here is the link to the gitHub as well:
https://gist.github.com/stefanmaric/2abf96c740191cda3bc7a8b0fc905a7d

HTML code for implementing a Stream

I want to add a stream to my webpage.
It should show a programm from my PC. I know that I can use OBS for streaming but I do not know how to implement the streamed data to my page.
Do you have any advices?
(A tutorial would already help, but I couldn't find anything)
Thank you very much!
Taka
EDIT:
Okay the backend is actually unavailable for me. Because it is using a thirdparty service.
My goal is that the frontend displays a stream of my programm that is running on my pc.
I hope this is giving you a better idea.
The easiest way and the way I would do it is just stream to twitch.tv and and embed the player into your site like so:
<iframe
src="http://player.twitch.tv/?<channel, video, or collection>"
height="<height>"
width="<width>"
frameborder="<frameborder>"
scrolling="<scrolling>"
allowfullscreen="<allowfullscreen>">
</iframe>
(For more info on using this check this out: https://dev.twitch.tv/docs/v5/guides/embed-video)
If you don't want to take this step then as people were saying in the comments you can't do that with just html.

Offline / Local Website with configuration options

thanks in advance for your time to help me.
So... I work on a Retail store and we use a kiosk-like app on the laptops with the hardware and price information.
Recently i realized (because it runs 24/7) the lcds are getting burned by the kiosk app and its a major problem to the store.
Since i cannot make changes on the app itself i realized the best option was to create some kind of solution to this problem.
So i thought on creating an offline / local website in HTML that mimics the layout on the kiosk app and use some kind of anti-lcdburn jquery running along. (already have the code for the anti burn jquery).
My main problem is the kiosk app was really user-friendly on the configuration. Anyone on my store could easily change the data showing.
But in the other hand if i want to implement a static html website, anyone without html skills can't easily change the values.
My first thought was to create some kind of config file and find a way to import it. My main issue it i need to make this so that anyone with low-it skills can enter a page , change values and those values would show up on the kiosk page.
Something like a simple CMS but for a local file.
Any ideas?
Best regards
Can you display the website inside an iframe?
If so, just make a file that loads the website in an iframe, with the anti screen-burn jQuery over the top.
Anything more than that would be overkill and rebuilding something that appears to already exist - have you considered asking the creator of the app to include an anti screen-burn option?

How do I get just the Facebook chat html into a web view?

Okay so I was wondering how the Gabtastik chat client (site-specific-browser-esque) manages to present only the chat part of Facebook, as seen here:
I'm making an app where I want to also include this functionality, but i really don't know how it is done, so i need a good kick in the right direction or some code or something.
It just loads http://www.facebook.com/presence/popout.php. I found that out by running strings on the Gabtastik executable, like this:
strings /Volumes/Gabtastik/Gabtastik.app/Contents/MacOS/Gabtastik
Unfortunately, that doesn’t exist anymore. When you launch Gabtastik now, you see this:
Facebook has XMPP access to chat that you can use… unfortunately, integrating it into an app takes much more work than showing a web page.