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
I cannot resize UI fonts in Photoshop CC (icons, menu headings etc) - or rather I succeeded in resizing them once, moving from tiny to medium, and since then cannot change. I am using a 27 inch iMac running Windows 8.1. Altering settings in Windows d [More]
I was charging my phone last night and was at 79% before I went to bed.  This morning the screen is black.  It won't power on.  I also connected it with my laptop that has itunes and it was not found.  Has anyone had this problem?  How do you fix it? [More]
Dear all We hava an 10.2.0.4 RAC running on AIX 6.1, we found a lot “gc cr block lost” in awr report. How to resolve this problem? Event Waits Time (s) (ms) Time Wait Class log file sync 171,333 288 2 66.1 Commit log file parallel write 170,780 240 1 [More]
Hi, One of my customer is having RAC setup with EBS R12. Due to some other issues, customer is looking to switch back to Standalone database. What could be the best approach for this? I am thinking to perform the following approach. Could any body co [More]
TO ALL: Please Help me figure this mess out. We use the following services for our business Windows InTune Office 365 SQL Azure Dynamic CRM Online I would like to (hopefully) combine all administration functions and portals of these sites.  Although [More]
Some users are having an issue where their forms are rendering out of the browser and they don't have access to the routing buttons.  The users that have this issue have it consistently (user A will always have the issue) but other users with the sam [More]
Hi, I would like to know if it is possible to lock a formula in place but still continue working with the rest of the document.COXYPT, Welcome to Numbers, This is a very often asked question and sorry, the answer is no. However, take a look at the re [More]
Whenever I "consolidate library" everything works as expected, with the exception of downloaded apps, which get duplicated / triplicated.. I am using the default location for the iTunes library (music > itunes) etc , and apps are the only thi [More]
Hi All, I have a couple of doubts regarding automatic statistics gathering in Oracle 9i. I have seen a metalink document telling that in 9i statistics can be gathered automatically by giving options => 'GATHER AUTO'. My doubt is 1) Once this statemen [More]
I have local repository setup  where I create all ETL data flows and mappings in it. One more user like to share my repository. Is there a way I can grant him access to my local repository?Two users should not access the same repository at the same t [More]