Also the "CastVideos-ios" project seems working fine but this "CastHelloVideo-ios" project is not working as expected.
2021-03-16 04:23:36.417965+0800 CastHelloVideo-swift[579:46484] GoogleCast framework version 4.5.3.16.01
GCKNNetworkUtils.m:223: +[GCKNNetworkUtils getTwoLowerBytesFromNetworkAddress:] - Invalid network address
2021-03-16 04:23:47.743483+0800 CastHelloVideo-swift[579:46484] [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x1010bb200; frame = (0 0; 1024 768); clipsToBounds = YES; opaque = NO; autoresize = RM+BM; tag = 9992; gestureRecognizers = <NSArray: 0x2819a4f00>; layer = <CALayer: 0x28174c560>; contentOffset: {0, 0}; contentSize: {1024, 73}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <GCKUIDeviceConnectionViewController: 0x1010a3a00>>
2021-03-16 04:23:47.745887+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
2021-03-16 04:23:47.746141+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
2021-03-16 04:23:48.305996+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
2021-03-16 04:23:48.306542+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
GCKNNetworkUtils.m:223: +[GCKNNetworkUtils getTwoLowerBytesFromNetworkAddress:] - Invalid network address
2021-03-16 04:23:49.136296+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
2021-03-16 04:23:49.136608+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
GCKDeviceAuthChannel.m:240: -[GCKDeviceAuthChannel canAuthenticateBinaryMessage:checkDeviceCapabilities:] - Received invalid response, auth message has invalid nonce value
GCKCastDeviceConnector.m:926: -[GCKCastDeviceConnector deviceAuthChannel:didFailToFetchRelayAccessTokenWithError:] - Failed to generate a relay access token.
2021-03-16 04:23:51.145521+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
2021-03-16 04:23:51.145919+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
sessionManager didStartSession: <0x100f5c630: GCKCastSession; device = <0x282c04340: GCKDevice; category = com.google.cast.CastDevice, ID = f5810fd7f8d04caa83934139913cdd9f, instance = (null), name = 'EVA-L19-8', address = 192.168.1.8:8009> rawID = f5810fd7f8d04caa83934139913cdd9f, sessionID = 59f22752-85cc-11eb-8000-add45aa10f00, sessionType = MediaSession, sessionState = Active>
Load Video
request 7 didFailWithError Error Domain=com.google.cast.GCKError Code=30 "Media failed to load" UserInfo={NSLocalizedDescription=Media failed to load}
GCKMediaControlChannel.m:1332: -[GCKMediaControlChannel didReceiveTextMessage:] - Received unexpected error: INVALID_REQUEST
GCKMediaQueue.m:546: -[GCKMediaQueue request:didFailWithError:] - error fetching queue item IDs: Error Domain=com.google.cast.GCKError Code=4 "Invalid request" UserInfo={gck_error_reason=INVALID_MEDIA_SESSION_ID, NSLocalizedDescription=Invalid request, gck_custom_data=INVALID_MEDIA_SESSION_ID}
Load Video
request 12 didFailWithError Error Domain=com.google.cast.GCKError Code=30 "Media failed to load" UserInfo={NSLocalizedDescription=Media failed to load}
GCKMediaControlChannel.m:1332: -[GCKMediaControlChannel didReceiveTextMessage:] - Received unexpected error: INVALID_REQUEST
GCKMediaQueue.m:546: -[GCKMediaQueue request:didFailWithError:] - error fetching queue item IDs: Error Domain=com.google.cast.GCKError Code=4 "Invalid request" UserInfo={gck_error_reason=INVALID_MEDIA_SESSION_ID, NSLocalizedDescription=Invalid request, gck_custom_data=INVALID_MEDIA_SESSION_ID}
2021-03-16 04:28:50.478516+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
2021-03-16 04:28:50.479412+0800 CastHelloVideo-swift[579:46484] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted, UIControlStateDisabled and UIControlStateFocused. state = 4 is interpreted as UIControlStateHighlighted.
sessionManager didEndSession: <0x100f5c630: GCKCastSession; device = <0x282c04340: GCKDevice; category = com.google.cast.CastDevice, ID = f5810fd7f8d04caa83934139913cdd9f, instance = (null), name = 'EVA-L19-8', address = 192.168.1.8:8009> rawID = f5810fd7f8d04caa83934139913cdd9f, sessionID = 59f22752-85cc-11eb-8000-add45aa10f00, sessionType = MediaSession, sessionState = None>