andy-portmen / open-in-vlc

a browser extension to send media links to VLC media player
https://webextension.org/listing/open-in-vlc.html
Mozilla Public License 2.0
117 stars 56 forks source link

I discovered the unique rare secret all over the world to solve all problems and send without message error complicated videos like those coming from the vidmoly platform and playback complex streaming videos in vlc media player but....fixes are needed #50

Open trimechee opened 4 months ago

trimechee commented 4 months ago

Hello, the new awesome version of our beloved Open-in-vlc works with many sites, my concern is that I like to use one or 2 streaming platforms which offer standard 480p video quality, Open-in-vlc worked with all the media players on this streaming site but recently it no longer works with the first 2 media players which offer standard quality needed because my sister uses a lot of HDMI and wifi may become weak, ..... so I discovered a sensational amazing secret which allowed me to solve this problem by watching more than 20 videos of vidmoly platform without problems directly in vlc player while it was impossible to watch video in vlc or potplayer with the classic method:

my secret is to playback the video from the first video player on this site, for example:

https://v5.voiranime.com/anime/tokyo-revengers-3/tokyo-revengers-3-01-vostfr/

I pause the video then I open "chrome://media-internals/", I look for the box : "kFrameUrl" and I open the video in a new window with this new link the real original link:

https://vidmoly.to/embed-a1jgasjjka57.html

then I playback the video and I choose an m3u8 link detected by Open-in-vlc and I choose open with vlc and it works! I was able to watch several videos from this streaming platform with VLC whereas it was impossible with the classic method!

but the problem after watching dozens of video streaming episodes of vidmolly, when I open the original video embed:

https://vidmoly.to/embed-a1jgasjjka57.html

I receive a warning I cannot playback the video i.e. the original link of the video so it is impossible for Open-in-vlc to detect the m3u8 link......I try again after hours of inactivity and restarting my router and it works again, I can playback the video of the kFrameUrl then I try again and the video kFrameUrl is blocked again so it is impossible to detect the m3u8 link and send it to vlc......

I also found a discussion where it talks about making a web extension for SMPplayer to playback videos directly in SMPlayer and a developer explained :

"I can help with that. Iv been using my custom extension to accomplish exactly this for a couple of years now. The way I implemented mine is by registering a custom URI in Windows (similar mechanism in Linux https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler)

[HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet1] @="Magnet URI" "URLProtocol"="" "Content Type"="application/x-magnet"

[HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet1\shell] @="open"

[HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet1\shell\open]

[HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet1\shell\open\command] @=""c:\whatever\whatever.bat" "%1"" Yes, I just copied how Torrent client was doing it :)

Then in the browser extension you simply open "magnet1:https://www.youtube.com/watch?v=YlP4uNlrbHA" and this triggers your whatever.bat with https://www.youtube.com/watch?v=YlP4uNlrbHA as a parameter.

SMPlayer really needs https://sourceforge.net/p/smplayer/feature-requests/742/ At the very least we need a way of passing the -referrer header. A lot of video content on the web won't play without it. Ideally smplayer would just pass all the parameters it doesn't recognize to underlying player (mpv/mplayer)"

other developers say:

"SMPlayer supports the options #EXTVLCOPT:http-referrer and #EXTVLCOPT:http-user-agent in m3u files to pass the referrer and user agent.

.......I looked at some more in the source code and found a hacky workaround that almost works for me. I can use sed.exe to edit smplayer.ini: mplayer_additional_options="" every single time before starting smplayer.exe :o) Sadly this only works once, smplayer doesn't reread smplayer.ini every time, even if timestamp updated. Edit: hmm, I could manually kill smplayer.exe every time, yes that would work :P As you can tell Im trying all the lazy solutions first :)"

https://sourceforge.net/p/smplayer/feature-requests/742/

https://github.com/smplayer-dev/smplayer/discussions/198

Perhaps these discoveries will help our beloved Open-in-vlc to resolve certain problems with certain streaming websites like the vidmoly platform please, thank you very much !