Is it possible to show subtitles on embbeded youtube videos only when available? - html

I'm searching for a way to show subtitles on you tube embedded videos but only if they are available in a certain language. So if they are not available for that specific language I don't have to show any caption.
I am currently using an iframe tag with the following src attribute:
<iframe src="embeddedVideoUrl?enablejsapi=1&modestbranding=1&autoplay=0&controls=0&showinfo=0&nologo=1&rel=0&loop=1&hl=es&cc_lang_pref=en&cc_load_policy=1&playsinline=1"></iframe>
Thanks

Related

How to fix embed code to display video cleanly/properly?

I am trying to embed a video onto my website but having difficulties with the standard embed code.
Here is a link to my webpage:
https://southhemitv.com/2019/07/08/test-jul-9-2019/
The standard embed code displays a very small video player with large black borders. Adding height="500" improves the size but then some extra features are added such as the chinese text at above the video.
I would like to hide this extra text so viewers only see the video and the player controls. (Edit) It has been suggested i store the video on my own server but i am not able to download certain videos and because its expensive most websites embed videos rather than store them on their server
If anyone could help it would be very appreciated.
The original embed code:
~<iframe src="//player.bilibili.com/player.html?aid=13125324&cid=21539921&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>~
Link to original video:
https://www.bilibili.com/video/av13125324/
Many thanks
Download the video, then serve it from your own server or via CDN, use a videoplayer that you like and supports your video filetype.
The apparent issue here is the player's graphical interface.
Since you fetch the video from a website, it uses that website's video player (I think?).
In any case, just manually download the video & use the video player of your choice.

Youku embed with title of video?

I need to fetch the video title as well as the video itself in the iframe/ embed object for Youku. When you embed a youtube video on a page, it has the title of the video within the embed showing, I need the same thing for Youku. I have exhausted my search for the solution online. Any ideas?

How to add a Youtube alike hyperlink to a video that is not from Youtube

I would like to know if there is a way I can put an hyperlink on a video that is from my own website, like Youtube does. The video is in mp4 format and I don't know wether there is a kind of embedded javascript code or something for doing that task. I thank you very much your attention.
I am currently managing my website through wordpress I would like to know if there is a way to do that by this way.
I can't just simply upload the video to Youtube and then embed the video in my website because the videos I am currently administrating are private.
I think you mean you want to play your video directly on your website without having to upload it to a video service like youtube. For this you'd need to use the HTML5 video tag in your template(if you have access to your code). Or I'm guessing wordpress would have plugins for this that would just allow you to upload your video file and it would play it in your template for you.
HTML5 video tag description

how to prevent youtube video click go youtube site?

In another word,
how to make youtube click on video goes to another URL? affiliate link for example.
Thank you
That's not possible. You can't change the default link behavior of an embedded YouTube video. Not in the iFrame and not in the older object version.
If that would work it would be a huge security vulnerability.
See these documentation articles for your possibilities on how to embed a YouTube video:
Embed a YouTube video
YouTube Embedded Player Parameters

how to upload videos in html from folder & from youtube and how they will be shown like pictures are shown after doing thumnails

I have one video file inmy system I want it to attach it on my html page.I want same thing with youtube videos also.I want that when i open my html form this video appear as like same as pictures are seen at thumnails.means i dont want only links..I tried stackoverflow links but no one is telling from starting .I am telling u frankly i dont know even making a link of my sytem video file in html form,..I can make links for image,files etc but for video si dont know.So plz guide ..
1.HOw to make a simple link of video file which is in my system drive.
2.HOw this video will be displayed like pictures are displayed at thumbnails
3.How to upload youtube videos(not want only link)...
If you have a video file then you need an image to represent your thumbnail. To create a link that will allow someone to download the video is as simple as:
<a href="url of your video file">
<img src="url of the thumbnail image"/>
</a>
Then the user will see the thumbnail image and when they click on it they will get the video. If you wish to embed the video in a player you can select the player of choice such as FlowPlayer or any of a million others.
You question about you-tube I assume you mean to embed you-tube videos on yout site. If that is the case visit the video on you-tube and there is an embed text box on the page with the code that you must copy and paste into your site.
EDIT:
The FlowPlayer that I linked to (not an endorsement) has a page that describes in great detail how to do what you are asking for here. If you follow each step then you will get exactly what you envision.
Another Edit:
To play a particular file format you need to use an appropriate player. I do not know all the players but you want to make sure that the format you use is popular enough so that users do not have to download special plugins just to see your video.
If you visit the DivX website you will find their embeddable player that can play mkv files on your website. They have a Code Generator that produces the code that you will use to embed the player on your site.
As for various options like starting in pause mode etc you will have to read the documentation of the player that you use to see what options they allow.
you an download ny video from youtube and these videos are in .flv format so why u are taking tension.Just use them frequently.And for youtube videos u do not need to use flowplay just add youtube video url and add object that will be given in that page just above the related video..
But me too do not how to allign it on right side or in middle of the page..Can anybody tell..