Get video from youtube or file system [closed] - html

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Just wondering if there is any benefit to loading a video from youtube or any other service vs. loading video from a folder in my site's file structure.

YouTube's CDN probably delivers video to the visitor faster than your server.
YouTube's bandwidth costs you less money than your bandwidth.
YouTube's code for generating multiple video formats, automatic quality switching and subtitling is probably better than your code for doing the same.

Just to play devil's advocate to Quentin's answer, if the original YouTube video gets taken down, you'll have a dead link on your page. If you host it yourself, you won't lose it when the original creator takes it down (unless you control the account that posted it, in which case this argument is null)

Related

Can a website tell a user's browser to store the entire page locally? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
Can a (single-page) website tell a user's browser to store an entire page locally?
For context: I'm hosting a website on a server that charges according to bandwidth. The contents of the site don't change much, so I'm wondering if the user's browser can store the webpage rather than sending repeat requests for the web page!
I've looked into browser-native cacheing, but that appears to be for further requests triggered after the page's scripts load!
This is usually achieved thanks to PWA and Service workers: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Offline_Service_workers
Actually it's the only way of doing that I know, it can be a bit tricky but it's quite interesting once you understand everything that you can do with it.

How to make an executable game accessible for users to play online [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
There's a little .exe file which contains a game I want to make available on a website (pure HTML), but I don't know how to do it.
What I want to achieve is: when clicked, users shouldn't have to install it but be able to play it on the site.
You can't use or run executables with html. Html and js can not modify directly contents in your PC and use system functions, they can do what they are allowed to by the browser, that communicates with the system and restricts some functioning.
That is why they can be considered "virtual" - they run on the browser that take care of their parsing and viewing.
For the same way you can't either embed it, since embedding requires the ability to run it.

How can i improve this website performance? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
This is my first time asking a question here on stackoverflow.
I'd like to know if anyone (more experienced in web design than me, but that's an easy one!) can help me out with a couple tips on how to make this website faster to load and navigate:
www.treasure-diggers.com
I know the HD video banner is the first thing that comes to mind, but that was an explicit request from the client (no Low-Definition render or Youtube player).
Aside from that, it's just a wordpress page with a dozen of medium-sized images, and yet it takes quite a while to load on low connection speeds.
Do you have any advice? Thanks in advance!
Look, I've checked your website in website speed test service (GTmetrix) and here you can check the result yourself.
There are some advices, for example, you can minify CSS and JS files and you can specify image dimensions for small images, like social icons, for example. try to resize big images yourself, not with the help of website. After that check the result in GTmetrix, your website speed will be improved =)

Is the inline image or the referenced on better In html emails? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I would like to know some pros and cons about the which solution is better in html email when we are dealing with images.
If the image is attached inline?
Or if it is referenced and stored in a public url?
Loading of images referenced from a public URI will often be blocked by the Mail User Agent (Thunderbird e.g.) to protect the user's privacy and avoid tracking.
So attaching them is the best way to have the images shown to the receipient.
In my opinion the better way is url img :
lighter
attaching picture can be blocked by antivirus/spyware
some users disable images because they have enough speed or not to waste their package. Remember that mobile is increasingly used!
When a Mail User Agent protect the user privacy, you need respect
that. You needed to interest your client with your title, your text
content so that it unlocks pictures.
I send mass mailling every week. I do not consider myself pro.
You can To analyze several newsletters. You'll see what the professionals do.
PS : sorry for my bad english =)

HTML5 Game code with Canvas [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create a tile based 'whack a mole' game in HTML 5. Also at every instance a new mole appears at a given tile an audio prompt needs to given indicating where the mole is(this is so that visually impaired individuals can also play it ). Additionally on hover over each tile its location needs to be said aloud (eg.(3,4)). Now the problem is I am not sure how do I start programming this in HTML5. Please can someone help me.
you may want to try panda.js it is a html5 game engine for mobile and desktop
and it has video tutorial
the showcase itself had whack a mole like game
http://www.pandajs.net/showcase/
(full disclosure: I've used pandajs myself)
Start with the basics in javascript. You'll need this to do anything in HTML5 canvas:
http://www.w3schools.com/js/default.asp
Then proceed learning about HTML5 canvas:
http://www.html5canvastutorials.com/tutorials/html5-canvas-tutorials-introduction/