Jump to content

Embedded Video Help


Twistedweb123

Recommended Posts

Ok, this is killing me, So I'm finally asking for help.

 

I'm working on a website, which streams videofiles from external links.

 

The site plays & allows you to download the videos from the same external link. I need to mask the url of these videos.

 

At the moment, I have successfully masked the url when downloading. If you click the download image, rather than the path being http://externalsite.com/videofile.avi

 

its http://mysitename.com/external.php?id=xx&mid=xx

 

So that is nicely hidden.

 

However, I am having a problem when it comes to the embedded player on the page. At the moment i am using flowplayer for flv & mp4 videos, and just the usual embed for avi videos.

 

Flow players embed code is like this

 

---------------------------------------------------

<a

href="<?=$videoFile?>"

style="display:block;width:740px;height:400px;"

id="player">

</a>

 

<script language="JavaScript">

 

flowplayer("player", "<?=url::base()?>flowplayer-3.2.5.swf", {

    clip:  {

        autoPlay: false,

        autoBuffering: true

    }

});

</script>

-----------------------------------------

 

At the moment, the player only works if i put the url in this format: http://externalsite.com/videofile.avi

 

and wont work in this format

 

http://mysitename.com/external.php?id=xx&mid=xx

 

 

all download.php does is check the file exists, sets the headers and prompts users to open or save. Why isnt this working with the player?

 

Please see the attached external.php file for my heade info etc to hopefully shed some light on this

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/226652-embedded-video-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.