Streaming in Flex
Hello Everybody
I am working on a project in which I have to get data from
database and to show in a datagrid. For the first time I got the
data and was showing in the datagrid. I want to update the datagrid
when there was any update in the database. How should I deal with
this problem?
Any suggestions will be appreciated.
Thanks
"RUSH-ME" <[email protected]> wrote in
message
news:goninu$5da$[email protected]..
> Hello Everybody
>
> I am working on a project in which I have to get data
from database and
> to
> show in a datagrid. For the first time I got the data
and was showing in
> the
> datagrid. I want to update the datagrid when there was
any update in the
> database. How should I deal with this problem?
Use something like BlazeDS.
Similar Messages
-
How to play HLS stream in flex
i aim to create a flex mobile application for iOS platform,which will play videos of streaming form.
as i kown,only Http Live Streaming(HLS) is supported on iOS, then how to realize the playball of video of HLS form?
if i have a valid m3u8 playlist url,how to play it in my flex mobile application?can anybody help or give me some advices?
i will be thankful!GRag and Mesh are correct. You cannot use Flex to access a file on a user's hard drive, which is where your path is pointing.
Instead, create a folder within your Flex project, under the "src" folder (example: src/assets/videos), and put the SWF there. Change the path in your code to point to the new location, like "assets/videos/myVideoFile.swf". Note that you don't refer to the src folder; it is the "root" of your application, and when you deploy all your files to your web server, you will be copying the folders you created to the root folder of your web server. So, all the paths will remain consistent. Flex will attempt to find "assets/videos/myVideoFile.swf", starting from the "root", or location, of the application itself. -
How to play live Video Stream with Flex?
I'm trying to get Flex Builder 3 to play a live video stream with Flash Media
Server and Flash Live Media Encoder.
I'm able to stream pre-recrorded (vod) flvs in flex from flash media server.
I'm able to stream live video using Flash/FMS/Flas Live Media Encoder, but not
with Flex.
This code streams pre-recorded Video on Demand flvs, but not live streams:
If I change source to "rtmp://localhost/live/livesream.flv, I get nothing.
What am I doing wrong?
<?xml version="1.0"?>
<!-- controls\videodisplay\VideoDisplayFMS.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox>
<mx:Label text="RTMP FMS 2.0"/>
<mx:VideoDisplay
autoBandWidthDetection="false"
source="rtmp://localhost/vod/Legend.flv"/>
</mx:HBox>
</mx:Application>
Oh and sorry for the double post. I didn't know there was a seperate FMS forum.That worked! Thanks *very* much. Stupid of me to forget to set the live attribute to true. Also removed the .flv. BTW: what video component do you prefer?
Here's the working code:
<?xml version="1.0"?>
<!-- controls\videodisplay\VideoDisplayFMS.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox>
<mx:VideoDisplay
live="true"
autoBandWidthDetection="false"
source="rtmp://localhost/live/livestream"/>
</mx:HBox>
</mx:Application> -
FMS (Live stream ) with FLEX
hello all,
could anyone tell me the better media server for live
streaming(Webcam)Can't you just create a timer in the client player and then
disconnect the user when it hits 30 mins? -
Publish video to flex ios application from flex app in flash builder 4.6
Hi, i am publishing my live video stream from flex application like this
ns_out.publish("livestream", "live");
and receiving it from flex mobile (IOS) application
ns_in.receiveVideo(true);
ns_in.play("liveStream");
but i am not receiving yet anything on my simulator, but in mean while when i publish my video from flash media live encoder, my flex ios application runs it smoothy..:)
I am using Adobe Flash Builder for this development..
Any help is appreciated!
Thanksyes!!!!!!!!!
I got the answer, i need to encode video into H.264 format and then publish.
cheers!!!!!!!!!!!! -
H.264 Video Streaming Help
Need help integrading H.264 Video Streaming in Flex. I started looking at this thread: http://forums.adobe.com/message/3796848#3796848.
It is now out of date and flash player 11 is released (no longer from incubator site). How is the set up different now? Since my project is built on the older SDK, is there any way to do this on Flex SDK 3.5?
I have already dewnloaded and installed flash player 11 and am using the following code:
import flash.media.H264VideoStreamSettings;
import flash.media.VideoStreamSettings;
import flash.media.H264Level;
import flash.media.VideoCodec;
import flash.media.H264Profile;
nsPublish = new NetStream(nc_publish);
var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();
h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_2);
nsPublish.videoStreamSettings = h264Settings;
Any help is appreciated. Thanks!Make sure you have the new playerglobal.swc also drop this additional compiler arg: -swf-version=13. Need also to target flash player 11.
I did it with 4.5 works like a charm. If this does not make it work you may need to upgrade. If you encounter errors can you post them ?
C -
Vod stream disconnects after 100 seconds of pause
I'm using fms 4.5 vod application to play rtmp stream in flex Video Display client.When the video is paused for 100 seconds the stream gets disconnected from server.its not resuming when the play method is invoked.The player's state is changing to 'playing' but the video is not playing. I tried the same client with fms 4.0 and it starts playing when the play method is invoked after disconnection.Can any one help to resume the video with fms 4.5?
You must have failed to accept the request for your microphone. You see "Error" when the function that asks for microphone fails.
It however doesn't mean your browser doesn't support it. In that case nothing would happen (unless you'd look into browser console). -
Hello all,
I wish to encode a stream from a remote site using a local encoder.
Is there a way to do so or should i place an encoder on the remote site.
In addition i'll like to know if there is a way to encode multiple streams (from different cameras) at once from one encoder only, and if so than how?
Thanks in advance.Thanks once again,
I have a FMS that sits in headquarters and needs to retrieve streams from multi site surveillance cameras. On each site the cameras are connected to a video server that transmites MPEG4. A video server is an hardware that multiplex the camera streams to one. The FMS finally will broadcast live the cameras streams to Flex clients.
My issue of course is that i have to use the encoder in order to manipulate the MPEG4 to flv. However, if the encoder needs to retrieve the stream from local driver that means i have to add at least a PC to each site and eliminate the video server, which of course raises my costs.
Is there a way to solve it?
I thought on maybe add a java\.net application that will sit in the headquarters either and will retrieve the streams, but again i don't know how to run the encoder on objects other than on drivers.
Thanks. -
Hi all,
I would like read a shoutcast stream from flex 3
Any work around ?
Please help me
Thanks in advance.Thank for you reply
From the shoutcast i will get MP3, AAC streams
this is the one station from shout cast "http://205.188.234.4:8006" i am working around
If I connect it I will get the stream
I am able establish a connection using socket and get the stream
How i can play the received data -
How to zip a file before uploading?
I know we don't have much control when uploading files, but can we zip files when uploading them from a Flex application?
Any code examples or links to such?
Thanks,
Greghi,
The mars project includes flex code to enable the creation of adobe openPDF containers, these containers are zip files, you can stream any flex object into a 'container' which is actually a zip file, for instance I can take an xmldocument, stream it into the zip stream as xmldoco.xml then save that stream to mytest.zip. Use any zip program and you will see you have a compressed text file in mytest.zip called xmldoco.xml. The original question was about creating a zip file, the mars project flex classes allow you to do this.
http://download.macromedia.com/pub/labs/mars/mars_sampleapp_air_051608.zip - look at the flex zip classes in this file
The only reason that the flex mars application was done in air was due to the fp 9 local file access limitations with fp 10 that no longer applies.
http://labs.adobe.com/technologies/mars/ read comment 7 at the bottom of this webpage
"You can open a PDFXML file with any Zip tool or the PDFXML Inspector, which allows you to display the file contents and make simple edits."
David. -
How Can I get Adobe to iPad?
How Can I get Adobe to iPad?
Adobe products:
Adobe Access
Acrobat XI Pro
Acrobat XI Standard
Acrobat.com
After Effects® CS6
AIR®
AudienceManager
AudienceResearch
Audition® CS6
Adobe Auditude
Authorware® 7
Bridge CS6
BrowserLab
Business Catalyst®
Adobe Captivate® 6
Central Pro Output Server
ColdFusion Builder™ 2
ColdFusion® 10
Collage
Adobe Connect™
Content Server 4
Contribute® CS5
CQ Digital Asset Management
CQ Web Content Management
CS Live
CreatePDF
Creative Cloud
Creative Suite Extension Builder 2
Creative Suite 6 Design Standard
Creative Suite 6 Design & Web Premium
Creative Suite 6 Master Collection
Creative Suite 6 Production Premium
CRX
Debut
Digital Editions
Digital Publishing Suite, Professional Edition
Digital Publishing Suite, Single Edition
Digital Publishing Suite, Enterprise Edition
Director® 11.5
Discover™
Distiller Server 8
Dreamweaver CS6
Drive 4
E-O
Eazel
EchoSign
Edge Animate
eLearning Suite 6.1
Encore® CS6
ExportPDF
Fireworks® CS6
Flash Builder® 4.7
Flash Media Live Encoder
Flash Media Playback
Flash Player
Flash Professional CS6
Flash Video Streaming Services
Flex 4.6
Fonts
Font Folio® 11.1
FormsCentral
FrameMaker®11
FrameMaker Publishing Server 11
FreeHand® MX
Genesis™
HTTP Dynamic Streaming
Ideas
Illustrator CS6
InContext Editing
InCopy® CS6
InDesign® CS6
InDesign CS6 Server
Insight
JRun™ 4
Kuler®
Kuler mobile
Adobe LeanPrint
Lightroom 4
LiveCycle Enterprise Suite 3
Adobe Marketing Cloud
Media Encoder CS6
Adobe Media Server on Amazon Web Services™
Adobe Media Server Extended
Adobe Media Server Professional
Adobe Media Server Standard
Adobe Muse™
Nav
OnLocation™ CS5
Output Designer
Output Pak for mySAP.com
Ovation®
P-Z
PageMaker® 7.0
Pass
Adobe PDF Print Engine 2
Photoshop CS6
Photoshop CS6 Extended
Photoshop Elements 11
Photoshop Elements 11 & Adobe Premiere® Elements 11
Photoshop Touch
Adobe Premiere Elements 11
Photoshop.com
Prelude™ CS6
Adobe Premiere Express
Adobe Premiere Pro CS6
Presenter 8
Proto
Publish
Reader® XI
Recommendations
Revel™
RoboHelp® 10
RoboHelp Server 9
Scene7®
SearchCenter+
Search&Promote
SendNow
Shockwave® Player
SiteCatalyst®
Social
Soundbooth® CS5
SpeedGrade™ CS6
Story Free
Story Plus
Survey
TagManager
Technical Communication Suite 4
Test&Target™
Test&Target 1:1
Typekit®
Type products
Visual Communicator® 3
Web Fonts
Web Output Pak -
Live streaming of a non-Flex View video from PC to TV via any FiOS capabilities
Hey all -
Is it possible to, using any capability of FiOS/Flex View, stream a live video from my laptop to my TV? There is an annual competition from Europe I watch every year (only available on the web to US viewers) and it requires a special plug-in so I can only view it from my laptop, unless of course I use an adapter to plug it into my TV (which I can, but prefer not to do if FiOS/Flex View has such an option).
Going through the Manager software, I couldn't locate anything like that, but for all I know I've just overlooked it or maybe someone has figured out a way to do this successfully.
Thank you all in advance!
Cheers,
Eneg
Solved!
Go to Solution.I do apologize, but there is no way for that to happen. The Flex View or Media Manager software does not have the ability to stream live video broadcasts to your television. Looks like the adapter you were talking about is the best way to go. Enjoy your competition!
Anthony_VZ
**If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan -
Flex View not streaming on wifi but works on 3G
Flex View streaming of paid and free tv shows and movies is not working on my Verizon Fios router wifi. I have tried it on my iPad 3 and my iPhone 4. But when I disable wifi on my iPhone and force it to 3G Flex View content plays fine.
When I click to "Watch" button the playback screen launches very briefly but then just crashes. Again, no problwith over 3G.
All other FIOS and other apps work fine. Any help appreciated.
Thanks!
Marcsounds like a bad wifi channel
you should log into the router.
192.168.1.1
The default user name for the Verizon MI424WR router is "admin," and the default password is "password" (do not include the quotation marks).
Note: To improve security, your router password may have been changed to the serial number of your router if you have not changed the password from the default of "password." You can find your router's password on the label affixed to the bottom or back of your router.
After you are logged in navigate to wireless settings, and basic security settings and look for channel.
Change to 1, 6 and 11. Try not to use any other channel as they are overlapping and cause trouble for you later.
Let us know which if any worked. -
Hi All,
I am trying to display a live stream from rtmp server. Below is my code.
<?xml version="1.0" encoding="utf-8"?>
<s:Group height="100%" width="100%"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.core.FlexGlobals;
private const URL:String = "rtmp://eigr2.flashlive.bigCDN.com/20175D";//"http://www.helpexamples.com/flash/video/cuepoints.flv";
private const STREAM_KEY:String = "eigr8";
private var _video:Video = new Video();
private var _nc:NetConnection;
private var _custClient:Object;
private var _ns:NetStream;
private var _streamKey:String;
public function playVideo():void
var url:String = URL;
if(videoHandler.numChildren == 0)
_nc = new NetConnection();
_nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
_nc.connect(URL);
private function netStatusHandler(event:NetStatusEvent):void
trace("NC " + event.info.code);
switch (event.info.code)
case "NetConnection.Connect.Success":
_video = new Video();
_video.smoothing = true;
var custClient:Object = new Object();
custClient.onMetaData = metaDataHandler;
_ns = new NetStream(_nc);
_ns.client = custClient;
_ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
_ns.addEventListener(DRMErrorEvent.DRM_ERROR, drmerror);
_ns.addEventListener(DRMStatusEvent.DRM_STATUS, drmStatus);
_ns.addEventListener(StatusEvent.STATUS, status);
_ns.addEventListener(NetStatusEvent.NET_STATUS, target);
_ns.bufferTime = 2;
_ns.receiveVideo(true);
var net:NetStreamPlayOptions = new NetStreamPlayOptions();
//net.len = 1;
//net.transition = NetStreamPlayTransitions.APPEND;
net.streamName = STREAM_KEY;
_ns.play(STREAM_KEY);
_video.attachNetStream(_ns);
videoHandler.addChild(_video);
videoHandler.visible = true;
//background.visible = true;
break;
case "NetConnection.Connect.Failed": //shownoVideoText();
break;
case "NetStream.Play.StreamNotFound": trace("Unable to locate video: ");
break;
private function status(event:StatusEvent):void
trace("Status Event : " + event.toString());
private function drmerror(event:DRMErrorEvent):void
trace("DRM Error : " + event.toString());
private function drmStatus(event:DRMStatusEvent):void
trace("DRM Status : " + event.toString());
private function videoStates(event:Event):void
trace(event.toString());
public function stopVideo():void
_nc.close();
_nc = null;
_ns = null;
this.videoHandler.removeChild(_video);
private function asyncErrorHandler(event:AsyncErrorEvent):void
trace("Async errrorrrrrrrrrrrrrrrrrrrr");
private function target(e:NetStatusEvent):void
trace("Started playing : " + e.info.code);
private function metaDataHandler(infoObject:Object):void
this.setVideoSize(infoObject.height, infoObject.width);
/*public function playVideo():void
custClient = new Object();
custClient.onMetaData = metaDataHandler;
nc = new NetConnection();
nc.connect(null);
nc.client = { onBWDone: function():void{} };
//nc.addEventListener(NetStatusEvent.NET_STATUS, target);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns = new DynamicCustomNetStream(nc);
ns.client = custClient;
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.addEventListener(NetStatusEvent.NET_STATUS, target);
ns.play(URL);
videoPlayer.attachNetStream(ns);
videoPlayer.smoothing = true;
if(!videoHandler.contains(videoPlayer))
videoHandler.addChild(videoPlayer);
private function metaDataHandler(infoObject:Object):void
this.setVideoSize(infoObject.height, infoObject.width);
override public function set currentState(value:String):void
super.currentState = value;
this.videoHandler.percentHeight = value == "fullScreen" ? 100 : 50;
public function onFCSubscribe(info:Object):void
trace("onFCSubscribe - succesful");
protected function goBack():void
FlexGlobals.topLevelApplication.showVideo(false);
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Button click="goBack()"
horizontalCenter="0"
label="Go Back" bottom="50"/>
<mx:UIComponent width="100%"
height="50%"
top="0" left="0"
id="videoHandler"/>
</s:Group>
When I try to run this, I could successfully connect to server but not getting the data. If I open the url in browser PublishNotify gets dispatched and I get the stream. As soon as I close UnpublishNotify gets dispatched and I wont get the stream. Can I know the possible reasons and solution?Unless I am mistaken here, you must implement Apple's HTTP Live protocol for streams over ten minutes in length. There is a few options you can take:
1. Split your streams into 9 minute segments and feed them consecutively in groups. (Apple actually offers a segmenting tool that even generates an index file via there Developer tools)
2. Only enable full length streaming over WiFi
3. Fully implement HTTP Live....
Also, do not forgot that not only are you going to have to implement HTTP Live but you are going to have to ALSO include an audio only stream. -
Is it possible to pass data from Flex to BlazeDS/POJO as a stream?
Is it possible to make a remote call to a remote Java object that uses BlazeDS so that the data is gotten as a stream (InputStream)? For example when uploading a file, it would require less memory.
The BlazeDS examples about file upload that I've seen read the data from file to client memory first with FileReference#load() and after that pass it to the server as ByteArray. By doing so, both client and server need to load the whole file data into memory before it can be passed/processed.
Thanks.Thanks for the tip Joe.
It's not quite what I was looking for, but it gave me some ideas.
The blog post describes how to create your own server to handle the file stream. With BlazeDS & Java EE app server there's no need to implement the low level stuff.
One option would be to read the data on Flex side in chunks and make a request to send each chunk at a time, but I don't know whether this helps at all. Might just slow down the network.
Another option is to write a custom adapter for BlazeDS endpoint, but I don't know enough details on this to say is it possible or not.
Third option is to use regular servlet code and Apache Commons FileUpload module.
Still interested hearing opinions from people working with BlazeDS.
Maybe you are looking for
-
Clean install from Time Machine
My Macbook started to get slower over the last couple of months. Last month I lost about 10/7500 records in cash book. I did Verify disk in Disk Utility which recommended reinstall. I did backup to Time Machine. Then did Erase Disk. Now restart compu
-
I just bought an Apple TV and i have a bose sounddock with a mini jack in the back and and optical cord with a mini adapter on it (so optical cord going into the Apple TV and the mini adapter on the other end going into my bose dock but i dont get so
-
Safari Won't Connect To Specific Network. Firefox Will!
I have a specific issue with Safari (and Mail.app) on a specific network I try to connect to. The network is one offered on a train service, and pre-Lion I've been able to connect to it just fine. All of a sudden my MBP and MBA are able to connect to
-
How can I should the position number in sequence via ppom_old or ppome
Our user creates the position number via ppom_old and get the position number from this screen. The position number has been shown on sequence. However, something seems collapse. Do you guys know how I can show insequence again?
-
Hi SDNers, I am facing a Performance Issue. In my Repository I am having 2.15 MIllion reocrds. IN June The memory usage is 25%. Now in August it is comsuming 39% of memory usage. Can you anybody tell, How I can analyse and how I can redcue the memory