Jump to content
  • 0

audiocontentcreatemediasource any idea


robertosamayoa
 Share

Question

17 answers to this question

Recommended Posts

  • 0
On 3/20/2023 at 1:08 AM, Yash said:

Hi @robertosamayoa

According to the screenshot, there appears to be no audio/video source to choose.

Regards,
Yash

Yes, but seems is related to browser policy that affect publish page and merge page

 

stream_merger.js:9 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
StreamMerger @ stream_merger.js:9
webrtc_adaptor.js:98 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
WebRTCAdaptor @ webrtc_adaptor.js:98
media_manager.js:88 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
MediaManager @ media_manager.js:88
merge_streams.html:398 initialized
merge_streams.html:406 joined the room: room1
merge_streams.html:408 Object
merge_streams.html:415 Stream joined with ID: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:667 stream id in init peer connection: lCLLCOvKgZAqWBtx close stream id: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:506 onTrack
stream_merger.js:153 Sorting the streams
stream_merger.js:223 Row number = 1
stream_merger.js:224 canvas width = 320canvas height = 240
stream_merger.js:230 extraStreams = 0 stream length = 1
stream_merger.js:231 Xindex = 0Yindex = 0
stream_merger.js:258 Video width = 320Video height = 240
webrtc_adaptor.js:506 onTrack
webrtc_adaptor.js:890 try to create answer for stream id: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:895 created answer for stream id: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:579 No event.candidate in the iceCandidate event
webrtc_adaptor.js:647 Data channel is opened
merge_streams.html:264 Uncaught TypeError: webRTCAdaptor.gotStream is not a function
    at merge_streams.html:264:18
webrtc_adaptor.js:391 leave request is sent for room1
webrtc_adaptor.js:652 Data channel is closed
merge_streams.html:481 play_finished
stream_merger.js:398 removed streamId = lCLLCOvKgZAqWBtx
stream_merger.js:153 Sorting the streams
stream_merger.js:223 Row number = 1
stream_merger.js:224 canvas width = 320canvas height = 240
webrtc_adaptor.js:391 leave request is sent for room1
stream_merger.js:414 Uncaught TypeError: Cannot read properties of null (reading 'close')
    at StreamMerger.stop (stream_merger.js:414:21)
    at HTMLButtonElement.leaveRoom (merge_streams.html:283:10)
webrtc_adaptor.js:391 leave request is sent for room1
stream_merger.js:414 Uncaught TypeError: Cannot read properties of null (reading 'close')
    at StreamMerger.stop (stream_merger.js:414:21)
    at HTMLButtonElement.leaveRoom (merge_streams.html:283:10)
webrtc_adaptor.js:391 leave request is sent for room1
stream_merger.js:414 Uncaught TypeError: Cannot read properties of null (reading 'close')
    at StreamMerger.stop (stream_merger.js:414:21)
    at HTMLButtonElement.leaveRoom (merge_streams.html:283:10)

 

 

Link to comment
Share on other sites

  • 0
On 3/21/2023 at 4:48 PM, robertosamayoa said:

Yes, but seems is related to browser policy that affect publish page and merge page

 

stream_merger.js:9 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
StreamMerger @ stream_merger.js:9
webrtc_adaptor.js:98 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
WebRTCAdaptor @ webrtc_adaptor.js:98
media_manager.js:88 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
MediaManager @ media_manager.js:88
merge_streams.html:398 initialized
merge_streams.html:406 joined the room: room1
merge_streams.html:408 Object
merge_streams.html:415 Stream joined with ID: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:667 stream id in init peer connection: lCLLCOvKgZAqWBtx close stream id: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:506 onTrack
stream_merger.js:153 Sorting the streams
stream_merger.js:223 Row number = 1
stream_merger.js:224 canvas width = 320canvas height = 240
stream_merger.js:230 extraStreams = 0 stream length = 1
stream_merger.js:231 Xindex = 0Yindex = 0
stream_merger.js:258 Video width = 320Video height = 240
webrtc_adaptor.js:506 onTrack
webrtc_adaptor.js:890 try to create answer for stream id: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:895 created answer for stream id: lCLLCOvKgZAqWBtx
webrtc_adaptor.js:579 No event.candidate in the iceCandidate event
webrtc_adaptor.js:647 Data channel is opened
merge_streams.html:264 Uncaught TypeError: webRTCAdaptor.gotStream is not a function
    at merge_streams.html:264:18
webrtc_adaptor.js:391 leave request is sent for room1
webrtc_adaptor.js:652 Data channel is closed
merge_streams.html:481 play_finished
stream_merger.js:398 removed streamId = lCLLCOvKgZAqWBtx
stream_merger.js:153 Sorting the streams
stream_merger.js:223 Row number = 1
stream_merger.js:224 canvas width = 320canvas height = 240
webrtc_adaptor.js:391 leave request is sent for room1
stream_merger.js:414 Uncaught TypeError: Cannot read properties of null (reading 'close')
    at StreamMerger.stop (stream_merger.js:414:21)
    at HTMLButtonElement.leaveRoom (merge_streams.html:283:10)
webrtc_adaptor.js:391 leave request is sent for room1
stream_merger.js:414 Uncaught TypeError: Cannot read properties of null (reading 'close')
    at StreamMerger.stop (stream_merger.js:414:21)
    at HTMLButtonElement.leaveRoom (merge_streams.html:283:10)
webrtc_adaptor.js:391 leave request is sent for room1
stream_merger.js:414 Uncaught TypeError: Cannot read properties of null (reading 'close')
    at StreamMerger.stop (stream_merger.js:414:21)
    at HTMLButtonElement.leaveRoom (merge_streams.html:283:10)

 

 

I have issues on all pages seems relates to webrtc adaptor any help ?

 

 

Link to comment
Share on other sites

  • 0

@robertosamayoa
Unfortunately, the issue is not clear to me. Is there a scenario that can be replicated?
There is no problem when I publish the stream using the sample page. If something is different on your end, could you please describe your scenario?

Link to comment
Share on other sites

  • 0

seems that error yes need new ams, but still not able to fix even using new ams

i am getting these error

 

 It cannot add ICE Candidate because remote description is not set for stream YxqQKmYvyZQvvKlG. It will be added after remote description is set

 

Link to comment
Share on other sites

  • 0
On 3/26/2023 at 10:04 AM, robertosamayoa said:

seems that error yes need new ams, but still not able to fix even using new ams

i am getting these error

 

 It cannot add ICE Candidate because remote description is not set for stream YxqQKmYvyZQvvKlG. It will be added after remote description is set

 

Hi @robertosamayoa

Did you upgraded the client side SDK as well? If not give it a try, In older version there were an issue reading the media devices (audio/video).

  • Like 1
Link to comment
Share on other sites

  • 0

hello, i was keeping testing i think these new policys or changes on browsers is also afecting antmedia, as i was not getting audio.

 

example

 

1./ start streaming on publish page

2./ Go to player.html set stream id, you will get video but no audio.

 

please verify.

 

 

 

Link to comment
Share on other sites

  • 0

 yes but if enable then goodbye audio,  

these option stop working

Noise Supression
Echo Cancellation

 

soundmeter.js:19 [Deprecation] The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (https://bit.ly/audio-worklet)

Link to comment
Share on other sites

  • 0
On 4/1/2023 at 1:30 AM, Yash said:

@robertosamayoa

You are correct. As previously stated, you can enable these options before publishing, and it appears to be working.

Could you please create a bug report on the following repository so we can fix the issue?
https://github.com/ant-media/Ant-Media-Server/issues/new/choose

is opened now, Noise Supression Echo Cancellation #4955

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...