Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I am making a web site of videos like youtube in asp.net.
but there how can i make the video small or large depending upon the website.... as a video which my client will upload wil be above 500 mb.but when the user will watch it in the mobile then it must be less in size..
plz help me
thnx
Posted
Comments
Krunal Rohit 22-Nov-15 23:37pm    
Check for the Viewport size and load the videos accordingly.
Use the mobile-first framework i.e Bootstrap for it.

-KR
Member 11941523 22-Nov-15 23:57pm    
No krunaRohit...
Actually i have to change the size of video not its visible size but its mb size like in youtube.. u can view it in hd also or other formats like 144 , 240 720 HD etc.. so that mobile viewer can view it in small format and desktop viewer can view in large or HD formats..
Suvendu Shekhar Giri 23-Nov-15 0:14am    
I have no idea about how that is done but you can do like creating multiple videos of different resolutions when the user uploads the video, either manually, or automatically(through a windows service/background process). Then link the different files to the different resolution link in the player.

Anther easy way to get this done is to use YouTube API-
YouTube™ API for ASP.NET[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900