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
When i open safari it  doesn't load anything it just sit thereTry the follow if other apps successfuly connect to the internet: - Reset the iOS device. Nothing will be lost Reset iOS device: Hold down the On/Off button and the Home button at the same [More]
I purchased an additional 10 Gigs of iCloud storage in 2012 for my iPhone 4S and iPad (3rd Gen Wi-Fi) for $20 per year through my iPhone carrier AT&T using IOS 4.3 which has been kept updated to IOS 6.13. In 2012 I purchased an iPad 3rd Generation wi [More]
Hi All, I have spent 2 hours typing a long document into icloud notes on my Windows 7 PC.  I could see the time updating on the left hand side in the notes list for my current note.  I also saw the note appear on my iPhone 5, but I did not open or ed [More]
I have received several Photoshop PDFs from different sources. In Acrobat, the document properties indicate the PDF producer as Adobe Photoshop for macintosh -- Image Conversion Plug-in. When checking the image either with PitStop or through Photosho [More]
Expert, I have a need to reset Process Status of Custom Document from "Blocked - Awaiting Reply from Authorities" to previous status. Many times we will receive error messages from US AES and require further processing and resent. According to h [More]
I recently updated several FCP stations with the Pro Applications Update 2008-02, but for some reason it only changed FCP from 6.0.1 to 6.0.4 on one of them. So I retried performing the update, but nothing comes up. Then I tryed manually downloading [More]
Hi Everybody, I have created one sale order and tried to create one production order with reference to this sale order. It is giving error as the "Sale order is not allowed to make order". How can i make a sale order to allow Make to order? Than [More]
I want to transfer data from a staging table to another table. The staging table has columns with datatypes I don't always want, and I'm converting them like so: INSERT INTO [dbo].[my_table] SELECT CONVERT(datetime,TimeIndex,103), CONVERT(decimal(6,3 [More]
Hi. I have a problem using the flash player. When i watch youtube videos, streams or games using flash the image often dislocates. My standard web browser is Opera, but the problem occurs in other browsers too. I have tried to uninstall and install t [More]
Hi I have put a very basic .asp form to mail on a contact page but when the form is processed, the only info received are the labels (i.e. Email Address, Name, Message etc.) but no actual content. There is obviously an error in the code somewhere. I' [More]