Search results

  1. J

    Fixing Video Frame Size in WebRTC

    got it....it works now...thanks
  2. J

    Fixing Video Frame Size in WebRTC

    I hv tried changing to single quote also below: curl -X POST "http://127.0.0.1:8081/rest-api/stream/find" -H "Content-Type:application/json" -d '{"name":"100000000000003","published":"true","display":"metrics"}' still does not work...;(
  3. J

    Fixing Video Frame Size in WebRTC

    I tried with below commands, still not getting the metrics: /usr/bin/curl -X POST "http://127.0.0.1:8081/rest-api/stream/find" -H "Content-Type:application/json" -d "name=100000000000003&published=true&display=["metrics"]" /usr/bin/curl -X POST "http://127.0.0.1:8081/rest-api/stream/find" -H...
  4. J

    Fixing Video Frame Size in WebRTC

    I'm seeing multiple values of video width and height in the API: curl -X POST http://127.0.0.1:8081/rest-api/stream/find -H "Content-Type:application/json" -d "name=100000000000003&published=true"...
  5. J

    Fixing Video Frame Size in WebRTC

    Is there a way to use different video constraints depending on the device/camera orientation? for instance for landscape, set it to width: 720, height: 1280; for portrait, set it to width: 1280, height: 720.
  6. J

    Fixing Video Frame Size in WebRTC

    I get it to work with http instead of https...
  7. J

    Fixing Video Frame Size in WebRTC

    Is this the right command via curl: curl -X POST "https://127.0.0.1:8081/rest-api/stream/find" -H "Content-Type:application/json" -d "name=100000000000003&published=true&display=metrics" --insecure I'm getting "curl: (35) Encountered end of file" error.
  8. J

    Fixing Video Frame Size in WebRTC

    from the output of above ffmpeg command, it seems the constraints were fixed at 640:480....which is not the ratio aspect i set in my JS file..;|
  9. J

    Fixing Video Frame Size in WebRTC

    so what determines channel quality? and is there a way to force the resolution?
  10. J

    Fixing Video Frame Size in WebRTC

    FYI, the RTMP stream was re-processed with below ffmpeg command, I dont see any resize of the video frame: apache 21325 21317 72 08:46 ? 00:00:56 /snap/ffmpeg/1286/usr/bin/ffmpeg -threads 1 -i rtmp://127.0.0.1:1935/live/dc78 -stream_loop -1 -i /home/apache/dc78/logo.png -f image2...
  11. J

    Fixing Video Frame Size in WebRTC

    I tried this below setting in constraints: function startStreaming(session) { var streamName = urlParams.get('user_id'); var rtmpUrl = "rtmp://localhost:1935/live"; session.createStream({ name: streamName, display: localVideo, cacheLocalResources: true...
  12. J

    Fixing Video Frame Size in WebRTC

    noted, thanks
  13. J

    Fixing Video Frame Size in WebRTC

    Also, is it possible to achieve the attached - input in portrait frame, and output in landscape with the portrait video appeared in the middle?
  14. J

    Fixing Video Frame Size in WebRTC

    in above samples, did you set the dimension of video frame in CSS too (both local and player)?
  15. J

    Fixing Video Frame Size in WebRTC

    i hv added the following: session.createStream({ name: streamName, display: localVideo, cacheLocalResources: true, receiveVideo: false, receiveAudio: false, transport: "UDP", constraints: { audio: true...
  16. J

    Fixing Video Frame Size in WebRTC

    still no luck in getting it work...what we want to achieve is like attached: when open our app in mobile device in portrait mode, not only that the screen (circled in RED) would appear in landscape mode, the captured/streamed video would be in the same aspect too with the portrait video...
  17. J

    Fixing Video Frame Size in WebRTC

    reason I'm asking is that i want the video to remain in portrait mode be it whether the user stream in portrait or landscape mode on their device (eg. mobile phone, desktop etc)
  18. J

    Fixing Video Frame Size in WebRTC

    btw, how do i set the video size?
  19. J

    Fixing Video Frame Size in WebRTC

    noted, will try it out
  20. J

    Fixing Video Frame Size in WebRTC

    I'm using the demo code from webrtc streaming example to build our streaming page, and I realized if I open the streaming page on mobile device, the capture window will appear in portrait mode. How do I fix the capture window in landscape mode and also the ratio aspect (eg: 16:9 with min width...
Top