Hi,
I am designing a webpage on asp.net with C# as programming language. I would like to embed YouTube video on my webpage. The YouTube video URL is coming from database.
The user has right to update his YouTube video for that there is one textbox in which they paste the YouTube video embed code and submit it and the YouTube video embed code got inserted in database.
The video is being displayed on webpage through literal control. But the problem is that when that video displays on webpage taking the YouTube video URL from database it is of very large size as embed code contains width ="853" height="480" parameter also.
I would like to display the video of width="300" and height ="250". How to do this. Please help me.
SAMPLE Embed code
<iframe width="853" height="480" src="https://www.youtube.com/embed/gfkTfcpWqAY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>