Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wicknix

macrumors 68030
Original poster
Jun 4, 2017
2,700
5,399
Wisconsin, USA
We now have a few more options for Leopard, and Snow Leopard for YouTube.
--------------------------------------------------------------------------------------------------------------
IMPORTANT: Leopard users will need QuickTime 7.7 for optimal performance.
Download: http://appldnld.apple.com/QuickTime/041-0741.20110803.fEi4R/QuickTime770Leopard.dmg

Major update to TenFiveTube!
New features in v5 include:

Adjustable user agents : iPhone / iPad / Android / Custom (iPhone is default)
Bookmark ability
Remembers the last video you watched upon launch
Supports tabbed windows (Command + T)
Ability to show/hide tool bar
GreaseMonkey-like scripting (install viewtube and viewtube+ to enable video downloading)
Get the scripts here: http://sebaro.pro/viewtube/
You can enable / disable your scripts via the script icon on the menu bar
It's also a web browser. Enable the toolbar (menu -> view -> show toolbar)
Then menu -> preferences -> advanced -> allow browsing to any URL (otherwise just browses YT by default)
Type in an address and surf :)
....and lots of other little options you can play around with
-------------------------------------
To adjust quality click on the playing video and select the gear icon
To enable full window-mode click on the playing video and click the [ ] box in lower right corner
To enable full screen, menu -> window -> toggle full screen mode
-------------------------------------
Download HERE (roughly 62mb)

New version for Snow Leopard is attached below. V1.1 was added on 10-30-2021

Cheers.

TenFiveTube main window
TFTv5.png


Installing scripts
TFTScript.png


Installed ViewTube script allows downloading of videos
ViewTube.png


Web Browser mode
Browser.png


TenSixTube v1.1 for Snow Leopard (but not as full featured as TenFiveTube)
Screen shot.png


 

Attachments

  • TenFiveTube-SL.zip
    45 KB · Views: 1,595
  • TenSixTube-v1.1.zip
    398 KB · Views: 541
Last edited:
View attachment 749406 So now we have another option on PPC Leopard for YouTube. On my iBook G4, cpu use averages 60% and works well enough for my purposes.

Bugs: Sometimes you have to click the video thumbnail 2 times before it will start playing. Haven't figured that quirk out yet. Also video may glitch for the first 2-5 seconds per clip before smoothing out.

Cheers.

Well done Wicknix! Is this a branch from your PPCBrowser project?

Just a thought, but have you tried adding this code to the WebView's custom class?
Code:
- (BOOL) acceptsFirstMouse: (NSEvent *) theEvent
{
    return YES;
}

That may provide a solution to having to click twice to play (one click to make the window / webView key, then another to respond to the webView's HTML controls).
 
  • Like
Reactions: G4fanboy
Yep, still messing with the browser here and there. It's a big undertaking, so i just poke at it when i have nothing else to do.

Nope, seems i missed that. Again, thanks for the code snippet!

Cheers.
 
Yep, still messing with the browser here and there. It's a big undertaking, so i just poke at it when i have nothing else to do.

Nope, seems i missed that. Again, thanks for the code snippet!

Cheers.

Hey no problem, hope that does the trick! Learning Cocoa is a massive undertaking. Stackoverflow is your friend :)
 
85-95% CPU on my 1.5Ghz 12" and lots of frame skipping.
I see Youtube-dl is in the package - what format are you instructing it to stream and what's used for playback?
 
  • Like
Reactions: AphoticD
CD 1.83Ghz Macbook Pro here. I know this app was made for PPC but still, it uses 70% of my CPU while playing the video at 2 frames per minute.
 
Nice to see more innovation and development for the PPC! I look forward to seeing a more polished product. It already works pretty well on my Quad G5, so when it is improved for G4s I'm sure it would "sing" here. :)
 
  • Like
Reactions: wicknix
what format are you instructing it to stream and what's used for playback?

As this is a tablet useragent-based strategy I expect this to be h.264. I'm not (yet) aware of youtube offering WebM VP8 on its mobile sites.

@wicknix I'm not familliar that much with either WebKit shells or cocoa but, I'm unsure if the double-click sometimes needed to start video playback is a bug. The built-in html5 players from webkit versions close to leopard's system framework all do this in my case(sometimes it's worse).
Just to point a (really) small overlook, the Picture 1.png buttons's X coordinates adjust to the right edge of the window, so resizing it will misplace the buttons. Just changing their autosizing options via interface builder fixes it.

Although it's still under work, I like the concept. Thanks for sharing this.
 
That happens a lot to me with my iBook when I forget to put it back to auto powersaving mode. ahaha.. But for real, if there's a big difference that's somewhat strange.
 
@XaPHER : Thanks for finding the resize issue with the buttons. I hadn't thought about resizing in my testing.

@Dronecatcher : Hmm, strange. For me it plays as well as Roccat with a mobile user agent, and its much smaller and simpler than safari and roccat. There should be no reason it doesn't play similar to those, or better. Currently i can only test on my 1.42ghz iBook as the HD in my PowerMac G5 died. I ordered a new drive, and i should receive it by this weekend. Then i'll be able to do a little more trouble shooting. As for youtube-dl my plan is to incorporate the ability to download videos. Right now it serves no purpose, and i could've left it out of the app to be honest.

@ziggy29 : Thanks. Glad it's working decently for somebody other than myself! :)

@miksat : Yeah i don't think Rosetta ppc emulation was really meant for streaming audio/video.

At any rate, thanks for the input/feedback so far. I work at a slow pace, but i will keep plugging away at it and try to make it more polished, with a few more features.

Cheers.
 
No Tiger support, sorry. Tiger is too old for this to work sadly.

Also updated top post again. Uploaded v1.2 with the ability to change playback modes from 720p/360p/240p. Default is 360p, but if you get massive frame drop try setting it to 240p. All should be smooth. Click the gear icon on the videos screen to switch modes.

Cheers
 
Aww, no 10.4 support?

You can get this by using Safari/Tiger Webkit. Go to the Develop menu (you have to enable that in prefs) and select iPad 3.2.2 in the user agents.
Now when you go to Youtube it'll play in same fashion as this app - unclick the HQ button to reduce quality to 240P.
You can set this user agent as the Safari default in Terminal:

defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (iPad; U; CPU OS 3_2_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B500 Safari/531.21.10\""
[doublepost=1517653901][/doublepost]
No Tiger support, sorry. Tiger is too old for this to work sadly.

Also updated top post again. Uploaded v1.2 with the ability to change playback modes from 720p/360p/240p. Default is 360p, but if you get massive frame drop try setting it to 240p. All should be smooth. Click the gear icon on the videos screen to switch modes.

Cheers

What user agent are you using to allow the Youtube playback prerefences? It's a shame, that at 240P, Youtube is serving up the 180P 3gp file and on my Powerbook is still pushing 80%, in TonVid, the same file uses 18-22% CPU...what on Earth do Youtube do to shovel in all that extra overhead??
[doublepost=1517654912][/doublepost]
What user agent are you using to allow the Youtube playback prerefences?

It's OK, I've got it - iPhone 5 :)
 
  • Like
Reactions: AphoticD
It's a shame, that at 240P, Youtube is serving up the 180P 3gp file and on my Powerbook is still pushing 80%, in TonVid, the same file uses 18-22% CPU...what on Earth do Youtube do to shovel in all that extra overhead?

Does it come down to the decoder software? I haven’t done any digging around, but doesn’t WebKit / WebView use QuickTime for playback? That would account for the CPU overhead. It would be great to see TenFiveTube operate as a wrapper / browser for playback via the most efficient decoder. (Mplayer/CorePlayer?)

@wicknix might be able to find a way to package in the faster decoder option by intercepting the user’s click and forward the clicked URL through to the respective decoder software. Check the WebView delegate methods for catching clicks/URLs.

@Dronecatcher do your Youtube scripts accept an URL for playback? Together you guys might finally create a GUI solution for those scripts.

@wicknix in terms of Tiger support, I recall stumbling across the limitations of loading URLs in a Tiger WebView last year when I was trying to port sample code written for Snow Leopard to a Tiger environment. It was just a matter of supplying a different method for the NSURL loading and required 10.4.11 as a minimum. I’ll see if I can pull up my code for 10.4 which may solve this limitation for you... unless there were bigger pre-Leopard issues.
 
Last edited:
  • Like
Reactions: wicknix
Does it come down to the decoder software?

It's that and/or I think HTML5 is delivering the video - all of it's normal features are there.
I'm not a programmer but clearly all the components are out there to have a player that can dig through the Youtube layers and serve up video from 1080 to 144P which gives effortless playback across all Macs.
 
  • Like
Reactions: AphoticD
@wicknix in terms of Tiger support, I recall stumbling across the limitations of loading URLs in a Tiger WebView last year when I was trying to port sample code written for Snow Leopard to a Tiger environment. It was just a matter of supplying a different method for the NSURL loading and required 10.4.11 as a minimum. I’ll see if I can pull up my code for 10.4 which may solve this limitation for you... unless there were bigger pre-Leopard issues.

I have put together the source for this over at https://github.com/AphoticD/OneWindowBrowser

For Tiger (and Panther+Jaguar), it was a matter of bypassing 10.5's [NSWebView mainFrameURL] convenience accessor and digging into the dataSourceProvider's request URL to get the absoluteString.
 
Original post updated. Added a new tiger and leopard build. Changed the UI to be minimal and less distracting,and fixed the initial need to click the first video twice. Now i'm happy with it and will probably leave it alone other than maybe incorporate youtube-dl someday.

Cheers
 

Attachments

  • TFTube.png
    TFTube.png
    206.3 KB · Views: 656
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.