ViewTube/SaveTube Test
sebaro
2021-10-29/11:03

First Youtube player
grey_rat
2023-08-07/22:06
Is it possible to add the first YouTube flash player to the script like retro?
https://imgur.com/a/ckl69
https://archive.org/details/adobeflash-player2

grey_rat
2023-08-07/22:07
for old browsers

sebaro
2023-08-08/16:06
I assume this is how to do it:
https://gist.github.com/toddanglin/7267876

grey_rat
2023-08-08/16:59

grey_rat
2023-08-08/18:50

sebaro
2023-08-09/22:15

grey_rat
2023-08-10/09:02
11 installed

sebaro
2023-08-10/11:30
Does flash work with other swf files?

grey_rat
2023-08-11/10:17
https://runettex.clan.su/publ/8-1-0-70
player 2009
this player plays mp4 but without & in links
may need to decompile the swf file of the player

example of other players
https://runettex.clan.su/publ/6

grey_rat
2023-08-11/13:22
http://www.makeavoice.com/jwplayer/mediaplayer-5.10/readme.html
JW Player 5.10 last for flash


Supported file formats.
Supported XML playlist formats.
Complete list of configuration options (for customizing the player).
Supported JavaScript API calls (for JavaScript interaction).
Supported skinning elements (for creating your own graphics).
Roadmap with full changelogs for each version.

Last, the source code of all different versions of the player can be found here. You can click a version and download the ZIP files (the links are at the bottom).
Licensing

The player is licensed under a Creative Commons License. It allows you to use, modify and redistribute the script, but only for non-commercial purposes.

sebaro
2023-08-11/16:45
Try this in a html file:

<div id="mediaplayer">JW Player goes here</div>
<script type="text/javascript" src="http://www.makeavoice.com/jwplayer/mediaplayer-5.10/jwplayer.js"></script>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "http://www.makeavoice.com/jwplayer/mediaplayer-5.10/player.swf",
file: "https://dl.dropboxusercontent.com/s/zwpi44schxt1gt5/HD.mp4"
});
</script>

grey_rat
2023-08-11/17:09
JW Player does not play youtube links
https://rr1---sn-5ua5ouuxaxj-hn9l.googlevideo.com/videoplayback.......

grey_rat
2023-08-11/17:18

grey_rat
2023-08-11/17:31

sebaro
2023-08-11/22:18
In browsers YouTube videos play on youtube.com only.
You have to put the code in a user script:

// ==UserScript==
...
// @require http://www.makeavoice.com/jwplayer/mediaplayer-5.10/jwplayer.js
// @include https://www.youtube.com*
...
// ==/UserScript==

(function() {

var d = document.createElement('div');
d.innerHTML = '<div id="mediaplayer">JW Player goes here</div>';
document.body.appendChild(d);

jwplayer("mediaplayer").setup({
flashplayer: "https://dl.dropboxusercontent.com/s/ugecd3xxel1nkan/player3.swf",
file: "https://dl.dropboxusercontent.com/s/zwpi44schxt1gt5/HD.mp4"
});

})();

Exlude settings
shape
2023-08-10/03:33
Hi, after our last convo I switched from the scripts to add-ons in Firefox, but the add-ons don't seem to have exlude settings. Do these not exist? Is there not a way you can add them in the prefs?

I switched back to the scripts b/c of this as I don't want both VT and ST loading on YouTube (just VT in this case) or certain other sites.

Thanks

sebaro
2023-08-10/11:32
The ST/VT addons don't have settings. Why do you want to use both scripts/addons?

shape
2023-08-16/07:17
Ok. I don't want to use both though, and never did use both at once. I said I switched from scripts to add-ons, but then switched back b/c I couldn’t add sites to the exclusion list. Is it possible to add these settings to the add-ons at some point?

On another note, videos from Brighteon & Rumble are downloading as non-playable m3u8 files using SaveTube+.

sebaro
2023-08-16/11:18
Add-ons don't have an exclude option. I still don't understand why do you need this.

To download adaptive streams (HLS/m3u8) you have to use an external tool like ffmpeg.
Copy the m3u8 link and paste it in the tool, for ffmpeg:
ffmpeg -i m3u8 -c copy video.mp4
Or try youtube-dl/yt-dlp.

shape
2023-08-17/04:41
As I said in my first comment, I use the exclude section to prevent both VT and ST loading on YouTube at the same time (I just want VT in this case) or certain other sites, b/c it’s redundant, unless I’m missing something.

Ok, yes, you mentioned those 2 methods before but I didn’t know m3u8 was adaptive – thanks.

sebaro
2023-08-17/13:40
ViewTube has a download option so no need to install SaveTube too.

shape
2023-08-21/21:38
Right, but aren't there some sites that are supported by ST that aren't by VT? Or are they the exact same just appearing in different locations on the page? Isn't there another benefit to using both? And also between ST+ and VT+?

Is there a link that clearly differentiates all of them? On some sites only ST+ loads and then I need to use the exclude settings. Also, do you need VT for VT+ to work properly, and same w/ ST and ST+?

sebaro
2023-08-22/13:21
VT/ST support the same sites, VT is for playback and download, ST just for download.

VT+ adds support for other sites, see the include in the script's source code:
https://github.com/sebaro/ViewTube/blob/master/viewtubeplus.user.js

ST+ works on any site that has a video in the page source code.

shape
2023-08-25/02:36
Great – thank you. I’m going to try using ST only then as I just need the download function. Do you need to have ST installed in order to use ST+?

sebaro
2023-08-25/08:31
You can use any script you want, they do not depend on each other.

shape
2023-08-25/23:10
Ok, but then I'm not clear on the differences between ST and ST+ based on what you said. If ST+ works for any page that has video in the source code, then what does ST support that ST+ does not?

sebaro
2023-08-26/22:16
ST+ uses a regular expression that matches any video link based on its file extension.
This doesn't work for YouTube or other video sites because for each there's a different way to get the videos. ST uses a specific code for each site, these are listed in the script's source code metadata (@include).

YouTube Layout
Hugh
2023-09-05/14:55
The mobile YouTube site must have changed the page layout slightly as the ViewTube player isn't snug like it should be. The player window size changes around oddly and the volume stats stretch over the right side.

sebaro
2023-09-05/21:43
What device (user agent) do you use?

Hugh
2023-09-06/13:30
Basilisk browser for windows with it's default override of "Mozilla/5.0 (%OS_SLICE% rv:60.0) Gecko/20100101 Firefox/60.0"

I don't think that really matters though because I use the mobile parameters ?app=m&persist_app=1 as mobile is a faster more responsive layout.

sebaro
2023-09-06/21:30
For me it's ok, maybe I didn't get the changes yet.

Hugh
2023-09-07/11:15
It's not always as I described. Sometimes I can see the YT player behind it on the right side as VT shrinks slightly and other times it seems to look OK.

I swear there are two different mobile websites served up as well so who knows what they are up to.

Thanks for checking it out anyway, I'll live with the quirks.

sebaro
2023-09-07/21:19
Maybe clearing cache and cookies helps.