[Red5] Problems with buffering MP3 when playing from file ( not stream)

Mamontov Sergey V. moonlight at ua.elro.com
Thu Nov 15 12:36:21 PST 2007


Manuel,

Sounds great, but I noticed, what getSubscriberStream(IScope scope,
String streamName), mean time StreamService createStream() returns
integer as stream name, and I cant paste it to getSubscriberStream :(

>   
>   
> Manuel, 
>  

>  
> Oh, thanks, this is really interesting :)
>  
> I'm just new with Red5, but I need somehow to adapt it to needs of our project.
>  
> Thanks again, I will try it now :)
>  

>  
> Regards,
>  

>  
> Sergey
>  

>  

>  
>    
>>
>    

>  

>  

>  
> 2007/11/15, Mamontov Sergey V. <moonlight at ua.elro.com>:
>  
> I see, this is my second small question, but nobody can't answer :(
>  

>  
> Let's try to ask the third question: how to invoke pause action on
>  
> server-side, to stop stream?
>  

>  

>  

>  
> I haven't tried but it could work: 
>  

>  
> ISubscriberStream theStream = getSubscriberStream(theScope, theStreamName);
>  
> theStream.pause(thePosition);
>  

>  

>  
> http://dl.fancycode.com/red5/api/org/red5/server/adapter/MultiThreadedApplicationAdapter.html#getSubscriberStream(org.red5.server.api.IScope,%20java.lang.String>  
> http://dl.fancycode.com/red5/api/org/red5/server/api/stream/ISubscriberStream.html#pause(int)
>  
>  
>  

>  

>  
>> I found some mysterious behavior Red5 with stream, when i calling
>  
>> NetStream("some_file.mp3") before calling play I setup
>  
>> NetStream.bufferTime = 15;
>  

>  
> Shouldn't it be:
>  

>  
> NetStream.setBufferTime(15)
>  

>  
> ??
>  
>  
>     
>  

>  

>  

>  

>  





More information about the Red5 mailing list