• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Media bbcode Wildcard?

D.O.A.

Well-known member
#1
Was wondering if anyone knows if it's possible to capture the video URL of a site that changes the location of the file with an expiry/random string or something...

HTML:
<script type='text/javascript'>var so = new SWFObject('http://www.domain.com/flvplayer.swf','mpl','450','360','8');so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','360'); so.addVariable('width','450'); so.addVariable('file','http://media.domain.com/streaming-content/fb7d4837701c09728bdb23851de09a5d/4d29d74b/19153-the-ID.flv');so.addVariable('lightcolor','0xAAAAAA'); so.addVariable('screencolor','0x888888'); so.addVariable('autostart','false'); so.write('player');</script>
where

is random each on refresh

http://media.domain.com/streaming-content/randomstring/randomstring/19153-the-ID.flv
Is there any way of 'catching' this random string per video, even once, as obviously I can't put wildcards in the embed HTML.

 

Jake Bunce

XenForo moderator
Staff member
#3
I'm not sure I understand. Are you trying to setup a BB Code Media Site?

Admin CP -> Home -> BB Code Media Sites

On what service is the video hosted? Youtube is an example.

Also, this bug report might be relevant.
 

D.O.A.

Well-known member
#4
I'm not sure I understand. Are you trying to setup a BB Code Media Site?
Admin CP -> Home -> BB Code Media Sites
On what service is the video hosted? Youtube is an example.
Also, this bug report might be relevant.
The site is kinda adult (makes liveleak look tame) so I'll not post the link here, but it has a random string hiding the folder names/location (obfuscation or something preventing embeds) and I was looking at using embed code in a way I think is not possible yet.

Just say this is the embed code I want to use in xenforo, from the URL of a video.

<script type='text/javascript'>var so = new SWFObject('http://www.domain.com/flvplayer.swf...');so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','360'); so.addVariable('width','450'); so.addVariable('file','http://media.domain.com/streaming-c...d}');so.addVariable('lightcolor','0xAAAAAA'); so.addVariable('screencolor','0x888888'); so.addVariable('autostart','false'); so.write('player');</script>
I want/ed to make the random strings in that embed code into some type of wildcard(?) as no video uses the same media link.

Unpossible it seems, as this would be done in the actual embed code for the video player.
 

D.O.A.

Well-known member
#5
I'll try find out the actual folder paths with a few tools anyway, something like replay media catcher should define the real paths (hopefully :)) you need a damn good server setup to avoid having your video downloaded/path shown with that software.
 

Jake Bunce

XenForo moderator
Staff member
#7
There is a wild card option (see description below):

Screen shot 2011-01-09 at 11.12.21 PM.png

If you continue to have problems then you can send me a personal conversation with the link for the adult media site. I can work with it myself and try to find code that works.
 

Mike

XenForo developer
Staff member
#8
As the random string appears to effectively be part of the URL, this looks quite similar to that other site that had 2 IDs (separated by slashes). That isn't something that we really support.