Class WebRTC
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.wicketstuff.html5.media.webrtc.WebRTC
- All Implemented Interfaces:
Serializable,Iterable<Component>,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IMetadataContext<Serializable,,Component> IHeaderContributor,IRequestableComponent,IHierarchical<Component>,IClusterable
A WebRTC component to create a video conference based on SimpleWebRTC.
http://www.html5rocks.com/en/tutorials/webrtc/basics/
https://github.com/andyet/signalmaster
https://github.com/HenrikJoreteg/SimpleWebRTC
https://github.com/HenrikJoreteg/webrtc.js
https://github.com/andyet/signalmaster
https://github.com/HenrikJoreteg/SimpleWebRTC
https://github.com/HenrikJoreteg/webrtc.js
- Author:
- Tobias Soloschenko
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this to provide an error page if video / audio is not available.Gets the frames per seconds which are going to be used for the videosabstract VideoGets the local video id of the video element which is going to display the local video recordingGets the max height of the videos - if the height is smaller less band width is usedGets the max width of the videos - if the width is smaller less band width is usedprotected ResourceReferenceGets the resource reference which is going to be shown if the access to the mic and the cam is not allowed by the user.abstract StringGets the room name to which the users are joiningabstract StringGets the url of the signal server based on socket.io.If the volume bars are enabled or disabledisDebug()If the debug mode is enabled - this is causing the uncompressed version of the javascript files is going to be loadedvoidrenderHead(IHeaderResponse response) voidSets the debug mode to be enabled - this is causing the uncompressed version of the javascript files is going to be loadedvoidsetFramesPerSeconds(Integer framesPerSeconds) Sets the frames per seconds which are going to be used for the videosvoidsetMaxHeight(Integer maxHeight) Sets the max height of the videos - if the height is smaller less band width is usedvoidsetMaxWidth(Integer maxWidth) Sets the max width of the videos - if the width is smaller less band width is usedvoidsetVolumeBars(Boolean volumeBars) Sets the volume bars to be enabled or disabledMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenMethods inherited from class org.apache.wicket.Component
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMarkupTag, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
WebRTC
-
WebRTC
-
-
Method Details
-
renderHead
- Specified by:
renderHeadin interfaceIHeaderContributor- Overrides:
renderHeadin classComponent
-
getNoVideoResourceReference
Gets the resource reference which is going to be shown if the access to the mic and the cam is not allowed by the user.- Returns:
- the resource reference to be used if no access to mic and the cam is not allowed
-
getLocalVideo
Gets the local video id of the video element which is going to display the local video recording- Returns:
- the id of the local video
-
getRoomName
Gets the room name to which the users are joining- Returns:
- the room name
-
getSocketIOUrl
Gets the url of the signal server based on socket.io. Important the URL must not contain a namespace like /socket.io at the end, because the signal server then never calls the connect event.- Returns:
- the url of the socket io server
-
isDebug
If the debug mode is enabled - this is causing the uncompressed version of the javascript files is going to be loaded- Returns:
- if the debug mode is enabled
-
setDebug
Sets the debug mode to be enabled - this is causing the uncompressed version of the javascript files is going to be loaded- Parameters:
debug- if the debug mode is enabled
-
getVolumeBars
If the volume bars are enabled or disabled- Returns:
- if the volume bars are enabled or disabled
-
setVolumeBars
Sets the volume bars to be enabled or disabled- Parameters:
volumeBars- if the volume bars are enabled or disabled
-
getFramesPerSeconds
Gets the frames per seconds which are going to be used for the videos- Returns:
- the frames per seconds
-
setFramesPerSeconds
Sets the frames per seconds which are going to be used for the videos- Parameters:
framesPerSeconds- the frames per seconds as short
-
getMaxWidth
Gets the max width of the videos - if the width is smaller less band width is used- Returns:
- the max width of the videos
-
setMaxWidth
Sets the max width of the videos - if the width is smaller less band width is used- Parameters:
maxWidth- the max width the videos should be
-
getMaxHeight
Gets the max height of the videos - if the height is smaller less band width is used- Returns:
- the max height of the videos
-
setMaxHeight
Sets the max height of the videos - if the height is smaller less band width is used- Parameters:
maxHeight- the max height the videos should be
-
getErrorPage
Override this to provide an error page if video / audio is not available. If only audio is available getNoVideoResourceReference() is called and the image received by this method is shown.- Returns:
- the page if video / audio is not available
-