Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libjitsi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZRTP
libjitsi
Commits
0c3b9e83
Commit
0c3b9e83
authored
10 years ago
by
Boris Grozev
Browse files
Options
Downloads
Patches
Plain Diff
Adds methods to MediaService.
parent
be3aa3af
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/org/jitsi/impl/neomedia/MediaServiceImpl.java
+20
-0
20 additions, 0 deletions
src/org/jitsi/impl/neomedia/MediaServiceImpl.java
src/org/jitsi/service/neomedia/MediaService.java
+24
-0
24 additions, 0 deletions
src/org/jitsi/service/neomedia/MediaService.java
with
44 additions
and
0 deletions
src/org/jitsi/impl/neomedia/MediaServiceImpl.java
100644 → 100755
+
20
−
0
View file @
0c3b9e83
...
@@ -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
);
}
}
}
This diff is collapsed.
Click to expand it.
src/org/jitsi/service/neomedia/MediaService.java
+
24
−
0
View file @
0c3b9e83
...
@@ -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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment