Coder Social home page Coder Social logo

Comments (1)

aisch avatar aisch commented on June 30, 2024

default is to open/capture on start and keep open. enable on demand open w/ rosparam open_media_sources:

$ rosparam get /ros_webrtc/
cameras:                                                                 
  webcam: {label: webcam, name: 'id:///dev/video0', publish: true}       
ice_servers:                                                             
- {uri: 'stun:stun.services.mozilla.com:3478'}                           
- {uri: 'stun:stun.l.google.com:19302'}                                  
open_media_sources: false                                                
peer_connection:                                                         
  constraints:                                                           
    optional: {DtlsSrtpKeyAgreement: 'true', googVeryHighBitrate: 'true'}
queue_sizes: {audio: 1000, data: 1000, event: 1000, video: 1000}         
trace: {file: /tmp/ros_webrtc.trace, filter: all}                        

if open_media_sources: false then local media will be opened/closed on demand. so e.g. when there are no peer cxns u see local media src has state: ended e.g.:

$ rosservice call /ros_webrtc/get_host
sdp_constraints: 
  mandatory: []
  optional: 
    - 
      key: DtlsSrtpKeyAgreement
      value: true
    - 
      key: googVeryHighBitrate
      value: true
audio_sources: 
  - 
    kind: audio
    label: ''
    state: ended
    publish: False
    rotation: 0
video_sources: 
  - 
    kind: video
    label: webcam
    state: ended
    publish: True
    rotation: 0
peer_connections: []

from ros-webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.