Click here to Skip to main content
15,889,838 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i play video from html code below

XML
<video width="320" height="240" controls>
    <source src="video.php" type="video/mp4">
</video>


it works in chrome but in firefox i get error

no video with supported format and mime type found

but when i play vidoe with complete url like http://localhost/test/a.mp4[^]

it works fine in firefox then why not from html code ??
Posted
Comments
Er. Tushar Srivastava 22-Dec-13 14:35pm    
You are pointing to the src attribute of the video tag to video.php This simply implies that either you have inserted wrong source or if there really is a video.php that actually is accessing the video for you, then there is a problem in the script. You should consider revising the question and adding the code for video.php if it is present.

1 solution

You aren't formatting your video source correctly...

HTML
<video width="320" height="240" controls="">
    <source src="/test/a.mp4" type="video/mp4">
</source></video>


Or something like that. The src should point to the video file.
 
Share this answer
 

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