0

The video will not play, could someone please look at my code please to check where I'm going wrong

 <p> <object id="media1" height="200" type="video/mp4" width="200"> <param name="filename" value="Womanbuyingphone" /> <param name="uiMode" value="full" /> </object> </p> <p> <object id="media2" height="200" type="video/mp3" width="200"> <param name="filename" value="Linkinpark.mp3" /> </object> </p> 
2
  • 2
    Why aren't you using the <video> element? Are you getting any errors in your console? Commented Jun 8, 2022 at 16:34
  • Your video file needs a file extension, is it an MP4 like maybe Womanbuyingphone.mp4? See if the updated Answer below works for you. Commented Jun 9, 2022 at 22:29

1 Answer 1

1

You can try HTML5 Audio and video Tag to display audio and vedio.

<video id="media1" width="400" height="200" controls> <source src="Womanbuyingphone.mp4" type="video/mp4"> </video> <audio id="media2" height="200" width="200" controls> <source src="Linkinpark.mp3" type="audio/mpeg"> </audio> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.