Javascript :: FlowPlayer OnError - Updating Clip URL
Jul 22, 2010
I am looking to change the URL of a clip when the stream is not found. I am properly configuring the onError event, as I can debug the specific line or add an alert, but what I am having trouble with is the following:
onError : function(errorCode, errorMessage) {
this.getClip(0).update( { url : 'http://full-url.com/images/stream-not-found.png' } );
}
The problem is this image is never being loaded to the player upon the error -- I get a stream not found error message and then the player continues to look for this 'unfound' stream. I'm able to hit the URL and see the image, but am unable to change over upon stream not found. Per the documentation it is supposed to be able to take an image as the URL, but using a fully qualified or relative URL doesn't seem to be working. This is somewhat simplified as we are looking to use customized images for each error code.
View 1 Replies
Similar Posts:
May 23, 2011
I am trying to get fullduration my mp3 file but it returns me NaN,[code]
View 2 Replies
Nov 24, 2011
I am using the VideoJS HTML5 video player (http://videojs.com) on a WordPress site I'm developing. The player launches in a modal window, and it works great for the most part, but the Flowplayer flash fallback for IE isn't behaving as I want.
When the user closes the modal box, playback should stop/pause. This works fine in HTML5, but not with Flowplayer. I've had a look at Flowplayer documentation but can't seem to get their suggested code to work. I've tried several variations, with no luck and cannot find a working example on the net.
It may be worth noting that VideoJS is called from WordPress, using VideoJS WP plugin.
The snippet below shows what I think it should work, where $f is the flow player selector, but I've tried other ways.
jQuery(function( $ ){
$(document).ready(function(){
$('.bClose').click(function(){
[Code].....
View 1 Replies
Mar 22, 2012
I am experiencing a very weird issue with both jquery2flash players,this is how i am callin flowplayer:[code]this is how i am calling jwplayer:[code]The problem is that in both even if you click on the play button, the video will start but the play icon won't hide Also, in flowplayer the player will add an extra instance of the video (or at least the sound) each time you click the play button.I am really not sure why this won't work as expected, what am i missing here?Also, the volume controls won't work.URL....
View 2 Replies
Sep 13, 2010
Given the following xml:
<form>
<personalDetails>
<name>John</name>
[Code]....
View 1 Replies
Dec 23, 2004
i'm making somekind of music / video player in flashmx2004. it plays streaming mp3 en flv files. random people can put a link into the players database. of course there will be some that insert a dead link, now i want to check with actionscript (1.0) if the link is dead and if so, the player automaticly will skip this track.this is what i've got allready to load te streaming sound:
_root.playSound = new Sound();
_root.playSound.loadSound(trackurl,true)
trackurl is the link to the file. link to the player atm: [url]
View 1 Replies
Jan 1, 2009
My first attempt involved using LoadVars and "load", and only calling loadMovie if the file successfully loaded (found the technique somewhere out here). However, I found that the ProcessRequest function in the HttpHandler was getting called twice when the file does exist. Makes sense - once for load, once for loadMovie.Now I'm using MovieClipLoader instead (also found this technique out here). This way does call ProcessRequest only once whether or not the file is found. But my problem is that the onLoadError function is only working when I give it a bad URL. If I give it a good URL that passes a bad filename to the handler, the handler throws an error, but my onLoadError function doesn't seem to recognize that there's a problem - I just get a blank area where the error message should be showing up.Here's the relevant AS2 code:
function CheckFileExists(inFile) {
var mclListener:Object = new Object();
mclListener.onLoadError = function(target_mc:MovieClip, err:String){
[code].....
View 1 Replies
Aug 20, 2011
before i begin, i should mention my actionscript skills are about a 5/10. that being said, if you point me in the right direction, i should be able to figure it out.
is there a way of capturing actionscript errors in a window.onerror like fashion?
i already have an amf based logging system setup, both the sending and recieving end are working 100%. so getting the message to the server is taken care of. just need to know if its possible to capture the errors.
i would like to capture any and all actionscript errors, and log them so i can debug them if need be.
View 1 Replies
Feb 9, 2012
I would like to know if there is a way to update the position of the thumb on the Slider component when a movie clip plays. Currently I have a movie clip symbol on my stage with the instance name ShapeMC. It has about 10 frames or animation and two actions. the first frame has a stop action as does the last frame. The actions are on their own layer, separate from the actual animation. I also have the slider component in my library, but it is only there so I can reference it through AS3. My AS3 instantiates a variable of type Slider. I then define the properties, like the width, hieght, thumb size, minimum, maximum, as well as enabling livedragging. I did this so the user can drag the slider and move through the Movie Clip symbol. I added a button that allows the user to click it and autoplay the Movie Clip symbol (ShapeMC). All that works. What I would like to do is when I hit the play button, I would like to see the thumb on the slider move along the slider as the Movie Clip symbol (ShapeMC) plays. So if the Movie Clip symbol reaches frame 5, the slider thumb show be seen as being half way through the tread. I tried putting the currentFrame into the .value property of the slider, but that didn't do anything. No errors, but it didn't move the thumb at all.
View 3 Replies
Dec 23, 2004
i'm making somekind of music / video player in flashmx2004. it plays streaming mp3 en flv files. random people can put a link into the players database. ofcourse there will be some that insert a dead link, now i want to check with actionscript (1.0) if the link is dead and if so, the player automaticly will skip this track. this is what i've got allready to load te streaming sound:
[Code]...
View 1 Replies
Nov 4, 2009
I have a Flex application and I would like to add the FlowPlayer to it. I have downloaded the flowplayer.swc file, but I am not sure what to add to my MXML to include the flowplayer.
View 1 Replies
Nov 16, 2009
Is it possible to use Flowplayer (flowplayer.org) and the seek() function with an FLV file?
View 3 Replies
May 10, 2011
For a site I'm using Flowplayer and the Overlay tool from jQuery Tools, to show video. Within windows everything is fine in the main three browsers: IE7/8/9, Firefox and Chrome. Within OS X (Snow leopard), the problems begin: A click in the video, anywhere, causes a reload. This is the case for the three browsers Safari, Firefox and Chrome (Not in Chrome 12.0.742.53 beta ???) Giving the embeded player the property wmode = 'opaque' or wmode = 'transparent' results in the same situation on the windows platform, but only Firefox en Chrome browsers. Not in IE. So wmode is really bugging me... documentation on wmode ? I can't find anything suitable
[Code]...
View 2 Replies
Mar 23, 2010
I have a simple Flowplayer playlist. First one plays a short clip, which then cuts off, and an image is displayed. Is there a way to make the image clickable? [code]...
View 1 Replies
Mar 10, 2011
I've noticed in testing a problem whereby Flowplayer will not play any content without a internet connection. All the files which make up my project are stored locally, and I've gone through and checked all the paths to make sure nothing points outwards towards the internet.
Curiously if I pull the internet connection out before the web page loads, the video file fails to load, however installing a loopback adapter gets around this. How can I alleviate this problem?
For proofs sake I've loaded the page in chrome looked at the network activity;
View 1 Replies
Apr 8, 2011
How to play mp4 videos in e.g. flowplayer in real-time (streaming) - without downloading it fully first?
View 2 Replies
Oct 26, 2009
I'm quite a newb in flash. I am trying to use the free edition of flowplayer as a library on my FLA project. If anybody did or tried this, please tell me how can I use the flowplayer to play embedded FLVs.
I've tried creating instances of the FlowPlayer(), Launcher() and Preloader() objects. On each one i've recieved errors of incorrect casting.
View 1 Replies
Jan 17, 2010
The flow player will play the audio of a *.flv, but doesn't play the video and I've no idea why. The initial example page using the default flowplayer flv url works fine. When I change the url to my godaddy site, it doesn't work. I'm using Movavi Video Suite 8 to perform the conversion to flash from mp4. I think the metadata is included in the flash file when it converts, but I'm not certain. I used the meta data injector found here: [URL] to inject meta data into the flash files and it still did not work.
Also of note is that the player's progress bar shows the start, current, & end time values of the video, so I think the metadata is there. I've still no clue why this isn't working, though.
I wonder if it's my *.flv file as the player will load the mp4 file it was generated from. I used a premium application called MOVAVI Video Suite to perform the conversion. I don't think this is the case because I can upload the converted *.flv file to youtube and it plays fine.
Also worth noting is that the Flow Player plays audio and not video both when the flv source is pointed to my godaddy site as well as when its pointed to a local folder on my hard drive that contains the player, it's files, the video files, and the example .html page being used to test this.
Possibly something else worth mentioning is that I have not put the flow player files on my godaddy site yet because the video picture isn't showing locally.I have the same issue with the LongTailVideo player.
Here is the html for my test page:
<!--
include flowplayer JavaScript file that does
Flash embedding and provides the Flowplayer API.
-->
<script type="text/javascript" src="flowplayer-3.1.4.min.js"></script>
[code].....
View 2 Replies
May 8, 2010
I'm trying to write a simple plugin for the flash player flowplayer (documentation for writing a plugin for flowplayer can be found here). I'm new to flash and I think I'm having a problem connecting the .fla file to the .as file when compiling into a .swf. As it is, when I include the plugin, the player doesn't show up.
I've set the .fla's document class to the .as file and added the .as file to the .fla's publishing classpath.
The .as file can be found here and the .fla file can be found here
View 1 Replies
Aug 30, 2011
I have a website setup in IIS 7.5 with a virtual directory pointing to a local folder outside of the www root of my website e.g:
the website is c:website
the virtual directory is in c:images
I use flowplayer to play my movies, when I put the movie path in my website root directory structure, say c:websitemoviesa.flv it works fine in the player, but if I put them inside the virtual directory and point the player to play it from there using a relative URL, it doesn't work
I suspect that this has to do with either permissions or flash configurations to allow it to access directories outside of the scope of the website, but I have no idea where to edit such settings
View 1 Replies
Jun 20, 2010
I'm doing a project like youtube. After some try, I can run FMS, dynamic playlist and flowplayer (I think this is what I need, am I right?) However, when I try to combine them, I discover a lot of problems. I follow this [URL] beginner_dynstre am_fms.html to learn about FMS, this [URL] to learn about dynamic playlist, this [URL] to learn about flowplayer. In the tutorial, the dynamic playlist cant run with FMS (even the tutorial says can, but when I try it, it cant!), and it is using Flash and as(AS3), the flowplayer is using html and js, I really cont know how to combine these 3 things together.
View 2 Replies
Dec 27, 2010
I'm developing a Flash-only application and I want to integrate the flowplayer directly into it, but not on the webpage using some swfobject-like approach.So, at some moment (for example, when arbitrary event fires), I would like to add the flowplayer object to the scene so that it starts streaming the specified video.[URL]
View 1 Replies
Nov 8, 2010
I want to show related video's in flowplayer at the end of the video.
View 1 Replies
May 2, 2011
The following doesn't work (although it gives no explicit error), but why not?nd... Is there really no way around it, strictly using the with statement? Forget using for / foreach.
with (object1, object2) {
attribute = value;
method();
}
Why the code above gives no syntax error, doesn't work but is accepted by with?If it's possible, how could we change multiple objects with same attribute using with?
var object1 = { attribute: 3 };
var object2 = { attribute: 2, method: function() { alert('blah'); } };
var object3 = { method: function() {alert('bleh'); } };
[code]....
View 2 Replies
Jan 29, 2012
I need to execute some javascript string code from flash swf file using actionscript 3.
I read that it could be done by passing the javascript code to the parent html document , using externalinterface.call function. Then I assume it will be faster if I can declare functions in the javascript code in the HTML document in the first use of externalinterface.call funtion ; if flash code calls the javascript code repeatedly. So let me ask you how to do that. For details , any javascript to be loaded is unknown in design time and I can not prepare a javascript file to be loaded.
View 2 Replies
Aug 1, 2009
for some reason, whenever I dynamically load a swf on a $(document).ready() by writing to a div, I am unable to make javascript calls to the browser. Specifically, all calls to the browser return "null". This does not occur when embedding the swf normally on the page load, but I would like to prevent loading of the swf until a specified point in time.
What the heck is going on here? Is there something special about dynamically embedding a swf that prevents the swf from talking to the browser? The methods ARE called (I've proven such by showing alerts), but all return values to any function, regardless of type returned, shows as null when it gets to flash.
View 3 Replies
Sep 29, 2010
Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of them meets my needs. I want an easy to implement solution (like Uploadify) which also lets me specify various parts of the HTTP request.
The reason I need this is because my upload form uses session cookies (for user authentication) and an CSRF token both passed to the server when uploading files.Is it technically possible to pass filenames (+ paths) to a JavaScript application which then handles the upload?
View 1 Replies
May 20, 2011
Here's the challenge: I have a Flash movie which will be embedded in a page using an unknown DOM ID that I want to be able to identify/store for callback in a JS function. My ideal user flow would be: User clicks button in Flash. Flash pauses any animations / video / sounds / etc. Flash calls an injected JS function to display a page-covering overlay experience. When user closes overlay experience, a callback method on the Flash object is called. Flash resumes playback.
The problem is, when AS3 uses the ExternalInterface.call("functionName", args...) method, there doesn't seem to be a DOM event triggered, and thus it is impossible to tell which object called a JS function, so having a "registerMe()" function doesn't seem to work. Basically, the injected JS function has no way to determine which DOM object to call, because the ID of the Flash object is unknown.
[Code]...
View 3 Replies
Aug 26, 2011
i have a flash movie with 2 frames. and i would like to call an external javasscript function on frame action.
[Code]...
View 2 Replies
Apr 16, 2009
I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){
[Code]...
which is in an .as file which I assume somehow becomes the swf file. How would I go about this and 're-compile' the .as file?
View 3 Replies