To set the video source, use the src attribute.
You can set the URL of the video file that is required.
The following code shows an example using the src Attribute.
<!DOCTYPE HTML> <html> <head> <title>Example</title> </head>//from w w w. ja v a2 s .c om <body> <video src="http://java2s.com/style/demo/your.webm" controls width="360" height="240"> Video cannot be displayed </video> </body> </html>