[Bug Report]Can't play Youtube file

iOS, iPad, iPhone, tvOS specific usage questions
MidnightCoder
Blank Cone
Blank Cone
Posts: 82
Joined: 08 Aug 2008 06:04

[Bug Report]Can't play Youtube file

Postby MidnightCoder » 08 Oct 2016 06:31

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

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

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

Postby ssbmaccom » 09 Oct 2016 14:22

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.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

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

Postby dfuhrmann » 09 Oct 2016 15:33

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.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 29 guests