Results 1 to 3 of 3

Thread: LiveStreamRecord library issue

  1. #1
    Join Date
    Sep 2012
    Posts
    8

    Default LiveStreamRecord library issue

    Hi all,

    I'm working on a streaming application and I encountered a problem with the live streaming recording. I have tested the samples given with the library and its working perfectly with the flash client. But my requirement is to start the recording from the server side itself rather than using the flashclient to trigger the start recording through the netconnection call.

    I have written the following code, where I created the object for the ModuleLiveStreamRecord class and called the recordStream function with the details mentioned as below.
    String streamname="12";
    ModuleLiveStreamRecord lsr=new ModuleLiveStreamRecord();
    lsr.recordStream(streamname, 1, true, "", true, true, true);
    Bu when I execute the above code, I'm having trouble because I'm getting the following exception there.

    ERROR server comment - invoke(onStreamCreate): java.lang.NullPointerException: com.wowza.wms.plugin.livestreamrecord.ModuleLiveStreamRecord.recordStream(ModuleLiveStreamRecord.jav a:28)
    java.lang.NullPointerException
    at com.wowza.wms.plugin.livestreamrecord.ModuleLiveStreamRecord.recordStream(ModuleLiveStreamRecord.jav a:28)
    at com.media.modules.OnlineVideoStream.onStreamCreate(OnlineVideoStream.java:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.wowza.wms.module.ModuleFunction.invoke(Unknown Source)
    at com.wowza.wms.module.ModuleFunctions.a(Unknown Source)
    at com.wowza.wms.module.ModuleFunctions.onStreamCreate(Unknown Source)
    at com.wowza.wms.stream.MediaStreamMap.getStream(Unknown Source)
    at com.wowza.wms.module.ModuleCore.createStream(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.wowza.wms.module.ModuleFunction.invoke(Unknown Source)
    at com.wowza.wms.module.ModuleFunctions.invoke(Unknown Source)
    at com.wowza.wms.request.RequestProcessFunctions.processFunctions(Unknown Source)
    at com.wowza.wms.client.ClientWorker.processNextReq(Unknown Source)
    at com.wowza.wms.request.RTMPRequestAdapter.service(Unknown Source)
    at com.wowza.wms.server.ServerHandler.a(Unknown Source)
    at com.wowza.wms.server.ServerHandler.a(Unknown Source)
    at com.wowza.wms.server.ServerHandler.messageReceived(Unknown Source)
    at com.wowza.wms.server.ServerHandlerThreadedSession.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Can someone help me out on this?

    My requirement is to start the recording of a stream from the server end itself rather than calling from http or flash.

    Thanks in advance.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi
    You can try to figure out whats going wrong by catching the exception and logging it.
    Put the code into a try catch block and add some logging to find out whats going wrong.

    That will give you a fighting chance to make the adjustments you need or give us an idea of how to help you to get it working.
    post the logging of the exception when you have it.

    Jason

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Was the stream you are trying to record actually live?

    Richard

Similar Threads

  1. Library loads; does not init
    By mjoop1 in forum Wowza Transcoder
    Replies: 1
    Last Post: 05-07-2014, 03:29 AM
  2. Replies: 3
    Last Post: 11-09-2013, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •