ActionScript 3.0 :: Path Resolving In Conjunction With BASE Embed Param And NetStream.play()?

Sep 11, 2011

"When  using progressive download (FLV), NetStream's .play(url) method is  not  resolving relative URLs in the expected way. Instead of being based   off the HTML's embed location and reading the "base" param, it uses the   location of the SWF file trying to load it." I have found  it on the web while searching for a solution to exactly the same  problem. Unfortunately no one provided an answer. If it is a bug it is  in fp ever since and no one has done anything with it. Does anybody know  any solution/workaround? I assume it is not possible to read base param  value from inside of the swf in order to resolve paths manually?

View 6 Replies


Similar Posts:


Flash :: Use Base Param In It?

Aug 27, 2011

I have a flash file(full link to flash looks like [url]... which loads mp3-file(link to mp3 I send with php through flashvars)

I've embed dynamically(with swfobject) this swf to my page. It's ok. Then I send ajax-request to script, which reloading div with flash. Div is empty.

Experimentally I found out that I've trouble with relative paths. Flash file embed with this address ./swf/audio/player.swf and mp3-address is ./media/audio/user/1/random.mp3.

View 1 Replies

ActionScript 2.0 :: Pass Information To Swf Via Param / Embed Tag?

Jul 19, 2006

I have a flash movie that tries to load an XML file on startup. Right now it looks for a hard-coded filename, but I'd really, really love to be able to pass a filename in through the webpage that plays it. (possibly through a param tag or some such?)

View 3 Replies

Actionscript 3 :: Pass A Base Path To A Swf Loaded At Runtime?

Nov 11, 2010

I have a main.swf which loads a module.swf and the module.swf loads some assets.The module.swf works standalone and also needs to work when loaded by main.swf.But unfortunately the module.swf can't find the assets when loaded by main.swf because the assets aren't located relative to the main.swf, but are located relative to the module.swf.As I can't touch the module.swf and I'm also unwilling to change the directory structure, I am looking for a solution close to the a "base" parameter which can be used when a swf is embedded into html

View 3 Replies

Flash :: Passing In Parameters Using Param Tag And Flashvars Param?

Jan 21, 2011

I read almost everywhere that the wmode parameter had to be set to opaque (some said it could be either opaque or transparent). When setting this through the flashvars parameter (this is in Chrome btw) this did nothing. After a while of getting frustrated, I added it as a parameter itself through addParam, and hey presto now it works.Is this a simply a Chrome thing? FF it works seamlessly as it was. Even IE 7 and 8 are behaving slightly better. I wondered if this was a bug because supposedly adding a parameter to flashvars should do the trick.

View 1 Replies

Actionscript 3 :: Override Base Path Parameter Inside Flex Application?

Jan 19, 2010

When using as3 and embed my swf via swf object JS, one of the parameters that being transferred to the embed JS function is "base=http://www.mydomain.com" which needed in order to load external widget into application.

Now, am also loading external assets like Styles.swf that placed locally on client side, and when I'm trying to load these assets I get error that they don't found in [URL]

For example: StyleManager.loadStyleDeclarations("Styles.swf");

Error: can't load [URL]

Is it possible somehow to load Styles.swf as local assets??? I've tried use

StyleManager.loadStyleDeclarations("../Styles.swf");
StyleManager.loadStyleDeclarations("./Styles.swf");
StyleManager.loadStyleDeclarations("/Styles.swf");

View 1 Replies

ActionScript 3.0 :: Error: "NetStream.Play.StreamNotFound" While Playing Mp4 File Using NetStream Object?

Jan 7, 2010

I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:

var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);

[code]........

View 0 Replies

Which Flash Rendering Cases Are Faster When The Wmode Embed Param Is Set To "gpu"

Feb 28, 2011

In May 2008 (about three years ago, as of the time of this posting), an engineer who worked on Flash Player 10 wrote the following in a blog post talking about GPU compositing:Just because the Flash Player is using [GPU compositing] does not mean it will be faster. In the majority of cases your content will become slower... Content has to be specifically designed to work well with GPU functionality. The software rasterizer in the Flash Player can optimize a lot of cases the GPU cannot optimize, you as the designer will have to be aware of what a GPU does and adapt your content accordingly. I realize this statement is useless unless we can provide guidance, something we can hopefully achieve in the not to distant future.

Is anyone aware of any such guidance having been provided by Adobe in the succeeding three years? The only relevant information I could find was in this article, which provides optimization tips for hardware rendering, but not for hardware-accelerated compositing, which is what the "gpu" wmode embed param turns on.Short of testing each piece of content individually, how can I determine when my content would benefit from the use of GPU compositing and when the use of GPU compositing would be a detriment

View 1 Replies

ActionScript 3.0 :: NetStream Have A Different File Path?

Jan 31, 2011

I have a swf that is in a different directory then the index. so I make sure that the xml has the proper relative path to the location of the index. which works fine for all the images that I load in.. simple enough right?but for some reason the NetStream seems to want to use the base url location as the location of the swf instead of the index.. to apply the relative url too..I have never seen this behavior before and was wondering if this is how its supposed to be..I already double checked my xml to make sure it was not doubling up the folder name..but basically the xml is like so..

<video src="foldername/videos/file.flv" />
but when i view it online. the browser is looking for the file here..
domain.com/content/foldername/foldername/videos/file.flv

[code].....

View 4 Replies

Media Server :: Stream.play (live_from_FMLE, -1, 4500, True) Got No NetStream.Play.Start?

Nov 5, 2010

I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".

On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.

With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:

info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.

View 3 Replies

ActionScript 3.0 :: Play An Mp3 File Using NetStream.play?

Mar 23, 2010

I have a "movie player" that plays flv files using the code below (videoToPlay is the name of the file to play and is just a string). I want to use the same setup to play an mp3 file also.I tried using mySound = new Sound(); and then mySound.attachNetStream(ns);, but it gives me this error: 1061: Call to a possibly undefined method attachNetStream through a reference with static type flash.media:Sound.

View 5 Replies

ActionScript 3.0 :: Different Between NetStream.play And VideoPlayer.play?

Nov 4, 2010

1) What is the recommended/best practice method for loading videos (flv, f4v, mp4, etc.) from a play list. Some of the files might be on the local file system, some might be on a streaming server and uses rtmp.
 
2) Does the VideoPlayer.play internally use NetStream/NetConnection objects? I could get the files to play using both these methods - not sure if one is better than the other. I didn't see any references about streaming in the VideoPlayer.play method - but it does work with rtmp URLs!
 
3) For a long running standalone application, how do I make sure the VideoPlayer/NetStream objects are properly released/garbage collected? Right now I am closing the netstream/netconnection after playing every file - mainly because I do not know which server/file system the next video is being loaded from.

View 6 Replies

ActionScript 3.0 :: Function NetStream.pause() Process Incorect When Embed Swf In Webpage

Oct 26, 2008

I use NetStream to play media file. It includes pause, resume functions. When running in the flash player, there isn't any problem. However, when embedding this swf file in web page, there is following problem. - If clicking [pause] button and then (in short period) clicking [resume] button to continue playing, no problem. But, if clicking [resume] button after longer period (bigger than playing file's time), the swf file will start playing at the next media file in the list, NOT at the time that was paused.

I would like to send the source code link: [URL]

i can't test this article [URL] when I pause netstream. it clear buffer. when I resume it rebuffer

View 1 Replies

ActionScript 3.0 :: Set The Path Dynamically In Embed Source?

Oct 30, 2009

how to declare the path dynamically in Embed source

Code:
Ex:
[Embed(source ='../lib/Fonts/Arial.TTF', fontName = 'Sathiy Normal')]

but i need Like this

URL='../lib/Fonts/Arial.TTF'
[Embed(source =URL, fontName = 'Sathiy Normal')]

if i give like this Error is coming..How to set the path dynamically to Embed source

View 2 Replies

Flash :: Streaming - Generate A "NetStream.Play.StreamNotFound" Error While Play?

Mar 2, 2011

I used NetStream.play("invalid-live-stream-url") to play an invalid live stream. The other arguments are using default, e.g. start = -2, len = -1.

The menu says that when we use the default "start" and "len" to call "NetStream.play", "Plays the live stream until it is no longer available. If a live stream of the specified name is not found, Flash Player plays a recorded stream until it ends."

However, I do not have a recorded stream on the server that has the same name as the live stream, and I did not get the expected "NetStream.Play.StreamNotFound" error.

View 1 Replies

ActionScript 3.0 :: Using URLLoader In Conjunction With A Php Uploader

Jul 17, 2009

What would be the best method to pass the name of a file that will be uploaded as the same page as the flash file I know I could have them upload it then manually type the name in a text input to load the image on button press but I need it to show up inside the flash without user typing. I attempted URLRequest/URLLoader to load the php and now im trying ExternalInterface.

View 2 Replies

ActionScript 2.0 :: ColorRollOver Won't Work In Conjunction

Jun 5, 2007

The movement is working perfectly, but the colorRollOver won't work in conjunction with it.[code]

View 7 Replies

Inserting Pictures And Text In Conjunction With A Scrollbar?

Apr 28, 2009

I am somewhat of a beginner and have been attempting to create an entire website using Flash CS4 Everything is going quite well and the body of all of the pages are built The navigation buttons to each page are working perfectly. Now I am simply filling in the content for each individual page. Most of the pages were large enough to contain the content without requiring more room One of my pages will have a large area of text and several pictures.I became aware of the Components menu last evening and the selection of the scrollbar.I added the component to my page and sized it accordingly. It allows me to add text but not JPEG images. I was wanting to know how to utilize the scroll feature and still have text and images on the page

View 9 Replies

ActionScript 2.0 :: CS3 - Netstream - FLV Doesn't Load / Play

Aug 24, 2009

The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.

[Code].....

View 5 Replies

Flash :: Netstream Play In The Middle Of A Video?

Jan 19, 2010

I'm using the netstream and video object to play a video in flash. Specifically a mp4 video.

What I'm trying to do is start playing the file from a specific position (Ex. 20seconds).

However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s? Or any other way of accomplishing this?

View 5 Replies

ActionScript 3.0 :: NetStream Play Complete Still Not Working?

May 2, 2008

Hoped this would ave been fixed in as3 but this event does not always get triggered. Seems to be related to the encode. Anyways I would like to see others approach to this issue.

Currently I have place a condition in the NetStream.Play.Stop event to check if the ns.time is > the duration-1;

[as]
if (ns.time > duration-1){
playing = "complete";
}
[as]

I have noticed this does even work consistantly unless I change it to ns.time > duration-2.

View 1 Replies

ActionScript 3.0 :: Netstream.play.stream Not Found

Feb 7, 2009

I am trying to upload my demo reel. I compressed it to an FLV file, and used the import video command with the setting' "Load external video with playback component." After selecting my skin and hitting ok, I got a prompt that said "Netstream.play.stream not found." Why isn't this working?

View 2 Replies

ActionScript 2.0 :: F8 Play / Pause Clip Not Working With NetStream

Feb 6, 2009

I've got a play/pause movie on my timeline to control an FLV via NetStream. The idea is to switch from a play symbol to a pause symbol, but it's not working.[code]Clicking on the clip will start and stop the flv just fine, but the symbol switch doesn't happen. When I take out the ns code, just to check and see if the switch will actually work, there's no problem.What am I doing wrong? How can I get my clip to change from a play to a pause symbol?

View 1 Replies

Media Server :: NetStream.Play.StreamNotFound Not Dispatching?

Nov 3, 2009

I'm recording audio using FMIS, the file is being saved out as a FLV file and I am able to play it back. Eventually that file may be deleted after some time and I would like to notify the user if the file is no longer available. I was expecting to see NetStream.Play.StreamNotFound after deleting the file on the server but I'm not getting that message. Instead I get:
 
-->      NetStream.Play.Reset-->     NetStream.Play.StartAnd nothing plays which is expected since the file is deleted, but I dont get the right message. I'm calling the file like so:ns.play ("flv:file_to_stream");

View 7 Replies

Media Server :: How To Avoid NetStream.Play.Stop

Jun 15, 2010

I'm streaming mp3 on flash media server 3.5 on  linux version, and very often come accross with that problem, when the buffer.length become 0 on client side, the streaming will stop with NetStream.Play.Stop event, and will not be continued. I think this case it should wait always till the data arrives and never should stopping. Some more info : I tested on applications/live folder, and the mp3 files are created dynamically during the playing, and the creation speed is almost the same like the playing speed, so those are not fix files.

View 2 Replies

Media Server :: NetStream.Play.StreamNotFound Not Working?

Aug 3, 2011

I would like to have the possibility to detect when NetStream is not working (i.e. the name used in initialization can't be found on the server side). The StreamNotFound doesn't work at all. I've read that it's the fault of the Flash Media Server, which automaticaly creates new stream, if it cannot be found (of course it's an empty stream - what is wrong from my point of view). Is it true? If yes, can I disable it on the server side, so I could easily detect if the stream name is correct?

View 8 Replies

Media Server :: Netstream Play And Publish Simultaneoulsy?

Nov 15, 2011

i've created a sub-folder called dvr under fms 4.0 applications. i made a test of playing a video named sample.flv then at the same time i publish it to the same fms 4.0 server with a different video name: "mergedVideo".the asc at the fms server as following:

application.onAppStart = function()
{
trace("app start : " + application.name);

[code]...

View 1 Replies

ActionScript 3.0 :: NetStream.Play.Stop Firing Early In Chrome?

Feb 4, 2011

Is anyone having trouble with Chrome getting NetStream.Play.Stop early in Chrome? Seems to fire around the time the buffer has filled. Same code is and has been working fine in all other browsers for some time.

View 2 Replies

Media Server :: Got NetStream.play.stop Before It Reaches End Of Playback

May 23, 2011

i have application that streams videos from fms .i try to play video of 240 seconds, but when playback reaches 180 seconds i got NetStream. play. stop . it happens regularly at the same time.why does it happen? is it encoding of the video??

View 4 Replies

ActionScript 3.0 :: Pass Textbox Value As Variable For URL/Filename To NetStream.play(url)

Oct 1, 2009

I would like to pass a value from a text box on stage as the URL or filename to the NetStream.play() argument. example:

var url:String = url_text.text;
var conn:NetConnection = new NetConnection();
conn.connect(null);

[Code].....

The point of the matter is that I'm pulling the values from JavaScript/HTML using the ExternalInterface which changes as the user selects next on a HTML page. The page name (URL) is being parsed and passed back as the video filename. I'm using the text boxes currently just to test/view the values being received and sent to JavaScript. The value send and receive fine, I just can not seem to pass the value into the NetStream.play(JavaScriptValue).

function getTextFromJavaScript(str:String):void {
sending_ti.text = str;
var jsArgument:String = sending_ti.text;

[Code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved