Argh...this shouldn't be so hard!!!
I've finally been able to display a stream inside an SWF but only from FLV files on the FMS server. What on earth do I have to do to play other filetypes FMS supports?
This plays alright:
nc.connect("rtmp://myDefaultFMSserver.com/vod");
ns.play("sample");
This doesn't:
nc.connect("rtmp://myDefaultFMSserver.com/vod");
ns.play("mp4:AdobeBand_800K_H264");
Neither does this:
ns.play("mp4:AdobeBand_800K_H264.mp4");
Nor this:
ns.play("mp4:media/AdobeBand_800K_H264");
I'm using the FMS default installed testfiles....
PLEASE help!
Thanks
Hi,
nc.connect("rtmp://myDefaultFMSserver.com/vod");
ns.play("mp4:AdobeBand_800K_H264.mp4");
This should have played for you
Are you using flash player 9.0.115 or above to play MP4 content?
If you are on right player, check your server side log to see what the server has to say when you try to play the stream. Check InstallRoot\logs\access.log file for 'play' event and its corresponding x-status code.
Regards,
Janaki L
I'm just previewing ctrl+enter from Flash CS3 at the moment. I believe it previews in version 9.
I have updated FP to v. 10 in my browsers and when I publish my file and open it from the folder it will NOT play no matter what I try in any format.
It doesn't play the FLV if I doubleclick the SWF directly or if I open the html file Flash CS3 generates.
For the love of g....what's going on???
Thanks for any help.
Hi,
check your server side log to see what the server has to say when you try to connect and play the stream. Check InstallRoot\logs\access.log file for 'connect' or 'play' event and its corresponding x-status code. Let us check if the request from your swf has reached the server first. If you dont see any traces in the server log for your request then we have to edit your Global Security Settings i guess.
Regards,
Janaki L
Hi again!
Here's a fragment of that log (I've omitted the IP):
session connect 2010-04-16 13:33:53 5412 ###.### 3073 3073 - - - - 200 -
stream play 2010-04-16 13:33:53 5412 ###.### 3143 3451 AdobeBand_800K_H264 0 2793384 24,981000 200 -
stream stop 2010-04-16 13:34:16 5412 ###.### 3143 4635 AdobeBand_800K_H264 994 2793384 24,981000 200 -
session disconnect 2010-04-16 13:37:57 5412 ###.### 3143 4845 - - - - 200 -
These files play PERFECT using another player (JWplayer), but all I want is to display a videostream using actionscript and swf.
Thanks for taking the time Janaki L!
Hi,
For playing mp4 streams you just need to append mp4:<filename> and then play. So if suppose the file name in vod\media folder is AdobeBand_800K_H264 then use this :
nc.connect("rtmp://myDefaultFMSserver.com/vod");
ns.play("mp4:AdobeBand_800K_H264");
Otherwise if it is AdobeBand_800K_H264.mp4 then use
nc.connect("rtmp://myDefaultFMSserver.com/vod");
ns.play("mp4:AdobeBand_800K_H264.mp4");
From the logs which you have given everything seems right. Now just do as above and give me fresh logs if problem still persists.
Regards,
Amit
Thank you Amit!
To me this is a strange problem and I'm stuck.
At home everything worked fine (I actually celebrated that
), but at work the same code ONLY play .flv files?!? Targeting any other file, even the FMS installation (H264) test files won't display. Still I'm able to trace out the clips duration even though the clip doesn't show (PS still at Flash CS3)?!?
Do any of you have ANY clue what's wrong???
PS Sorry for something that looks like doubleposting here but it seems like two of my problems might have the same origin. I wasn't aware of this until I got help with these posts from the forum. The other post is here, and it also include the code I've used.
Thanks
Fresh log (from home CPU) worked OK:
#Fields: x-category x-event date time x-pid c-ip cs-bytes sc-bytes x-sname sc-stream-bytes x-file-size x-file-length x-status x-comment
session connect 2010-04-16 17:06:57 3908 --.--.---.-- 3073 3073 - - - - 200 -
stream play 2010-04-16 17:06:58 3908 --.--.---.-- 3143 3451 sample1_150kbps.f4v 0 2139705 112,384000 200 -
stream stop 2010-04-16 17:07:15 3908 --.--.---.-- 3178 477330 sample1_150kbps.f4v 471925 2139705 112,384000 408 -
session disconnect 2010-04-16 17:07:15 3908 --.--.---.-- 3178 477366 - - - - 200 -
Fresh log (Work CPU) worked only with flv (sample.flv):
#Fields: x-category x-event date time x-pid c-ip cs-bytes sc-bytes x-sname sc-stream-bytes x-file-size x-file-length x-status x-comment
session connect 2010-04-19 11:13:03 5008 ---.---.---.--- 3073 3073 - - - - 200 -
stream play 2010-04-19 11:13:03 5008 ---.---.---.--- 3143 3451 sample1_150kbps.f4v 0 2139705 112,384000 200 -
stream stop 2010-04-19 11:13:27 5008 ---.---.---.--- 3178 4485 sample1_150kbps.f4v 892 2139705 112,384000 408 -
session disconnect 2010-04-19 11:13:27 5008 ---.---.---.--- 3178 4485 - - - - 200 -
session connect 2010-04-19 11:13:34 5008 ---.---.---.--- 3073 3073 - - - - 200 -
stream play 2010-04-19 11:13:34 5008 ---.---.---.--- 3126 3451 sample 0 2063872 24,973000 200 -
stream stop 2010-04-19 11:13:38 5008 ---.---.---.--- 3161 551622 sample 546027 2063872 24,973000 408 -
session disconnect 2010-04-19 11:13:38 5008 ---.---.---.--- 3161 551622 - - - - 200 -
session connect 2010-04-19 11:13:57 5008 ---.---.---.--- 3073 3073 - - - - 200 -
stream play 2010-04-19 11:13:57 5008 ---.---.---.--- 3143 3451 sample1_150kbps.f4v 0 2139705 112,384000 200 -
stream stop 2010-04-19 11:14:02 5008 ---.---.---.--- 3178 4485 sample1_150kbps.f4v 892 2139705 112,384000 408 -
session disconnect 2010-04-19 11:14:02 5008 ---.---.---.--- 3178 4485 - - - - 200 -
Here's also the Output when I test the swf. I get #2095 and #1069 error in both cases (wether it works or not):
NetConnection.Connect.Success
Trying
AsyncError dummyevent fired: [AsyncErrorEvent type="asyncError" bubbles=false cancelable=false eventPhase=2 text="Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone." error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value.]
Clip duration: 112.384
OH!!! CS3!!! Could be older one.
You have to update your CS3 to get MP4 working in it. Open Flash CS3 > Click Help menu > Select Updates > update the CS3.
After updating you might have to restart your CS3. After restarting the machine, open Flash CS3 and publish your fla once again. Now Open the swf in Flash Player greater than 9.0.115. It should work for you.
Let me know if you are finding any issues.
Regards,
Janaki L
You got "#2095: flash.net.NetConnection was unable to invoke callback onBWDone." error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value.]" because, the application VOD to which you were trying to connect is
trying to call a method 'onBWDone' in the client side. Since that method is not
defined at your client side you get this error. It would not harm your stream play.
Regards,
Janaki L
Thanks...but!
This procedure actually help me, BUT, only within Flash CS3 application. I'm still unable to view the content in my browser or by double click in explorer. Updating FP is no walk in the park. Why I have to go to all this trouble just to make it work seems strange to me. I thought it was sufficient to just update FlashPlayer from Adobes website, and do what you suggested ?!?
I have updated, republished, re-updated FP, but still my standalone player is 9 something, but in the browser (FF) it's 10 something. Either way none of them will play the content. Only way to play is testing in Flash CS3 pro application.
Do you have any more suggestions???
Thanks again!
With the newly published content, where you able to view flv content atleast? If your answer is "NO, I am not able to play any content".
Just hit any video site like youtube.com and try playing a video. Check if the video is playing in your FP 10 browser.
Regards,
Janaki L
Hi!
Sorry for the late feedback. We're at different time cycles (I'm at WTC+1).
Now the standalone player says v10 but no content shows. It only shows up when preview i Flash CS3 (ctrl+enter).
All flashvideo content on the web (youtube, vimeo etc.) works great in all my browsers, BUT my display application still don't?!?! There has to be a bug somewhere.
I'm at a dead end and at a deadline. I might have to dump the whole idea of using FMIS for this project and use progressiv regular http download.
The only thing that seemed 'fishy' when I tried to download the zip was the file 'Install Flash Player 10 ActiveX'. This file refused to install because my just recent download of this wasn't the current one?!? This ended the setup:install?!?
Could this be the bug???
Thanks
Hi!
Problem is still there. FLV plays well on both standalone and browser. The version with mp4 files only plays in standalone FP from within Flash CS3 (ctrl+enter).
All other flash content videosites work fine in my browsers.
I'm running the latest FP according to 'help' and 'rightclick'.
Wierd?!
If you have updated your CS3, the player version that it will have is FP 9.0.115 (you can confirm thatby looking at the version of the file 'InstallDir\Adobe Flash CS3\Players\Release\FlashPlayer.exe'. Can you pass me the swf file which you have created? Wondering why it should not work in 10.0.42.2 FP
Regarding,
Janaki L
Hi again Janaki!
When I ctrl+enter in Flash CS3 it works and it previews in FP10. When I went into the Players folder it still had v9.0..something. I manually updated those files with the content from "flash_player_update3_flash10.zip" from Adobe.com. The result had no positive effect and problem is still there.
All mp4 and flv files play when tested from Flash CS3 but not when I open the swf from explorer or browser.
I'm unable to attach the swf here. Doyou want an Email with it?
Thanks
Hi Janaki!
I've sent you an email but I got no reply. Anyway I think I found the solution. First I think the Flash Player update to v 10 took me half way. Then I gave specific access to the files in Adobe Flash Player Settings Manager. VOILA! Finally my content played in all differrent FP instance on my computer, both MP4 and FLV.
http://www.macromedia.com/support/documentation/en/flashplayer/help/se ttings_manager04.html
Thanks for your help ![]()
North America
Europe, Middle East and Africa
Asia Pacific