Hi Dan,

I mean the audio will stutter at times and the video will lag.

Also, unlike the the VOD click for full screen, (All my examples I have for
full screen works without problems) this app really stutters and video lags
at full screen.

I can send you this project if you wish to take a look.

The flash piece is in Flex 2.

Currently, it is in the JIRA Demo area waiting approval as a demo.

Here is the entire java code from the Application.java file:

Let me know if you see anything out of the ordinary.


package org.red5.server.webapp.tv;

import java.util.Timer;

import org.red5.server.adapter.*;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.stream.IServerStream;
import org.red5.server.api.stream.support.SimplePlayItem;
//import org.red5.server.api.stream.IBroadcastStream;


import org.red5.server.api.stream.support.StreamUtils;
import org.springframework.core.io.Resource;


public class Application extends ApplicationAdapter {
public IScope appScope;
public IServerStream serverStream;
private SimplePlayItem item;

/** [EMAIL PROTECTED] */
   @Override
public boolean appStart(IScope app) {
    Timer timer = new Timer();
    log.debug("Application start");
    appScope = app;
 serverStream = StreamUtils.createServerStream(appScope, "live0");
 getList();
 serverStream.start();
 PlayTester plTester = new PlayTester();
 plTester.setApplication(this);
 timer.schedule(plTester, 0, 500);

 return true;
}

/** [EMAIL PROTECTED] */
   @Override
public boolean appConnect(IConnection conn, Object[] params) {
 measureBandwidth(conn);
 log.debug("Client: "+conn.getHost()+" connected");
 log.debug("ID: "+conn.getClient().getId());
 return super.appConnect(conn, params);
}

/** [EMAIL PROTECTED] */
   @Override
public void appDisconnect(IConnection conn) {
    log.debug("Client: "+conn.getHost()+" disconnected");
 super.appDisconnect(conn);
}

   @Override
   public void appStop(IScope app) {
    if (appScope == app && serverStream != null) {
  serverStream.close();
 }
    super.appStop(app);
   }

  public synchronized  boolean getList() {
 try {
  log.debug("getting the FLV files");
  Resource[] flvs = appScope.getResources("streams/*.flv");
  if (flvs != null) {
   serverStream.removeAllItems();
   for (Resource flv : flvs) {
    String flvName = flv.getFile().getName();
    item = new SimplePlayItem();
    item.setName(flvName);
    serverStream.addItem(item);
    log.debug("flvName: " + flvName);
   }
  }
 }catch (Exception e) {
  log.error(e);
 }
 return true;
}

   public void updatePlaylist()
   {
 getList();
 serverStream.setItem(0);
   }

}



Regards,

Lenny




On 7/20/07, Dan Rossi <[EMAIL PROTECTED]> wrote:

Do you mean dropped frames ? Since last year i had an issue rotating the
playlist as in it wouldnt work correctly . Either the time it switched
was either too early or too late and eventually it would just become a
mess and crash the player, it was a funny sight though I had to record
the digitze glitches because it was like it was in super fast forward.

serverStream = StreamUtils.createServerStream(appScope, "live0");
serverStream.start();

is that all the code or partial ?

Lenny Sorey wrote:
> Hello all,
>
> Was just wondering if there has been any updates or anyone been
successful
> with stabilizing RED5's serverStream?
>
> Currently, I am still getting a lot of stuttering and hesitation
> with audio and video in the serverstream app
> I am working with.
>
> serverStream = StreamUtils.createServerStream(appScope, "live0");
> serverStream.start();
>
> If this is still an issue in JIRA, please accept my apologies for my
> oversight
> in missing this when I looked through JIRA.
>
> Thanks!!
>
> Lenny
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to