Page 1 of 1

[Bug Report]Can't play Youtube file

Posted: 08 Oct 2016 06:31
by MidnightCoder
For the youtube urls that VLC 2.2.4 on OS X can play, VLCKit can't play. I saw the following in the output console:
2016-10-07 21:27:51.412910 App[13086:868188] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-07 21:27:51.413454 App[13086:868188] [] sa_dst_src_lookup send failed: [65] No route to host
2016-10-07 21:27:51.414426 App[13086:868188] [] nw_host_stats_add_src received non-critical error for SRC_ADDED: [2] No such file or directory
2016-10-07 21:27:51.414895 App[13086:868188] [] sa_dst_compare_rfc6724 Rule 1, prefer d1, d2 is not routable
2016-10-07 21:27:51.415383 App[13086:868188] [] sa_dst_compare_internal 172.217.4.142:443@0 > 2607:f8b0:4007:808::200e.443@0
2016-10-07 21:27:52.259880 App[13086:868206] [] sa_dst_compare_rfc6724 Rule 1, prefer d1, d2 is not routable
2016-10-07 21:27:52.260349 App[13086:868206] [] sa_dst_compare_internal 172.217.4.142:443@0 > 2607:f8b0:4007:808::200e.443@0
State changed to Stopped <-- (logged by my app: the VLCMediaPlayer instance changed its state to "stopped.")

Re: [Bug Report]Can't play Youtube file

Posted: 09 Oct 2016 14:22
by ssbmaccom
Are you sure you configured AppleTransportSecurity correctly?
Either to allow all insecure connections or by defining a list of dedicated servers that allow insecure connections. The latter one can be quite tricky and it is helpful to enable the CFNetworking logs, which is documented by Apple - somewhere. The log shows all servers/domain that are connected and which are refused by AppTransportSecurity.

Re: [Bug Report]Can't play Youtube file

Posted: 09 Oct 2016 15:33
by dfuhrmann
Youtube URLs are played with the help of a lua script in VLC. I think, lua is not part of VLCKit yet (maybe I'm wrong, but this would be the most likely explanation).

This should have nothing to do with app transport security, because most of VLCs network code is not using apples HTTP Helpers anyhow.