creating a download limited link - language-agnostic

I want to charge people to watch my video. They buy and get a link. How can i make that link destroy after usage? any ideas? third party?

Embed a single-use code in the URL; invalidate it after a single use.

Related

How to embed video on html that will not play on browser?

I know this question is simple and kind of silly but I really need to get an answer. I am doing some kind of family videos put together and I want that to be on one page or like an HTML file. but when I embed/link a directory file of video to the html it will play on the browser. Is there any way that when I embed a link it will just ask what application to open and will open on that video player that I selected? I'm not really that techie but I really need to make an offline HTML to organize my stuff. thank you so much in advance.
is there any way that when i embed a link it will just ask what application to open and will open on that videoplayer that i selected
Not all browsers do this, but many will. One way to look at this is that the browser in this case is the desired application for viewing that video. (Often times, the user didn't make this choice of course, it was made for them.)
There are a couple ways around this. One way is to add the download attribute to your anchor element:
<a href="video.webm" download>Download the video</a
This will suggest to the browser that the video should be saved to local disk, and not just immediately opened.
A second method is to use an M3U file. All you need in your file is something like this:
#EXTM3U
https://example.com/video.webm
These tend to open up in the default player. Just keep in mind that not everyone has such a player installed.
You have to make your video files downloadable by creating a download link to it. This will give the option of either open in browser or save to local disk.

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.

How to change LinkedIn share image in HTML?

I developed some html pages with social sharing functionalities like Facebook, Twitter and LinkedIn etc.
But now, I have some problem to change LinkedIn image.
To share on LinkedIn I use platform.linkedin.com/in.js plugin:
When I change image from image6.jpg to another JPG file in metatag og:image, changed image couldn't be shared.
Please help me to solve this.
Thank you.
I post this answer for the developers touch Linkedin first.
The other social sites have no problem like this.
But facebook and Linkedin have this problem, because these sites have cache and save the first scraping data in cache (especially images).
Facebook cache can be removed by manually, but Linkedin cache can not be.
Linkedin cache restore scraping data for a week, and Linkedin clean cache after a week.
During this period (one week) the page you want to change image wouldn't be shared.
Because as I write, Linkedin show old data in cache , and save it again, so you have to wait for a week.
Only way to change image immediately is to change page url also.
Thank you.
So, let's think about this. Here is your what I think is the kernel of your problem:
...When I change image from image6.jpg to another JPG file in metatag og:image, changed image couldn't be shared....
At first, when you said When I change image, I thought you meant changing it in the HTML, but now I think what you mean is you are changing it through JavaScript: i.e. $(metaelement).content(newimage);.
If this is what you mean, it will not work. LinkedIn is doing a blind, simple, non-JS activated scrape/parse/cURL of your webpage. If you try to change <title> or <meta> tags with JS, the scrape will not see it. This is true with almost every type of scraped URL, in every single search engine, for instance, like google and bing (changing your <title> via JS will not be reflected in the search result). This is just how the Internet currently works!
Source: Microsoft LinkedIn Share URL Documentation.
For example, this works for me:
https://www.linkedin.com/sharing/share-offsite/?url=http://www.wikipedia.org/
See, it works fine:
If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check it out! Social Share URLs

Direct download link for files using box api

We want to get a direct download link for a file that expires after some time, is there any end point for this in v2 api.
Dropbox has a media API which does it good enough. https://www.dropbox.com/developers/reference/api#media
We checked the docs and found that we can share a file and get a download link, but that will change the properties of a file and moreover that link works only with premium users.
--
Anurag
The sharing link available through Box that you've found is pretty close to your requirements. It is still possible to get a sharing link for non-premium users, just the link will be point to a download page instead of as a direct download link.
Do your needs require that it not have an intermediary step like that?

Get a new preview on facebook.com

the last website, I created, became a "coming soon" site before relaunch. Now it is available to the public. If i want to promote it on FB and type the URL in my status line, I always get the preview image and preview meta description from the preview website!
How I can force FB to load new information from the website. It seems to be that FB stores these informations. Maybe I only have to wait a little bit longer but maybe there is a easy solution?!
Thx
Greetings
You'll just have to wait. They're caching it all heavily. Maybe try to put your URL here and it may refresh imediatelly. Otherwise, you'll have to wait