alexmercerind / dart_vlc

Flutter bindings to libVLC.
GNU Lesser General Public License v2.1
510 stars 136 forks source link

insecure network connection #171

Closed abdelaziz-mahdy closed 3 years ago

abdelaziz-mahdy commented 3 years ago
[000001a3a1efc5c0] gnutls tls client error: Certificate verification failure: The certificate is NOT trusted. The certificate chain uses expired certificate. 
[000001a3a1efc5c0] main tls client error: TLS session handshake error
[000001a3a1efc5c0] main tls client error: connection error: No error
[000001a3a1fc0910] access stream error: HTTP connection failure
[000001a3f1240dc0] main input error: Your input can't be opened
[000001a3f1240dc0] main input error: VLC is unable to open the MRL 'https://www143.sbcdnvideo.com/tysxfccjoc66j6cdadurbws3ofvzm3hlq2w5ssmx5vztc7ptcp7gioogockq/ganbare-goemon-episode-101633947421.0.mp4'. Check the log for details.

i dont know if i can set the code to ignore Certificate or not and how it can be set

alexmercerind commented 3 years ago

I'm not even able to access that URL using a browser. What do I do?

abdelaziz-mahdy commented 3 years ago

links expire after 2 hours, but i just tried something and it worked i copied the files from vlc media player to the app and now links work plugins folder and libvlc.dll and libvlccore.dll to '\build\windows\dart_vlc_core_packages\vlc-3.0.9.2'

i did that because the link worked in vlc media player so i thought dll or something got updated

should it be updated on the package?

abdelaziz-mahdy commented 3 years ago

'https://www202.sbcdnvideo.com/tysxfavs2266j6cdaaubrscbfxlyxzg5fbsvkk77rpiu6k37ghlbsabsa24q/yugioh-sevens-episode-10.mp4'

new link if you would like to test on it

alexmercerind commented 3 years ago

@zezo357 Screenshot 2021-10-12 101351

They seem to protect links by allowing for same IP. However, going into Chrome inspector and switching to another device (Pixel 2) allowed me to play it regardless.

I don't think certificate error causes URL to not play. I believe its just a warning.

abdelaziz-mahdy commented 3 years ago

but same link using package dlls gave me error and didnt work while using vlc media player dlls made it work why is that?

alexmercerind commented 3 years ago

@zezo357 it might be that dart_vlc packs an old version of libVLC SDK (for Windows).

abdelaziz-mahdy commented 3 years ago

okay, if it will not cause a problem can the next release have the new verisons?

and for now i will use the ones from the vlc media player to avoid the error for me

alexmercerind commented 3 years ago

@zezo357 yeah, that's best you can do. We internally serve the VLC binary for Windows. See: here. You can download other VLC / libVLC SDK versions here: http://download.videolan.org/vlc/ & update the CMake accordingly. However changing the DLLs manually is best for now.

abdelaziz-mahdy commented 3 years ago

thanks for the links and for your time

Thomas-Sohier commented 2 years ago

Hello, I have this issue too, unfortunately, and i can't change dll in \build\windows\dart_vlc_core_packages\vlc-3.0.9.2 or I have an error at launch after rebuilding the project :

the application was unable to start correctly (0xc00007b). click ok to close the application

If someone could help that would be kind

Thanks for your work 👍