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...;(
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...
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"...
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.
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.
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...
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...
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...
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)
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...