Skip to content
Snippets Groups Projects
Commit 0c3b9e83 authored by Boris Grozev's avatar Boris Grozev
Browse files

Adds methods to MediaService.

parent be3aa3af
No related branches found
No related tags found
No related merge requests found
...@@ -863,6 +863,15 @@ public Recorder createRecorder(MediaDevice device) ...@@ -863,6 +863,15 @@ public Recorder createRecorder(MediaDevice device)
return null; return null;
} }
/**
* {@inheritDoc}
*/
@Override
public Recorder createRecorder(RTPTranslator translator)
{
return new RecorderRtpImpl(translator);
}
/** /**
* Returns a {@link Map} that binds indicates whatever preferences this * Returns a {@link Map} that binds indicates whatever preferences this
* media service implementation may have for the RTP payload type numbers * media service implementation may have for the RTP payload type numbers
...@@ -1782,4 +1791,15 @@ public void windowClosing(WindowEvent event) ...@@ -1782,4 +1791,15 @@ public void windowClosing(WindowEvent event)
} }
} }
} }
/**
* {@inheritDoc}
*/
@Override
public RecorderEventHandler createRecorderEventHandlerJson(String filename)
throws IOException
{
return new RecorderEventHandlerJSONImpl(filename);
}
} }
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package org.jitsi.service.neomedia; package org.jitsi.service.neomedia;
import java.beans.*; import java.beans.*;
import java.io.*;
import java.util.*; import java.util.*;
import org.jitsi.service.neomedia.codec.*; import org.jitsi.service.neomedia.codec.*;
...@@ -199,6 +200,16 @@ public MediaStream createMediaStream( ...@@ -199,6 +200,16 @@ public MediaStream createMediaStream(
*/ */
public Recorder createRecorder(MediaDevice device); public Recorder createRecorder(MediaDevice device);
/**
* Creates a new <tt>Recorder</tt> instance that can be used to record media
* from a specific <tt>RTPTranslator</tt>.
* @param translator the <tt>RTPTranslator</tt> for which to create a
* <tt>Recorder</tt>
* @return a new <tt>Recorder</tt> instance that can be used to record media
* from a specific <tt>RTPTranslator</tt>.
*/
public Recorder createRecorder(RTPTranslator translator);
/** /**
* Initializes a new <tt>RTPTranslator</tt> which is to forward RTP and RTCP * Initializes a new <tt>RTPTranslator</tt> which is to forward RTP and RTCP
* traffic between multiple <tt>MediaStream</tt>s. * traffic between multiple <tt>MediaStream</tt>s.
...@@ -391,4 +402,17 @@ public Object getVideoPreviewComponent( ...@@ -391,4 +402,17 @@ public Object getVideoPreviewComponent(
* libjitsi. * libjitsi.
*/ */
public String getRtpCname(); public String getRtpCname();
/**
* Creates a <tt>RecorderEventHandler</tt> instance that saves received
* events in JSON format.
* @param filename the filename into which the created
* <tt>RecorderEventHandler</tt> will save received events.
* @return a <tt>RecorderEventHandler</tt> instance that saves received
* events in JSON format.
* @throws IOException if a <tt>RecorderEventHandler</tt> could not be
* created for <tt>filename</tt>.
*/
public RecorderEventHandler createRecorderEventHandlerJson(String filename)
throws IOException;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment