943,174 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 46
  • PHP RSS
Aug 30th, 2010
0

Video

Expand Post »
Hi!
Sorry for my bad english.
I have one video. I want to make page that will display this video (like youtube), but I don't know how. In youtube there is a original page with video (I think, made with 'header(Content:application/x-shockwave-flash objekt)'). I want to make that too. But I don't know what I must write.
example:
original page:
http://www.youtube.com/v/PIb6AZdTr-A
another page (real page):
http://www.youtube.com/watch?v=PIb6AZdTr-A
How they made that?
Similar Threads
Reputation Points: 13
Solved Threads: 4
Junior Poster
ivan3510 is offline Offline
156 posts
since Aug 2010
Aug 30th, 2010
0
Re: Video
You're looking for the 'object' tag, which you get from the EMBED code:

PHP Syntax (Toggle Plain Text)
  1. <object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/jVje1Fiz-_c?fs=1&amp;hl=en_GB"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jVje1Fiz-_c?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>

If you insert the above into your html, you'll see an embedded video. Is that what you need?
Sponsor
Featured Poster
Reputation Points: 1041
Solved Threads: 935
Sarcastic Poster
ardav is offline Offline
6,620 posts
since Oct 2006
Aug 31st, 2010
0
Re: Video
No (but thanks anyway).
I don't want to make embed on youtube videos. I want to upload my own video to my web site and that others can see this video. But I don't know how is in youtube made this page:
http://www.youtube.com/v/PIb6AZdTr-A
Reputation Points: 13
Solved Threads: 4
Junior Poster
ivan3510 is offline Offline
156 posts
since Aug 2010
Aug 31st, 2010
0
Re: Video
Hi ivan3510

On youtube they use this code to put videos in their pages.

PHP Syntax (Toggle Plain Text)
  1. <object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/PIb6AZdTr-A"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/PIb6AZdTr-A" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>

But youtube videos can also be accessed by going directly to the .swf file, in this case http://www.youtube.com/v/PIb6AZdTr-A

So, you can use a program called free studio to convert a normal video on your computer to a .swf file. Then put the .swf file on your server.

Then use the code below to add the video to your site

PHP Syntax (Toggle Plain Text)
  1. <object width="640" height="385"><param name="movie" value="http://www.yourdomain.com/file.swf"></param><embed src="http://www.yourdomain.com/file.swf" type="application/x-shockwave-flash" width="640" height="385"></embed></object>

Hope this sorts out your problem

Calum
Last edited by CalumMc; Aug 31st, 2010 at 9:02 am.
Reputation Points: 10
Solved Threads: 3
Light Poster
CalumMc is offline Offline
34 posts
since Jul 2010
Aug 31st, 2010
0
Re: Video
Ok. Thank you very much.
Another question.
How to add video player to this video?
Reputation Points: 13
Solved Threads: 4
Junior Poster
ivan3510 is offline Offline
156 posts
since Aug 2010
Aug 31st, 2010
0
Re: Video
You can use an flv player like flowplayer to play your own files. There are loads of other players out there. You should beware - hosting your own videos is very intensive wrt the server. If you get a lot of hits, you may find that you go over your quota or get a warning from your host. It's probably better to upload your video to youtube or better still to vimeo and use the embedded player. These has the benefits of allowing you to modify the appearance of the player without having to delve into javascript.
Sponsor
Featured Poster
Reputation Points: 1041
Solved Threads: 935
Sarcastic Poster
ardav is offline Offline
6,620 posts
since Oct 2006
Sep 1st, 2010
0
Re: Video
Thank you very much.
Reputation Points: 13
Solved Threads: 4
Junior Poster
ivan3510 is offline Offline
156 posts
since Aug 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Errors sent to DIV?
Next Thread in PHP Forum Timeline: How to integrate GPS API in a website that can be accessed through mobile ???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC