Sitemap

Amicuk Programming Answers

Relative paths not used in the same way for flv and mp3

-0001-11-30   Views:0

Advertisement

When I load an mp3 using the Sound component, with the relative path "medias/test.mp3", it works. When I try to load a flv using the VideoDisplay component, with the relative path "medias/test.flv", it doesn't work! VideoDisplay seems

When I load an mp3 using the
Sound component, with the relative path "medias/test.mp3",
it works.
When I try to load a flv using the
VideoDisplay component, with the relative path
"medias/test.flv", it doesn't work!
VideoDisplay seems to build the path to the flv
from the directory where the .swf is, not from where the
webpage is...
Webpage is : /blabla/index.html
Swf path is: /blabla/swf/main.swf
Medias path: /blabla/medias/...
Is there a way to tell the VideoDisplay component to load a
relative path starting at the level where the webpage is?
Thanks in advance!

The replay answer
Advertisement
"[email protected]" <[email protected]>
wrote in message
news:gdilgt$qku$[email protected]..
> When I load an mp3 using the
Sound component, with the relative
> path
> "medias/test.mp3", it works.
>
> When I try to load a flv using the
VideoDisplay component, with the
> relative path "medias/test.flv", it doesn't work!
>
> VideoDisplay seems to build the path to the flv
from the directory
> where
> the .swf is, not from where the webpage is...
>
> Webpage is : /blabla/index.html
> Swf path is: /blabla/swf/main.swf
> Medias path: /blabla/medias/...
>
> Is there a way to tell the VideoDisplay component to
load a relative path
> starting at the level where the webpage is?
Relative paths are_always_ relative to the swf, regardless of
the media
type. Note that media is actually _already_ plural ;-).
So try:
"./medias/test.flv"
or possibly
"../medias/test.flv"

Go to See the other 7 answers

Relative paths not used in the same way for flv and mp3

Category:DefaultRelease time:-0001-11-30Views:130

When I load an mp3 using the Sound component, with the relative path "medias/test.mp3", it works. When I try to load a flv using the VideoDisplay component, with the relative path "medias/test.flv", it doesn't work! VideoDisplay seems[More]

Css/js relative path for embedded server

Category:DefaultRelease time:2015-10-11Views:130

We have recently begun using relative paths for css and js files in our deployed applications: <link href="../../resources/css/global3.css" rel="stylesheet" type="text/css" /> <script language="JavaScript"[More]

Get the relative path for java class

Category:DefaultRelease time:2015-10-11Views:130

How to get Relative path for java class which is inside in web-inf directory in webappsajay.manchu wrote: Hi gimbal2, My Requirement is i need to run a java class from batch file,when i created batch file in that i need to mention the complete path o[More]

Use Relative Path for Photoshop Action?

Category:DefaultRelease time:2015-10-11Views:130

I have a Photoshop Action that is programmed to open an existing file located in a specific directory.  The path to this directory is an absolute path, i.e.: C:\Program Files\Photoshop Actions\filename.jpg As long as the Action can find the file in t[More]

How to specify relative path for background image  in xsl

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images fol[More]

Using relative path for in file/ftp adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi All, How to have a relative path for file/ ftp adapter's inbound/outbound operation? Example: Consider $ORA_HOME = /home/oracle --> This environment variable can be different on different machines i want to drop a file in to $ORA_HOME/folder1/fold[More]

Relative path to file in servlet class file

Category:DefaultRelease time:2015-10-11Views:130

Hello, I have several classes running as a Tomcat Servlet on my server. However, I have one class that I would like to access a file on the server. The problem is, what path do I use? I want to use a relative path as the servlet might be moved and I[More]

Relative paths for images upset by forwarding requests

Category:DefaultRelease time:2015-10-11Views:130

Hello World.           I am using a web app deployed in Weblogic 5.1 with service pack 8.           I have hit a problem which puzzles me. When I forward a request from           one JSP to another (say from A to B) the web server seems to take the  [More]

Relative path to Images ?

Category:DefaultRelease time:2015-10-11Views:130

I recently migrated from Win XP to a new PC Win 8. Moved all the files & D.W. related apps... all went relatively seamless. But I noticed the Relative path to any Image that created in Photoshop still has the old path i.e. Original (old) file:///C|/D[More]

Relative path with images

Category:DefaultRelease time:2015-10-11Views:130

Hi All - I have a strange situation with relative paths. When I use a relative path in cfinclude it works. But when I use a relative path is "src" attribute of <img>, it does not work. Can anyone suggest why could this be happening? Thanks[More]

Relative path for HTML file

Category:DefaultRelease time:2015-10-11Views:130

Hi , This is my requirement. In the ESS Personal information overview page, I can add a HTML file to the additional information section. I have created a HTML file by creating a web module and enterprise application and deployed the same through NWDI[More]

Hot
Hi Experts, We have deployed two DCs from other project environment. After deploying the sda files, i need to satrt the service file in system config--> service config, while satrting the service iam getting the below error. 1.5 #00110A9AC47100280000 [More]
We use the following computers: Dual PowerPC G5 Intel iMac G4 Powerbook Airport Extreme Since upgrading my G5 PowerPC to 10.4.7 last week, the iMac can connect to me via FTP only and cannot access the external hard drives at all, while the Powerbook [More]
Hi all, I send records from a SQL view (not a table) to RFC via proxy method. After reading a record from the view I would like to move this record to a database table called CHECKED. Can anyone provide me a solution for this or is this impossible. ( [More]
I'm evaluating Kodo on a Mac OS X system. I ran into a strange problem. Kodo includes 13 libraries (.jar files). In Apple's Mac OS X Java implementation, these kinds of third-party libraries are often placed in the system-wide extensions directory /L [More]
I had BT Infinity 2 installed yesterday and the engineers did a great job. Is there an email address to write to so that a compliment can be put on their records? One of the lads was a trainee so I hope it helps him in some small way. Solved! Go to S [More]
How do I install this little bundle of "joy" into CS5?I am using a D600 and no idea there would be so much trouble using PS for its RAW files. I do not want the expense of CS6Thanks for your reply: JimHess wrote: ... the answer was that basicall [More]
I have been having problems with the broadband dropping out. BT technical say its acceptable that it drops out a couple of times a day, so i decided to try and connect up an ethernet to get better connection speeds. I'd also like to turn the wireless [More]
I was plugged in my nano to my computer and was playing the songs on it when it just stopped and sayed that itunes couldn't read the content. I really don't want to reset my ipod because some of the songs I wouldn't be able to get back. is there any [More]
I have 1.43 GB in my capacity bar (yellow) designated as "OTHER" what is it and how do I edit what is in it to get rid of it or at least lessen the space it is taking up?Other is the operating system, the program that runs everything. That inclu [More]
Hi, When we search for a material number, we follow the following process. However, at the end finally selected number is found already marked for a deletion. The problem is that we often stop at step2 and do not go further. As a rusult we do not fin [More]