Problem playing streaming FLV
Hi ppl,
I'm trying to play streaming FLV files using FLVPlayback
component.
Some of those FLV files have different resolution. When the
FLVPlayback property "maintainAspectRatio" is set to "true", it
runs correctly, but, sometimes, with some black bars or spaces on
the right because the component resized it and let the same aspect
ratio.
When I set that property to "false", the FLV video fits
exactly the size of the component area, but when I click to change
to next video, it fails, the component doesn't play the next video
=\
I searched and found that was a bug of the FLVplayback
component, so I updated it and didn't resolve..
Any suggestion?
Thanks...
I think you need to create a Video object, drag it to the
stage, set its dimensions, give it a name (try "theVideo") and then
in actionscript, prior to _ns.play(), run this:
theVideo.attachVideo(_ns);
Then call _ns.play(). See if that helps!
Similar Messages
-
Streaming .flv cue point problem
I’ve been working with Flash video with synced slide
presentations since February, which have been exclusively download
streaming, all based on the presentation available at the adobe web
site:
http://www.adobe.com/devnet/flash/articles/vidtemplate_corppreso.html
My issue has come up when using this template with streaming
flv’s, the buttons that I use to reference the cue points in
the video and slides on the timeline do not work reliably;
sometimes they will shuttle the video and slides to the correct
point, usually they move the slides on timeline to the appropriate
spot and the video jumps back to the beginning. Besides this
sizable problem, the presentation plays the way it is supposed to.
Is there a setting in the component inspector that I’m
missing? Should I re-encode the video with Navigation cue points?
Any help would be appreciated.
LIf you look at the source code for the first link you'll find this at line 71:
<p id="player1" style="margin: 0px; padding: 0px; text-align:center;"><embed type="application/x-shockwave-flash" src="http://www.thebellyfatsolution.com/flvplayer.swf" style="" id="player1" name="player1" quality="high" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" flashvars="height=390&width=504&file=http://www.thebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv&link=http://www.th ebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv" height="390" width="504"></p>
<p><noscript>
Apparently your video has been encapsulated in JWPlayer. You can find out more about JWPlayer here: http://www.longtailvideo.com/players
This seems to be yet another solution to a problem that doesn't exist, and whoever runs that website fell for the sales pitch. -
Problem playing remote live stream from FMS
Hello all,
I'm having problems playing remote live streams from FMS (server-side) that I can play with any other player (client-side)
Example of server-side application which plays a remote live stream:
nc = new NetConnection();
nc.connect("rtmp://remoteserver/live");
stream = Stream.get("localStream");
stream.play("remoteStream.flv", -1, -1, true, nc);
This code works only sometimes.
Most of the times, FMS is able to connect to remote string and the localStream dispatches events:
NetStream.Publish.Strart
NetStream.Play.Reset
In this case, FMS is publishing the local stream but it is not playing the remoteStrem on it.
The rest of the times, localStream dispatches events:
NetStream.Publish.Strart
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Data.Start
In this case FMS plays the remoteStream correctly.
Any hint to solve this issue?
Regards.Thanks, I tried your code and it works when playing a remote live stream on another FMS.
But the remote live stream is not on a FMS but on a Wowza Server which re-streams an RTSP stream over RTMP.
With this code:
var nc;
var myStream;
application.onAppStart = function(){
nc = new NetConnection();
myStream = Stream.get("localstream");
myStream.onStatus= function(info){
trace(info.code);
nc.onStatus = function(info){
trace (info.code);
if(info.code == "NetConnection.Connect.Success" ){
myStream.play("remoteLive.sdp", -1, -1, true, nc);
nc.connect("rtmp://remoteServer/live");
Every live stream player I tried was able to play the remote stream "remoteLive.sdp", but FMS play it only sometimes. This is the output log of the FMS application:
NetConnection.Connect.Success
NetStream.Publish.Start
NetStream.Play.Reset <--------------------------------- Stuck there, stream won't play
Unloaded application instance wowza4/_definst_ <--- Reload app
NetConnection.Connect.Success
NetStream.Publish.Start
NetStream.Play.Reset <--------------------------------- Stuck there, stream won't play
Unloaded application instance wowza4/_definst_ <--- Reload app
NetConnection.Connect.Success
NetStream.Publish.Start
NetStream.Play.Reset
NetStream.Play.Start <--------------------------------- Stream is playing just fine
NetStream.Data.Start
Unloaded application instance wowza4/_definst_ <--- Reload app
NetConnection.Connect.Success
NetStream.Publish.Start
NetStream.Play.Reset <--------------------------------- Stuck there, stream won't play
Any idea? Why FMS won't play it everytime?
Regards -
When i stream .flv i have no image, only white background but
when i try in progressive work without problem!!
Anyone have a idea?
thxI think you need to create a Video object, drag it to the
stage, set its dimensions, give it a name (try "theVideo") and then
in actionscript, prior to _ns.play(), run this:
theVideo.attachVideo(_ns);
Then call _ns.play(). See if that helps! -
I have problem with playing stream fullscreen. it goes black but with sound
i have problem with playing stream fullscreen. it goes black but with sound. i have to wait 10-15 minutes then i can press fullscreen. what to do?
sThanks!! but i been fixing now for 10 minute ago by restart my macbook pro. My case is it show normal with Intenal-speakers and nothing mark with red light or mult so i tried to restart that it working again
-
Problems playing FLVs through a Director shell
Hi All.
I wasn't sure whether this post belonged here or in 'basics',
so please
excuse me if I got it wrong!
We have built a Flash application, published for FP8 that is
wrapped in a
Director MX2004 (10.1.1) shell using the latest Flash Asset
Xtra.
Part of the functionality is that it dynamically loads and
plays back FLVs
using the NetStream Class. This all works very well until we
try to run the
app from CD. Then it works on some PCs and fails on others.
From what we can
see it is only failing on Windows XP machines with IE7
installed. Does
anyone have any further insight or information on this
please?
Many thanks,
Pete
Remove '_spamkiller_' to mailLast night I tried:
Run the app on my home PC which had IE6 installed under XP
Pro (worked
fine),
<gulp> installing IE7</gulp> - sadly, still
worked fine. This may be because
I have Director MX2004 installed too though.
Today we plan to re-run the test with a machine without
Director on it...
Anybody...?
Pete
Remove '_spamkiller_' to mail -
im working on this template and have been fine so far untill
now when trying to add more than 1 streaming FLV in the WORKS
section, the first video works fine on the first viewing of that
page but if you click on the first thumbnail again the video just
gets stuck on the buffering loop, also if you try to click on
another thumbnail (the first 4 are video) they just dont seem to be
working just get stuck on the buffering stage again im sure there
somthing little or somthing in my face thats wrong but i just can
see it.
to view the site and see what i mean click on the link below
and goto the WORKS section
[url=http://www.nwmsltd.com/flash]http://www.nwmsltd.com/flash[/url]
this is the thumbnail button code
on (rollOver) {
gotoAndPlay("s1");
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
on (release) {
if (_root.k<>1) {
_root.g1 = _root.g;
//this tell Flash which frame to goto in the gall movie clip
_root.g = 1;
_root.text="01";
_parent._parent._parent.gall.gotoAndPlay("s1");
this is my streaming video code which is in the gall movie
clip which is holding bid _p movie clip where all the code is on
the first 4 frames the following code is on each frame just the
video url is differentMore or less a duplicate of http://forum.java.sun.com/thread.jspa?messageID=4053075
-
Hi folks. Very new to the Flash Media Server. Have 2.0.3
installed on a W2k3 box. Pretty much spent all day looking for
documentation to help me stream .flvs. I though the docs for CF
were bad. :(
I have no problem with the concept of getting a action script
to call the server. However, everytime I try calling the server it
tells me that the application isn't setup. So I go searching
through the PDF that came with the install of the server, and it
doesn't really talk about creating applications other than to click
the button in the administrator to add a new instance. When I do
that, nothing happens.
Can anyone point me to the next step to do after the server
is installed and is up and running?
Also, I don't want this server to be an edge server. However,
it seems to think it is one (maybe this is normal?). All the
activity is going on in my edge.00.log files.
Some of this is vague, I know, but I'm at a loss as to where
to go next (short of calling support) to get this server up and
running.I am sorry to hear you don't like our documentation. I may be
a bit biased
but I actually think the documentation is pretty
good. Please do me a favor and give it a second chance.
I suggest to start with flashmediaserver_developing.pdf (in
your documentation subdirectory of the FMS root) - it gets
interesting on page 14 et sqq.
In short, this is what you have to do:
- create a subdirectory in [FMS_ROOT]\applications
the name of the directory is the name of your application.
Let's call it "foo":
[FMS_ROOT]\applications\foo
- this is where your server side scripts go to
- if you want to stream FLVs and MP3s, you need a directory
called "streams":
[FMS_ROOT]\applications\foo\streams
- Now the media content needs to sit in an application
instance. You may put this into the default instance:
[FMS_ROOT]\applications\foo\streams\_definst_ (please create
it - it won't be created automatically)
or create another instance:
[FMS_ROOT]\applications\foo\streams\bar
- When you code your client, you need to make a netconnection
to:
rtmp://yourfmshost/yourapplication/yourinstance
please note that the streams directory does not show up here
In our case it's:
rtmp://yourfmshost/foo/bar
or for the default instance
rtmp://yourfmshost/foo/_definst_
but because it's the default instance you may omit it as
well:
rtmp://yourfmshost/foo
- When the NetConnection is established you need to create a
stream on this connection and play your video.
Please also have a look at the Devcenter for FMS - there are
many samples and easy to use step-by-step tutorials there that will
be of help for you.
http://www.adobe.com/devnet/flashmediaserver
Regarding your concerns about the edge process:
Every FMS Server always runs 3 processes: master, core and
edge. In short, the edge is the process which talks to the client,
the core runs the actual application and the master looks after
them - more details are in the docs
so it's nothing to worry about.
The edge
server is something else, i.e. a FMS install that can act as
a proxy to an origin server. This is part of the enterprise version
of FMS (also referred to as "Origin / Edge").
Have fun using Flash Media Server! -
i phone will not play streaming music through usb after ios 5.0 update. updated to 5.1.1 did not not correct problem.
i phone will not play streaming music through usb after ios 5.0 update. updated to 5.1.1 did not not correct problem.
-
How to play a FLV file located in a second FMS?
How to play a FLV file located in a second FMS not directly accessible by the flash client?
- I am publishing an audio stream from the flash client to a FMS;
- This FMS then publishes the stream to a second FMS, which records the stream to a FLV;
How can I play in the client the FLV audio file that I recorded in the second FMS?
- The first FMS is accessible by the flash client, but the second FMS is only accessible by the first FMS.
thanks in advance
fabioAnswer in http://www.flashcomguru.com/forum/forum_posts.asp?TID=4276&PN=1&TPN=1
-
Why onMetaData handler doesn't be called when playing some .flv?
Hello, Everyone,
I am encountering a problem:
I am using NetStream to play some .flv files on local disc. My code skeleton is:
public class AdvertisPanel extends MovieClip
private var _video:Video;
private var _connection:NetConnection;
private var _stream:NetStream;
private var _clientObject:Object;
public function AdvertisPanel($playlist:Array, $delay:int)
....(code omitted)
public function build():void
this._video = new Video();
this._connection = new NetConnection();
this._connection.connect(null);
this._stream = new NetStream(this._connection);
this._video.attachNetStream(this._stream);
this._clientObject = new Object();
this._clientObject.onMetaData = this.metaDataListener;
this._clientObject.onXMPData = this.XMPDataListener;
this._stream.client = this._clientObject;
this._stream.addEventListener(NetStatusEvent.NET_STATUS, this.netStreamStatusHandler);
this._stream.addEventListener(IOErrorEvent.IO_ERROR, this.netStreamIOErrorsHandler);
this._stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this.netStreamAsynErrorsHandler);
this.addChild(this._video);
this._stream.play(this._medias[this._currentPlayingIndex].mediafile); // this is the url of the video
private function metaDataListener($metaData:Object):void
....(code omitted)
trace(metaData.duration, $metaData.width, $metaData.height);
private function XMPDataListener($xmpData:Object):void
....(code omitted)
trace($xmpData);
....(code omitted)
I used some .flv files that I download from YouTube to test; and I found that the handler metaDataListener would not be called when playing some .flv files, but some would. Is the problem caused by the video file? Because I may resize the video before play it on the screen, and I really need to know its original width & height.
Would some ont help with that? Thanks a lot in advance.Thanks, Donny.
But I failed to open the .flv file with Adobe Media Encoder, it said that the format was not suported.
And the .flv is downloaded from YouTube. -
E)2581279 Assert failed in /modules/streams/flv/TCFLVData.cpp line 1202
In an application where I do a recording from webcam to fms,
sometimes I obtain this error in core.XX.log:
(e)2581279 Assert failed in
/modules/streams/flv/TCFLVData.cpp line 1202 -
when it happens the effect client side is that I try to play
a stream just recorded, and I see a stream of 0 seconds, with the
command: stream.play(nomefile, 0, -1, true);
often when I obtain this error the durantion of the stream
from the media server is very different form the real one recorded.
How could I resolve this situation or work around it?
thanks for your time and all of your suggestions and helps
filippothanks patrick for your interest.
we're using the 2.0.3.
this error code was never traced in the log file of the 2.0.2 -
Need help - chronic freezeups when playing streaming flashplayer videos.:
I am having a chronic problem with repeated freezeups of flashplayer videos that are being streamed online where the video repeatedly and randomly locks up for a moment, and then jumps forward to catch up to where it's supposed to be again and again, with no regularity or pattern to it at all. It doesn't matter which video it is; it doesn't matter where along a video's playback it is; it doesn't matter which website it is. This problem happens at any time of day, and every single day, at random, regardless. I've tried everything including reinstalling my Windows 8.1 64-bit operating system from scratch, and then trying streaming flashplayer videos before reinstalling any other software again first - no help. I tried streaming in Safe Mode; disabling all browser addons; disabling all startup executables; disabling my internet protection software entirely, each in turn - no help. I always keep Flashplayer, Shockwave player, and Adobe Reader up to date, along with the rest of my PC via Microsoft Windows Update, and any other updates that apply, but I even tried older versions of drivers as well as the very newest ones - no help. I tried streaming using different video cards - no help. I tried using an ethernet connection and then a wireless one, separately in turn, as well as connecting to a different network - no help. I also have Mozilla's Firefox browser installed and fully up to date - the exact same random, constant freezeup problem streaming flashplayer videos happens when using it as when using Internet Explorer. These freezeups act like the incoming internet stream's feed runs ahead of flashplayer's memory management (rendering?) of it, causing these momentary freezeups while flashplayer buffers, and then jumps forward to catch up again each time. Please contact me back and provide a corrected update(s) of flashplayer to download so as to play streaming flashplayer videos without this ongoing conflict. Please note that video files that are downloaded/installed on my hard drive do NOT have playback problems of any kind. This is only an online streaming problem with flashplayer. Thank you.
I am having a chronic problem with repeated freezeups of flashplayer videos that are being streamed online where the video repeatedly and randomly locks up for a moment, and then jumps forward to catch up to where it's supposed to be again and again, with no regularity or pattern to it at all. It doesn't matter which video it is; it doesn't matter where along a video's playback it is; it doesn't matter which website it is. This problem happens at any time of day, and every single day, at random, regardless. I've tried everything including reinstalling my Windows 8.1 64-bit operating system from scratch, and then trying streaming flashplayer videos before reinstalling any other software again first - no help. I tried streaming in Safe Mode; disabling all browser addons; disabling all startup executables; disabling my internet protection software entirely, each in turn - no help. I always keep Flashplayer, Shockwave player, and Adobe Reader up to date, along with the rest of my PC via Microsoft Windows Update, and any other updates that apply, but I even tried older versions of drivers as well as the very newest ones - no help. I tried streaming using different video cards - no help. I tried using an ethernet connection and then a wireless one, separately in turn, as well as connecting to a different network - no help. I also have Mozilla's Firefox browser installed and fully up to date - the exact same random, constant freezeup problem streaming flashplayer videos happens when using it as when using Internet Explorer. These freezeups act like the incoming internet stream's feed runs ahead of flashplayer's memory management (rendering?) of it, causing these momentary freezeups while flashplayer buffers, and then jumps forward to catch up again each time. Please contact me back and provide a corrected update(s) of flashplayer to download so as to play streaming flashplayer videos without this ongoing conflict. Please note that video files that are downloaded/installed on my hard drive do NOT have playback problems of any kind. This is only an online streaming problem with flashplayer. Thank you.
-
How to play a FLV from a ByteArray to a Video object
Hi,
I wrote an application that loads a FLV into a ByteArray object at runtime. Now I want to play this FLV into a Video object. The problem I have is that the Video object won't accept anything else than a NetStream (or a Camera) as its source, and I can't find a way to set an in-memory FLV as a NetStream's source for playing. Adobe's Doc offers no help on the matter: does someone know how to proceed?
Thanks,
SimonHi,
As such there is no known method to do this. There is an open feature request in the Adobe bug tracking system for this
http://bugs.adobe.com/jira/browse/FP-5
With RTFMP (Real Time Flash Messaging Protocol) you can send data between flash applications via NetStream in a P2P mode. You could send your FLV binary data to another Flash Appilcation which actually decodes and renders it. Flip side would be that
- you will require FMS on the sever side that sets up the P2P connection
- RTFMP advices against sending large amounts of data via this approach as it is typically used in communication applications like chat, games etc
cheers
Sunil M -
Automatically play next flv movie... 5 times
I know how to get a video on the stage and get it to play an
flv, then switch at the end...
vid.contentPath = "MovieName_1.flv";
var vidList : Object = new Object();
vidList.complete = function() {
vid.contentPath = "MovieName_2.flv";
vid.addEventListener ("complete",vidList);
The problem is that I want to go from MovieName_2.flv to
MovieName_3.flv once MovieName_2.flv is done playing...and so on
about 5 times total.
I tried a few workarounds but I am stuck.
Please help.THAT WORKED!!!!
Thank you Thank you Thank you Thank you Thank you Thank you
Thank you Thank you Thank you Thank you Thank you Thank you Thank
you Thank you Thank you Thank you Thank you Thank you Thank you
Thank you Thank you Thank you Thank you Thank you Thank you Thank
you Thank you Thank you Thank you Thank you Thank you Thank you
Thank you
<-For You with many thanks!
Maybe you are looking for
-
Corrupt Pptx files. Need to repair them. Please help!
Hey guys, there is big mess over here. Here I quote: I made some presentation files for promoting our new business. I showed them to my boss. She was quite happy with my work and asked me to send them to our clients. Next day I sent them to all our
-
With my CC subscription should I be be gettibng upgraded from lightroom 5 to CC ?
with my CC subscription should I be be gettibng upgraded from lightroom 5 to CC ?
-
Hi All, Am Creating a Tops 5 sales customers query based on conditions .But when am pulling to xcelsuics based on Universe , QAAWS is not working , I know webi and crystal one to solve this problem , But rather than that is there any solution for t
-
Im currently running Yosemite Beta 10.10, how do i upgrade to a non beta release of yosemite? downloading yosemite in the app store doesn't work, i get a box that say my purchase couldn't be completed at this time. what can i do?
-
Users not given option to "Use my Microsoft Windows user ID"
Hi guys. Anyone seen this before? When our users connect to BPC, either through IE or straight from Excel, they get the following: The first time they connect in any session (after a reboot, logon, etc.) they are offered both options to sign in... "U