Results 1 to 5 of 5

Thread: startDVRRecording for some streams (Recording API)

  1. #1
    Join Date
    Jan 2013
    Posts
    25

    Default startDVRRecording for some streams (Recording API)

    Hi,

    I've read and tried the code from:
    http://www.wowza.com/forums/content....-Recording-API

    The calls via HTTP work fine.
    However, I'm trying to use the same code to start or stop streams in the onPublish() method, when the stream comes online.


    dvrRecorder = stream.getDvrRecorder(IDvrConstants.DVR_DEFAULT_RECORDER_ID);

    dvrRecorder.startRecording(); // nullpointer exception

    I've tried both with the property startRecordingOnStartup=true & false
    But the dvrRecorder instance, is never there.

    How do you suggest I solve this?

    Can I maybe force the init of the dvrRecorder via:
    dvrRecorder.init(streamName, recorderName, appInstance, dvrRecorderItem) ?

    I'd rather not fire a timer that waits a few seconds after I've received the onPublish()

    Kind regards, Jim

  2. #2
    Join Date
    Jan 2013
    Posts
    25

    Default

    any suggestions?

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

    Default

    Is the application configured for DVR? If not, you do need the basic configuration in place to use the API.

    http://www.wowza.com/forums/content....live-streaming


    Richard

  4. #4
    Join Date
    Jan 2013
    Posts
    25

    Default

    Yes, basics is not a problem.

    If i put startRecordingOnStartup = true in the application xml, dvr is available for all streams.
    Also, stopping and starting with the api example (see first post) works fine.

    However, I'd like to be able to stop or start the dvr functionality, the moment the stream is published (onPublish).

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

    Default

    You can override publish command to do it:

    http://www.wowza.com/forums/content....-a-stream-name

    Richard

Similar Threads

  1. Filemover vs. recording API
    By jay_charles in forum General Forum
    Replies: 2
    Last Post: 08-30-2013, 06:00 PM
  2. Adaptive bitrate with nDVR recording API
    By db_2011 in forum AddOn: Wowza nDVR
    Replies: 9
    Last Post: 04-11-2012, 08:47 AM
  3. Overlapping multiple recordings with nDVR Recording API
    By db_2011 in forum AddOn: Wowza nDVR
    Replies: 1
    Last Post: 11-24-2011, 08:24 PM

Posting Permissions

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