'Some cookies are misusing the recommended “sameSite“ attribute' On OneDrive embedded video - javascript

I have embedded a video from onedrive on my website. When I open the site I get an error that goes something like:
Some cookies are misusing the recommended “sameSite“ attribute (10)
The video does not play but after ~5 seconds it opens the onedrive website. Not sure why.
I have tried using google drive but instead of the video I get this
Can someone help me with this.
If I need to provide more info then ask.

Related

if YouTube video is unavailable in rendered iFrame, hide the iframe? (youtube live stream)

I have a React application. I am trying to live stream on YouTube. What i am trying to achieve is, when i am live on YouTube, i want a certain part of the website to show the live streamed video as embedded. When i am not live, i want this section of the website hidden.
I have tried using the google v3 API but the cost of API calls to search for live videos on the channel is too expensive (i was doing a query to the API and if a video returned i would show the iframe on the site, and if not just hide it). However, with this quota and the usage of the site, this is not a suitable solution.
I also cannot render the content in an iFrame and then just 'getElementById' because then i'd get CORS restrictions. I thought about building some sort of proxy that could just get the HTML from the youtube page and return it to me as a string (by passing the CORS issues), then just checking for an ID to determine if the channel was live or not.
I've tried alot of searching but either im looking for the wrong things or there is limited support for what i'm trying to do. Any other suggestions on how i can achieve this please?
thank you in advance

Can I build a Chrome extension that updates an excel Office Online document

I am trying to figure out the best way to automate the gathering and exporting of information from a site I am visiting regularly to a excel sheet. I need to be able to both scrape information from the site as well as input some manually, which is why I thought a chrome extension would be a good idea.
I know that you cannot write to local files from a chrome extension, but I am trying to figure out if I can write to office online.
yeah actually i was working on something like this a month ago but not an extension just a google form that sends the data to google sheets when you submit and you can do that in an extension fo sho lemme send you the link to the youtube video i saw
https://www.youtube.com/watch?v=z7ZwbTW3LF4&ab_channel=SheetDB
If your not pleased with this video i saw alot look up
"saving form data to google sheets" on youtube :)
NOTE: I know you said excel sheet but google sheets work just as well and you can download them as a file and they have just as much functionality as excel - NOTE THAT I DONT THINK ITS POSSIBLE TO DO WITH EXCEL DUE TO SAFETY PROTOCALS, NO EXTENSION CAN WRITE TO FILES ON YOUR COMPUTER SINCE THATS JUST NOT SAFE - but my alternative is the next best thing if not better :D

Encrypting Src of Iframe

I own a website. There are some movies on the website, which are made by myself. I want to make money from the website by creating paid movies. That means the website visitor need to pay to watch the full movie or to download the movie.
In the website, the movies are played in an Iframe now. My idea is to upload the paid movies into a directory. The directory's name is as complex as a password. Then I will hide the name of the directory so the website visitors cannot download or watch the paid movies without going into my Iframe.
I have already used javascript to prevent right click "Open in new tab" and "Open in new window". I want to know how can I encrypt the Src of the Iframe so that the website visitors will not know anything just by watching the source code.
Please use PHP or CSS or HTML of JAVASCRIPT to solve this problem. Thank you.
Everyone will be able to look up the videos real url using the network inspector / console. The only way to really protect your videos from being watched from unauthorised people would be setting up an appropriate pay wall / authentication scheme.
Encrypted Media is the standard you're looking for.
It will not do what you asked, but is the solution for you.

How can I play a youtube video in a windows 8 store app (javascript)

I've tried a lot of different solutions on the web but none seem to work. Given a youtube key "8sPj0Ic8KQ8" I want to play the video in a Windows 8 metro-style javascript app.
Simple , and tags do not work, no surprise there. My next stop was the Player Framework for Windows 8 Metro Style Applications and Smooth Streaming Client SDK. The examples work since they point to an mp4 file but when I paste a youtube url into the example even that doesn't work.
Next, I noticed there is a "MyTools" framework out there but it's only for C#/Xaml and not javascript. Furthermore the code is not supplied, only DLLs so I don't think converting it is an option.
I also tried WinJS.Utilities.setInnerHTMLUnsafe() suggested here - just get a white box, no video.
Finally, I queried youtube directly for the full page contents and I've been attempting to parse out the mp4 URI myself... without much luck. I also found a PHP library to do what I'm attempting but after converting it to javascript it seems it's either really old or just doesn't work right.
I also tried "?html5=1" in an iframe suggested by this book: Start Here windows 8 with HTML
If anyone has another suggestion I haven't tried or if you've successfully played a youtube video in a javascript metro app I'd be very interested to hear how you did it. Thank you.
UPDATE: I've now been able to successfully extract the mp4 file data from a youtube page. This will let me download the stream to my computer but I'm still unable to play it in a Windows 8 app, all I get is a white box with no controls or error messages. I want users to see videos, not save them.
Finally solved this. The answer is to A) parse the actual URI from the youtube page. B) Use the Microsoft.SmoothStreaming library in combination with a C) video tag. This got youtube videos to play for me in Windows metro style app. If you need help with part A, this site helped me a lot: How to grab youtube playback video files

facebook links getting info from websites

hi i was wondering how facebook turns their links into information from the sites before and after posting.
and also, how do they get a thumbnail image from the youtube videos? After all this , is it possible to just append the embedded youtube code to the page and start the movie by using youtubes api?
For getting youtube video embed code and thumbnail take a look at http://www.oembed.com/
They have their servers request the URI mentioned by the user. It is HTML, and thus easy to find images in the source.
Using YouTube's API would be a logical approach to solving that problem.

Categories

Resources