Php Video Playback code.
$ Filename = $ _ GET ["name"];
$ Path = $ _ SERVER ["SCRIPT_FILENAME"];
$ Dirname = dirname ($ path). "/video/". $ filename;
?>
This is my code (WMV video is played ). However, the video can only be played on my machine. after the video is published, others cannot play the video. ask the teacher to say that the video can be played in all browsers only after FFMPGE. EXE transcoding is used.
This is really not the case. Ask the experts to teach the younger brother,
Reply to discussion (solution)
What's wrong with this sentence?
The file address may be incorrect.
Reference the reply on the first floor:
What's wrong with this sentence?
This means that a domain name must be added before $ dirname, for example, www.xxx.com.
Videos can be viewed on my own machine.
Reference the reply on the second floor:
Reference the reply on the first floor:
What's wrong with this sentence?
This means that a domain name must be added before $ dirname, for example, www.xxx.com.
It's not about HTTP. my local video
Other machines are not local.
Other machines are not local.
Don't mislead me if you don't understand it.
Even if the video is on your local computer, your local video is a video on the server, and you serve as a server locally, the video address must be fully written! Http: // is also required!
You don't understand. the local video is on your computer. of course, it won't work if you change your computer. it's silly, Dizzy !!!