Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

actionscript 3 - Do you know if there's any problem with netstream.appendBytes() for streaming? -


i use netstream.appendbytes streaming (flv) http, works intermittently (it works, after refresh, doesn't work, works , on...)

what problem?, have not idea

my code is:

import flash.display.*; import flash.events.* import flash.net.*;  import flash.utils.bytearray; import com.hurlant.util.hex;  var videourl:string = "http://url/vivo/flash";  //elemento de conexíon var conn:netconnection = new netconnection(); conn.connect(null); //stream de red var stream:netstream; //conexión stream = new netstream(conn); //oyente stream.addeventlistener(asyncerrorevent.async_error, asyncerrorhandler);    function play() {     var urlstream:urlstream = new urlstream();     //oyentes de urlstream     urlstream.addeventlistener(statusevent.status, instatus);      urlstream.addeventlistener(event.complete, completehandler);     urlstream.addeventlistener(securityerrorevent.security_error, securityerrorhandler);          urlstream.addeventlistener(progressevent.progress, oyenteprocesocarga);     //urlstream.addeventlistener(progressevent.progress, describeprocesocarga);      urlstream.addeventlistener(ioerrorevent.io_error, ioerror);     //video     var video:video = new video(640,480);     video.attachnetstream(stream);     addchild(video);      stream.play(null);      urlstream.load(new urlrequest(videourl)); }  function ioerror(event:ioerrorevent):void {     textarea.text += event + "\n"; }  function oyenteprocesocarga(event:progressevent):void {     var encr:bytearray = new bytearray();         event.target.readbytes(encr);         stream.appendbytes(encr); }  function describeprocesocarga(event:progressevent):void {     if (event.target.bytesavailable > 0){         var encr:bytearray = new bytearray();         event.target.readbytes(encr);     } }   function securityerrorhandler(event:securityerrorevent):void { }  function asyncerrorhandler(event:asyncerrorevent):void { // ignore asyncerrorevent events. } function completehandler(event:event):void { }  function instatus(event:statusevent):void {  }   play(); 

maybe use stream buffer http tcp not packets arrive @ time.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -