My client want an option to post a video on his blog post.
He want an option to put youtube url to get the youtube embedded in his post.
Right now I have created a Tv with text are and he can post the url there.
but the problem is youtube embed code is like this -
<iframe width="560" height="315" src="https://www.youtube.com/embed/Ti1LCuOt0nA" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
you can see src, there is embed in url and in between the domain and main video code (Ti1LCuOt0nA)
so I just cant use Tv to paste url which is https://www.youtube.com/watch?v=Ti1LCuOt0nA
One thing I can do is use a text area tv as youtube embed code and he can post the code there but he is little dumb on this stuff and he is going to use his mobile for posting blog on his site and youtube app has only share option in mobile, not embed option.
How can I make it like he just paste the url of the youtube video and post it and then the video embed automatically ?