Php Video Playback code. -Php Tutorial

Source: Internet
Author: User
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 !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.