[Red5] NetStream.publish() server-side notification

Davide Pesavento davidepesa at gmail.com
Tue Sep 2 11:37:18 PDT 2008


I already have those lines in logback.xml. The logging system works
because streamSubscriberStart() and streamPlaylistItemPlay() do print
something to the log file.

2008/9/2 Mondain <mondain at gmail.com>:
> Make sure that you create an entry in the main logback.xml file, like so:
>
>     <logger name="my.package.name.here.MyClassName">
>         <level value="DEBUG" />
>     </logger>
>
> Your messages may be getting dropped by the filter.
>
> Paul
>
> On Tue, Sep 2, 2008 at 8:45 AM, Davide Pesavento <davidepesa at gmail.com>
> wrote:
>>
>> Method signatures are correct. Nothing is printed to the debug log file
>> however.
>>
>> 2008/9/2 Mondain <mondain at gmail.com>:
>> > Davide,
>> > In your application you should ensure that your method signatures look
>> > like
>> > this:
>> >
>> > @Override
>> > public void streamPublishStart(IBroadcastStream stream) {
>> >     log.debug("Publish start called, name: {}", stream.getName());
>> > }
>> >
>> > @Override
>> > public void streamRecordStart(IBroadcastStream stream) {
>> >     log.debug("Record start called, name: {}", stream.getName());
>> > }
>> >
>> > I have used these in quite a number of projects without any issues.
>> >
>> > Paul
>> >
>> > On Tue, Sep 2, 2008 at 7:54 AM, Davide Pesavento <davidepesa at gmail.com>
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> I need to know when a Flash client starts publishing a stream [using
>> >> NetStream.publish(...)]. I've tried overriding streamPublishStart()
>> >> and streamRecordStart() in my ApplicationAdapter subclass, but those
>> >> method are not called. On the other hand streamSubscriberStart() and
>> >> streamPlaylistItemPlay() are working [they are invoked when the Flash
>> >> client calls NetStream.play(...)]. What am I doing wrong?
>> >>
>> >> Thank you very much in advance for any help.
>> >>
>> >> Davide Pesavento
>> >>
>> >> _______________________________________________
>> >> Red5 mailing list
>> >> Red5 at osflash.org
>> >> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >
>> >
>> >
>> > --
>> > http://gregoire.org/
>> > http://osflash.org/red5
>> >
>> > _______________________________________________
>> > Red5 mailing list
>> > Red5 at osflash.org
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> >
>> >
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> --
> http://gregoire.org/
> http://osflash.org/red5
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>



More information about the Red5 mailing list