Is there a way to share private DailyMotion videos? - dailymotion-api

I know basically nothing about coding but need a way to share private videos without making them public (the videos are shared with my research team only for the purposes of our project). I need to embed videos into my survey and I've come across a few different threads discussing this in heavy coding language (for me) that I can't wrap my head around.
I understand that I need to request the private id in order to embed the link (and yes, I understand that this inevitably lessens the private state of the video, but I've accepted that I can only control for so much) into the study, but I have no clue how to do this. The DailyMotion API pages are no easier for me to digest, and I would be very grateful if someone can explain in layman's terms how to walk these steps?

You can get the share link or the embed code of your video by using the share button on our platform as explained here: https://stackoverflow.com/a/53745149/3668925
Using the API you can get those information by asking for the fields embed_html and url
Example: https://api.dailymotion.com/video/k123example?fields=id,private_id,title,embed_html,url
Response:
{
"title": "video example",
"embed_html": "<iframe frameborder=\"0\" width=\"480\" height=\"270\" src=\"https://www.dailymotion.com/embed/video/k123example\" allowfullscreen allow=\"autoplay\"></iframe>",
"url": "https://www.dailymotion.com/video/k123example"
}

Related

Is it possible to use the YouTube API to automatically create a comment when a new YouTube video is uploaded?

I am working on a personal program to use with my Google account. I don't have a custom website or domain to use. Basically, the idea of my request was to create a personal bot that would comment "First" on a video as a joke between my friends. I looked into the YouTube API a bit, but I got differing answers on the capabilities of the v3 data API. I found the commentThread page but am also confused about its usage. If anyone could give me a basic idea on if this project is possible, I would love to hear it.
welcome to Stack Overflow!
As you said, you want to create a comment when a video uploaded. YouTube has provide the webhooks for this.
You can see the docs push_notifications. I think that is what you want. :)

Disable related videos bar in iframe

I know that Youtube changed the ability to remove related videos (it'll show public videos in that channel now if you set rel=0. But i noticed some websites not having the related video, but when i try it with the iframe on my website, it has the related videos.
Is there any API or youtube request needed to remove the related videos?
There aren't official youtube api that accomplish this after changes you cited (ref: https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018).
Only with workarounds you can "disable", or better "not show" related videos.
There are some snippets on the web, look those!
ps: example this https://www.maxlaumeister.com/blog/hide-related-videos-in-youtube-embeds/ (a platform's plugin or vanilla code)

Disabling Youtube autoplay when providing a URL link

I need to provide people with a URL link to some of my Youtube videos, but I don't want Youtube to then automatically display some random video that it thinks should be "up next". There's nothing more embarrassing than trying to show people your work and then up pops a ridiculous video that they think must be yours as well.
I've tried tacking on "&autoplay=false" and "&autoplay=0" to the end of the URL, but that doesn't work.
Anyone know what needs to be done?
You can send people an embed link that shows the video only. I think in your case this would be fine, but for anyone that requires comments, it would be an issue. Also adding ?rel=0 will stop the end card from showing related videos from another users channel.
https://www.youtube.com/embed/OefocRFlDss?rel=0
A list of embed params can be found here: https://developers.google.com/youtube/player_parameters
I guess that's not possible, but maybe you could embed that video via API to some server you own, and disable the suggestions.
Check this documentation for disabling, controls and siggestions.
https://developers.google.com/youtube/player_parameters#autoplay
Or this: http://illuminea.com/remove-related-videos-from-end-of-embedded-youtube-video/
Luck!
This feature does not seem to be customizable from the url; it's more of a user setting. You can find here some details about how to turn it off for yourself but you cannot control the way it will behave for others.
Also, I'm not sure if this question qualifies as a programming one. :)

Making real URLs smaller

This started off as a way to troll my friend but I've kind of gotten interested in this. I wanted to link my friend to a site called stupidtester.com but make it seem like a YouTube video so I researched online how to obfuscate a URL.
After some reasearch I made this:
https://www.youtube.crmwatchv=i4wiZ4fZIDo#%73%74%75%70%69%64%74%65%73%74%65%72.com
I learned I had to take the o out of com and I couldn't use ? after watch?. My first question is why that is.
Secondly, I was wondering if there is a way to make the link even shorter somehow. Forgive me if this sounds stupid, but something like hashing or encrypting the URL so the browser understands the link but to the person clicking it it will look like a normal YouTube video. I ask because my friend said it looked too unrealistic to be a YouTube video.
Have you tried this one
This is googles URL Shortner

Why the link get from youtube get_video_info doesn't work for download?

I test with browser with the link I get from "http://www.youtube.com/get_video_info?&video_id=xx" to see if it is be able to download.
After remove some parameters from original link, some works but some still don't.
I read some post here but most of are pretty old. A lot of change since then.
I wonder if there are somebody working on this recently.
The purpose I need this is because my youtube view program need a better quality video to display.
This is link doesn't work:
http://r17---sn-tt17rn7e.c.youtube.com/videoplayback?fexp=902529%2C932000%2C906383%2C902000%2C919512%2C929903%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C919373%2C930803%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&ipbits=8&expire=1364854787&sver=3&mt=1364829200&newshard=yes&id=26c94a41dba396f5&key=yt1&upn=GrcnDUPfreQ&cp=U0hVSVhQUl9NUUNONV9QSlZIOm9BbnVkMTJzOXE5&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&ip=173.248.214.165&itag=34&ms=au&source=youtube&mv=m&signature=9593596F58B377FAA4C8F5A4516C7F53CE473340.507CA2EA250CEED2E2B2377FD70EE1A0478EE322&type=video/mp4; codecs="avc1.42001E, mp4a.40.2"&itag=18&
What wrong with it? I removed fallback_path and replace sig with signature.
The working link is for webm. This is for h264. Both have the same kind of parameters.
And this is working now.
http://r17---sn-tt17rn7e.c.youtube.com/videoplayback?fexp=909708%2C912514%2C930802%2C932400%2C916624%2C931009%2C932000%2C906383%2C902000%2C919512%2C929903%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C930807%2C919373%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&ms=au&itag=44&mt=1364825784&ipbits=8&cp=U0hVSVhQT19NUUNONV9QSlNCOlp5ZGoyMXJ3emlq&ip=173.248.214.165&upn=ohH0s8EjPyo&newshard=yes&source=youtube&ratebypass=yes&mv=m&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&id=26c94a41dba396f5&expire=1364851187&key=yt1&sver=3&signature=798EED35782B846D2B0EA190A17E837A0DBA18EA.AD56BCF6365AAD974C18F09F352F9422084C50AC&type=video/webm; codecs="vp8.0, vorbis"&quality=large,itag=35&
That's not a supported method of interacting with YouTube. You need to use one of the official YouTube Player mechanisms to display YouTube videos.
Please familiarize yourself with the YouTube API Terms of Service if you have any more questions.

Resources