millicast / millicast-player-unreal-engine-plugin

Millicast Player plugin for Unreal Engine
Other
19 stars 15 forks source link

Troubles compiling this for UE5.0.3 on Ubuntu 22.04 #69

Closed Aeddon closed 1 year ago

Aeddon commented 1 year ago

Hi there,

I've noticed that the 5.0.3 tag/branch has been removed here recently. The link from your docs end up here: https://github.com/millicast/millicast-player-unreal-engine-plugin/tree/UE5.0.3 with a 404. And I'm running into troubles now to compile the latest source for UE5.0.3.

I end up with the following errors:

`[4/7] Compile Module.MillicastPlayer.cpp In file included from /home/aeddon/MillicastBuild/HostProject/Plugins/MillicastPlayer/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/MillicastPlayer/Module.MillicastPlayer.cpp:14: /home/aeddon/MillicastBuild/HostProject/Plugins/MillicastPlayer/Source/MillicastPlayer/Private/WebRTC/PeerConnection.cpp:395:28: error: no member named 'make_ref_counted' in namespace 'rtc' auto Transformer = rtc::make_ref_counted(this);


/home/aeddon/MillicastBuild/HostProject/Plugins/MillicastPlayer/Source/MillicastPlayer/Private/WebRTC/PeerConnection.cpp:395:45: error: 'FFrameTransformer' does not refer to a value
                        auto Transformer = rtc::make_ref_counted<FFrameTransformer>(this);
                                                                 ^
`

Is this not compatible with 5.0.3 anymore (what a pity if this is true)

Any hint how to fix this?

Cheers Claude
dbaldassi commented 1 year ago

This issue has been solved in the dev branch, we will merge it soon into main

Aeddon commented 1 year ago

thanks, I will check out the dev branch then

Aeddon commented 1 year ago

Can't compile your dev branch either (other errors popup), seems I need to wait for your merge to main.

rweber89 commented 1 year ago

Hi @Aeddon - I have addressed the compile issue ( It compiled on Windows, I do not know about Linux). Please try again.

Aeddon commented 1 year ago

@rweber89 latest dev branch commit compiles now successfully on Linux. Need to check if it's actually also working now. Thanks so far, I will drop a note if all is working fine...

By the way: They Blueprint setup is rather complicated, do you have a demo project somewhere to download? If not: Would be good to have, maybe an example folder inside this github repo would make sense?

rweber89 commented 1 year ago

@Aeddon Yes!

https://github.com/millicast/millicast-player-ue5-example/tree/dev https://github.com/millicast/millicast-publisher-ue5-example

Please note the dev branch on the player example. The Blueprints on it may have some compliation error, I will check them. We are working on making it simpler. The blueprint requirements have already been drastically simplified recently. More of that is in the making.

Aeddon commented 1 year ago

I've setup all as needed according to the docs. I've created a free account on dolby.io, downloaded the special obs version, connected to dolby.io and started streaming (VP9). I can see my stream live with the dolby.io hosted player, when I start the level in UE, I get printed "Making Request" (ok) "Successfully authenticated" (ok) But the screen stays black.

In the output log get:

LogMillicastPlayer: Warning: Could not add video consumer. Object was null

Full log here:

LogMillicastPlayer: Director response : {"status":"success","data":{"wsUrl":"wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5","urls":["wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5"],"jwt":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2ODQ4NDE4NTUsImV4cCI6MTY4NDg0MTkxNSwiaWF0IjoxNjg0ODQxODU1LCJpc3MiOiJodHRwczovL2RpcmVjdG9yLm1pbGxpY2FzdC5jb20iLCJhdWQiOiJNaWxsaWNhc3REaXJlY3RvclJlc291cmNlIiwibWlsbGljYXN0Ijp7InR5cGUiOiJTdWJzY3JpYmUiLCJzdHJlYW1BY2NvdW50SWQiOiJoV2pyVGMiLCJzdHJlYW1OYW1lIjoibXlTdHJlYW1OYW1lIiwic2VydmVySWQiOiI1N2E1MDM4ODNlZjg0OWM4ODA2YzY0NWUwMTkxYzJmNSIsInRyYWNraW5nIj pudWxsLCJhbGxvd2VkSXBBZGRyZXNzZXMiOltdLCJhbGxvd2VkQ291bnRyaWVzIjpbXSwiZGVuaWVkQ291bnRyaWVzIjpbXSwiY3VzdG9tRGF0YSI6eyJpc0RpcmVjdG9yIjp0cnVlLCJyZXF1ZXN0SWQiOiJmMTY4NDRmYS04NmQ0LTRkODYtODZkNC0zODA0OTNiZDY0ODkiLCJ0b2tlbklkIjpudWxsLCJzdWJzY3JpYmVSZXF1aXJlc0F1dGgiOm51bGx9fX0.JtaWVgSt5vnspyu7pCi-zoJjeibrsCmLuPNaFtxfwwY","iceServers":[{"urls":["stun:global.stun.twilio.com:3478"]},{"urls":["turn:global.turn.twilio.com:3478?transport=udp"],"username":"22584f227b117007d444ab37e4fac6dfbbba2822e966837842fe34e77edf2625","credential":"WFbtg3X9/k448EM5sEAR8vpZWb0tr97GyqjVIcjCZfI="},{"urls":["turn:global.turn. twilio.com:3478?transport=tcp"],"username":"22584f227b117007d444ab37e4fac6dfbbba2822e966837842fe34e77edf2625","credential":"WFbtg3X9/k448EM5sEAR8vpZWb0tr97GyqjVIcjCZfI="},{"urls":["turn:global.turn.twilio.com:443?transport=tcp"],"username":"22584f227b117007d444ab37e4fac6dfbbba2822e966837842fe34e77edf2625","credential":"WFbtg3X9/k448EM5sEAR8vpZWb0tr97GyqjVIcjCZfI="}],"streamAccountId":"hWjrTc"}} LogMillicastPlayer: WsUrl : wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5 jwt : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2ODQ4NDE4NTUsImV4cCI6MTY4NDg0MTkxNSwiaWF0IjoxNjg0ODQxODU1LCJpc3MiOiJodHRwczovL2RpcmVjdG9yLm1pbGxpY2FzdC5jb20iLCJhdWQiOiJNaWxsaWNhc3REaXJlY3RvclJlc291cmNlIiwibWlsbGljYXN0Ijp7InR5cGUiOiJTdWJzY3JpYmUiLCJzdHJlYW1BY2NvdW50SWQiOiJoV2pyVGMiLCJzdHJlYW1OYW1lIjoibXlTdHJlYW1OYW1lIiwic2VydmVySWQiOiI1N2E1MDM4ODNlZjg0OWM4ODA2YzY0NWUwMTkxYzJmNSIsInRyYWNraW5nIjpudWxsLCJhbGxvd2VkSXBBZGRyZXNzZXMiOltdLCJhbGxvd2VkQ291bnRyaWVzIjpbXSwiZGVuaWVkQ291bnRyaWVzIjpbXSwiY3VzdG9tRGF0YSI6eyJpc0RpcmVjdG9yIjp0cnVlLCJyZXF1ZXN0SWQiOiJmMTY4NDRmYS04NmQ0LTRkODYtODZkNC0zODA0OTNiZ DY0ODkiLCJ0b2tlbklkIjpudWxsLCJzdWJzY3JpYmVSZXF1aXJlc0F1dGgiOm51bGx9fX0.JtaWVgSt5vnspyu7pCi-zoJjeibrsCmLuPNaFtxfwwY LogBlueprintUserMessages: [NewBlueprint_C_UAID_1A60CEC511444D8501_1574036161] Successfully authenticated LogMillicastPlayer: Verbose: Subscribe LogMillicastPlayer: Verbose: Adding ice server wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5 LogMillicastPlayer: Verbose: Adding ice server wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5 LogMillicastPlayer: Verbose: Adding ice server wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5 LogMillicastPlayer: Verbose: Adding ice server wss://live-ams-1.millicast.com/ws/v2/sub/57a503883ef849c8806c645e0191c2f5 LogMillicastPlayer: Verbose: StartWebSocketConnection LogMillicastPlayer: Millicast WebSocket Connected LogMillicastPlayer: Verbose: SubscribeToMillicast LogMillicastPlayer: Verbose: GetDefaultConfig LogMillicastPlayer: Verbose: Create LogMillicastPlayer: Verbose: Init LogMillicastPlayer: Verbose: CreatePeerConnectionFactory LogMillicastPlayer: Initialize ssl and random LogMillicastPlayer: Creating Signaling thread LogMillicastPlayer: Creating Worker thread LogMillicastPlayer: Creating Networking thread LogMillicastPlayer: Creating audio device module LogMillicastPlayer: Verbose: Create LogMillicastPlayer: Creating Peerconnection factory. Count 1 LogMillicastPlayer: Verbose: RegisterAudioCallback LogMillicastPlayer: Verbose: Creating peerconnection LogMillicastPlayer: VeryVerbose: CreateOffer LogMillicastPlayer: pc.createOffer() | sucess sdp : v=0 o=- 1725538585361732152 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE 0 1 a=msid-semantic: WMS m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126 c=IN IP4 0.0.0.0 a=rtcp:9 IN IP4 0.0.0.0 a=ice-ufrag:84RF a=ice-pwd:v/Zdd+zp58hFKzYRwEuIVDli a=ice-options:trickle renomination a=fingerprint:sha-256 A2:AD:AC:D6:16:1D:7D:61:69:78:D2:54:F0:AE:A1:90:9C:54:28:FC:05:44:23:87:40:75:0C:14:85:65:88:39 a=setup:actpass a=mid:0 a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id a=recvonly a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:110 telephone-event/48000 a=rtpmap:112 telephone-event/32000 a=rtpmap:113 telephone-event/16000 a=rtpmap:126 telephone-event/8000 m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 127 c=IN IP4 0.0.0.0 a=rtcp:9 IN IP4 0.0.0.0 a=ice-ufrag:84RF a=ice-pwd:v/Zdd+zp58hFKzYRwEuIVDli a=ice-options:trickle renomination a=fingerprint:sha-256 A2:AD:AC:D6:16:1D:7D:61:69:78:D2:54:F0:AE:A1:90:9C:54:28:FC:05:44:23:87:40:75:0C:14:85:65:88:39 a=setup:actpass a=mid:1 a=extmap:14 urn:ietf:params:rtp-hdrext:toffset a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:13 urn:3gpp:video-orientation a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07 a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id a=recvonly a=rtcp-mux a=rtcp-rsize a=rtpmap:96 VP8/90000 a=rtcp-fb:96 goog-remb a=rtcp-fb:96 transport-cc a=rtcp-fb:96 ccm fir a=rtcp-fb:96 nack a=rtcp-fb:96 nack pli a=rtpmap:97 rtx/90000 a=fmtp:97 apt=96 a=rtpmap:98 VP9/90000 a=rtcp-fb:98 goog-remb a=rtcp-fb:98 transport-cc a=rtcp-fb:98 ccm fir a=rtcp-fb:98 nack a=rtcp-fb:98 nack pli a=fmtp:98 profile-id=0 a=rtpmap:99 rtx/90000 a=fmtp:99 apt=98 a=rtpmap:100 VP9/90000 a=rtcp-fb:100 goog-remb a=rtcp-fb:100 transport-cc a=rtcp-fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=fmtp:100 profile-id=2 a=rtpmap:101 rtx/90000 a=fmtp:101 apt=100 a=rtpmap:102 red/90000 a=rtpmap:125 rtx/90000 a=fmtp:125 apt=102 a=rtpmap:127 ulpfec/90000 LogMillicastPlayer: Verbose: Signaling state change: kHaveLocalOffer LogMillicastPlayer: pc.setLocalDescription() | sucess LogMillicastPlayer: Send command : view Data : { "type": "cmd", "transId": 629680711, "name": "view", "data": { "streamId": "myStreamName", "sdp": "v=0\r\no=- 1725538585361732152 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:84RF\r\na=ice-pwd:v/Zdd+zp58hFKzYRwEuIVDli\r\na=ice-options:trickle renomination\r\na=fingerprint:sha-256 A2:AD:AC:D6:16:1D:7D:61:69:78:D2:54:F0:AE:A1:90:9C:54:28:FC:05:44:23:87:40:75:0C:14:85:65:88:39\r\na=setup:actpass\r\na=mid:0\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:2 http://www.webrtc.org/experime nts/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=recvonly\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\ r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:112 telephone-event/32000\r\na=rtpmap:113 telephone-event/16000\r\na=rtpmap:126 telephone-event/8000\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 127\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:84RF\r\na=ice-pwd:v/Zdd+zp58hFKzYRwEuIVDli\r\na=ice-options:trickle renomination\r\na=fingerprint:sha-256 A2:AD:AC:D6:16:1D:7D:61:69:78:D2:54:F0:AE:A1:90:9C:54:28:FC:05:44:23:87:40:75:0C:14:85:65:88:39\r\na=setup:actpass\r\na=mid:1\r\na=extmap:14 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:2 http: //www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:13 urn:3gpp:video-orientation\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type\r\na=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing\r\na=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07\r\na=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes :mid\r\na=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:98 VP9/90000\r\na=rtcp-fb:98 goog-remb\r\na=rtcp-fb:98 transport-cc\r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack\r\na=rtcp-fb:98 nack pli\r\na=fmtp:98 profile-id=0\r\na=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=r tpmap:100 VP9/90000\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=fmtp:100 profile-id=2\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=rtpmap:102 red/90000\r\na=rtpmap:125 rtx/90000\r\na=fmtp:125 apt=102\r\na=rtpmap:127 ulpfec/90000\r\n", "events": [ "active", "inactive", "stopped", "vad", "layers", "viewercount", "migrate" ] } } LogMillicastPlayer: Millicast WebSocket new Message : {"type":"response","transId":629680711,"data":{"sdp":"v=0\r\no=- 1684841856321 1 IN IP4 127.0.0.1\r\ns=semantic-sdp\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=ice-lite\r\na=msid-semantic: WMS *\r\na=group:BUNDLE 0 1\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=setup:passive\r\na=mid:0\r\na=msid:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12 audio32\r\na=sendonly\r\na=ice-ufrag:965764febd17 5568\r\na=ice-pwd:56c476a66c26c4a0ba4779440daa3488f42d41da48fda81c\r\na=fingerprint:sha-256 C0:5A:94:96:99:55:C0:1C:66:4C:77:89:C8:F9:BE:FA:B5:B6:65:3A:65:40:2D:6C:D7:73:DD:E7:8D:BC:54:DF\r\na=candidate:1 1 UDP 2130706431 164.90.201.202 47549 typ host\r\na=ssrc:1140622653 cname:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12\r\na=ssrc:1140622653 msid:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12 audio32\r\na=rtcp-mux\r\na=rtcp-rsize\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101\r\na=rtpmap:96 VP8/90000\r\na=rtpmap:97 rtx/90000\r\na=rtpmap:98 VP9/90000\r\na=rtpmap:99 rtx/90000\r\na=rtpmap:100 VP9/90000\r\na=r tpmap:101 rtx/90000\r\na=fmtp:97 apt=96\r\na=fmtp:99 apt=98\r\na=fmtp:98 profile-id=0\r\na=fmtp:101 apt=100\r\na=fmtp:100 profile-id=2\r\na=rtcp-fb:96 goog-remb \r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack \r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 transport-cc \r\na=rtcp-fb:98 goog-remb \r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack \r\na=rtcp-fb:98 nack pli\r\na=rtcp-fb:98 transport-cc \r\na=rtcp-fb:100 goog-remb \r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack \r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 transport-cc \r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\n a=extmap:13 urn:3gpp:video-orientation\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=setup:passive\r\na=mid:1\r\na=msid:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12 video33\r\na=sendonly\r\na=ice-ufrag:965764febd175568\r\na=ice-pwd:56c476a66c26c4a0ba4779440daa3488f42d41da48fda81c\r\na=fingerprint:sha-256 C0 :5A:94:96:99:55:C0:1C:66:4C:77:89:C8:F9:BE:FA:B5:B6:65:3A:65:40:2D:6C:D7:73:DD:E7:8D:BC:54:DF\r\na=candidate:1 1 UDP 2130706431 164.90.201.202 47549 typ host\r\na=ssrc:1545120976 cname:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12\r\na=ssrc:1545120976 msid:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12 video33\r\na=ssrc:1021168211 cname:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12\r\na=ssrc:1021168211 msid:1bd2b5e5-d554-4615-9e89-a1a6f2ca1e12 video33\r\na=ssrc-group:FID 1545120976 1021168211\r\na=rtcp-mux\r\na=rtcp-rsize\r\n","subscriberId":"57a503883ef849c8806c645e0191c2f5","clusterId":"ams-1","streamId":"hWjrTc/myStre amName","streamViewId":"33a6d54d-cfb3-4c70-bf34-71a357c42d48"}} LogMillicastPlayer: Server Id : 57a503883ef849c8806c645e0191c2f5 LogMillicastPlayer: Cluster Id : ams-1 LogMillicastPlayer: Verbose: Signaling state change: kStable LogMillicastPlayer: Verbose: StartPlayout LogMillicastPlayer: Verbose: OnTrack LogMillicastPlayer: OnAudioTrack LogMillicastPlayer: Verbose: OnTrack LogMillicastPlayer: OnVideoTrack LogMillicastPlayer: Set remote description suceeded LogMillicastPlayer: Verbose: Create audio track object LogMillicastPlayer: Verbose: Initialize LogMillicastPlayer: Verbose: Create video track object LogMillicastPlayer: Verbose: Initialize LogMillicastPlayer: Verbose: AddConsumer LogMillicastPlayer: Warning: Could not add video consumer. Object was null LogMillicastPlayer: Millicast WebSocket new Message : {"type":"event","name":"active","data":{"streamId":"hWjrTc/myStreamName","sourceId":null,"tracks":[{"trackId":"audio","media":"audio"},{"trackId":"video","media":"video"}]}} LogMillicastPlayer: Received event : active LogMillicastPlayer: Millicast WebSocket new Message : {"type":"event","name":"viewercount","data":{"viewercount":1}} LogMillicastPlayer: Received event : viewercount LogMillicastPlayer: Millicast WebSocket new Message : {"type":"event","name":"viewercount","data":{"viewercount":2}} LogMillicastPlayer: Received event : viewercount LogMillicastPlayer: Millicast WebSocket new Message : {"type":"event","name":"viewercount","data":{"viewercount":1}} LogMillicastPlayer: Received event : viewercount

Aeddon commented 1 year ago

@Aeddon Yes!

https://github.com/millicast/millicast-player-ue5-example/tree/dev

@rweber89 thanks!

  1. Trouble: the above example was made with 5.1, downgrading is cumbersome. Changing version tag in the .uproject file allowed me to come one step further, then the second trouble kicks in:

  2. It askes me to install full VS Code. I never saw this before... To continue with your example is too risky as I don't want to break my working clang/dotnet setup on my Linux by installing any additional VS stuff.

grafik

Really strange, what for do I need to install VS Code? It's a simple text editor...

Anyway I'm quite sure I've got the setup of the blueprints correct in the example I've built myself. The only thing I did not yet really integrate/investigate is the sound side (as this is not so clear for me in your docs).

Any clue from where the above mentioned

LogMillicastPlayer: Warning: Could not add video consumer. Object was null

could come from?

Aeddon commented 1 year ago

@rweber89

Finally got rid of the VS dependency and was able to load your example. (https://github.com/millicast/millicast-player-ue5-example/tree/dev)

Turned out to cause the same problem: grafik

rweber89 commented 1 year ago

@Aeddon what was the VS Code dependency? As I am not aware of anything in our project that would cause this.

Please pull again from dev on the plugin repo. I have addressed this.

If you are using the MillicastActor from the example, simply add your video consumer to the VideoConsumers array. If you are using your own implementation, please do call RegisterVideoConsumer on the SubscriberComponent, before calling Subscribe.

Aeddon commented 1 year ago

@rweber89

Thank you for your fast reaction! I need to say support here is AAA. Never experienced something like this before. Big Kudos!

The VS Code dependency came from the fact that the .uproject file was in the 5.1 format and obviously contained some stuff that 5.0 didn't know what to do with, so it asked for VS (don't ask me why exactly). Anyway, after I streamlined everything in correct 5.0 (copy&paste from an existing 5.0 project), this VS dialog popup was gone...

Let me investigate your changes now a bit, I will come back here with the results.

Aeddon commented 1 year ago

video works now perfectly.

Thank you once again.

rweber89 commented 1 year ago

@Aeddon You are most welcome. Any issues any time. Just let us know.

I`ll close this now.