MacResource
Any way to force Flash video to play using QuickTime? - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: Any way to force Flash video to play using QuickTime? (/showthread.php?tid=91998)

Pages: 1 2 3 4


Re: Any way to force Flash video to play using QuickTime? - Winston - 01-29-2010

Article Accelerator wrote:
[quote=Winston]
Is there a way to force Flash video to play using QuickTime in Safari?

Place a link in your Bookmarks Bar and associate this javascript with it:

j‌avascriptSadfunction%20()%20{var%20video_id%20=%20null;var%20video_hash%20=%20null;var%20video_player%20=%20document.getElementById(%27movie_player%27);if%20(video_player)%20{var%20flash_variables=video_player.attributes.getNamedItem(%27flashvars%27);if%20(flash_variables)%20{var%20flash_values=flash_variables.value;if%20(flash_values)%20{var%20video_id_match=flash_values.match(/video_id=([^(\&|$)]*)/);if%20(video_id_match!=null)%20video_id=video_id_match[1];var%20video_hash_match=flash_values.match(/t=([^(\&|$)]*)/);if%20(video_hash_match!=null)%20video_hash=video_hash_match[1];}}}if%20(video_id==null%20||%20video_hash==null)%20{var%20args=unsafeWindow.swfArgs;if%20(args)%20{video_id=args[%27video_id%27];video_hash=args[%27t%27];}}if%20(video_id==null%20||%20video_hash==null)%20return;var%20yt_mp4_path%20=%27http://www.youtube.com/get_video?fmt=18&video_id=%27+video_id+%27&t=%27+video_hash;var%20div_embed=document.getElementById(%27watch-player-div%27);if%20(div_embed)%20{div_embed.innerHTML=%27%3Cembed%20src=\%27%27+yt_mp4_path+%27\%27%20type=%22video/mp4%22%20width=640%20height=500%20scale=\%27aspect\%27%3E%3C/embed%3E%27;}})();

It will work for YouTube videos and possibly others.
I think I already have something like that, called QTYouTube:
http://www.joeyhagedorn.com/2008/04/16/youtube-in-mp4-via-quicktime-plugin

Is this essentially the same thing?

Also, forgive my ignorance, but I don't understand how to put a link in the bookmarks bar and associate a JavaScript with it (although that's obviously what the Joey Hagedorn thing is).


Thanks.

- Winston

p.s. I can't currently check how well QTYouTube works because the QuickTime plugin for Safari is not working. I'd forgotten that I had it.


Re: Any way to force Flash video to play using QuickTime? - Winston - 01-29-2010

FYI, QTYouTube will not load QuickTime when YouTube is set to use the HTML 5 beta.

http://www.youtube.com/html5


- Winston


Re: Any way to force Flash video to play using QuickTime? - smk - 01-29-2010

ClickToFlash


Blocks annoying flash ads and gives you the option of using QT to play youtube videos


Re: Any way to force Flash video to play using QuickTime? - M A V I C - 01-29-2010

Winston wrote:
M A V I C -

I don't understand your point. In one of the other threads I cited a random YouTube video which will not play properly in Safari via Flash, but plays perfectly when downloaded. (This is true of all YouTube videos on my computer, so it does not really matter which one I chose.)

Would the downloaded video be different in some way from the one Safari tries to play? If not, then you need to accept that what I've said is true. If you can't duplicate it because your computer can handle Flash better, that doesn't mean the problem does not exist for me.

Am I missing something?


- Winston

How are you downloading the videos from YouTube? Depending on how you do that, you get a different file that what's played in the browser. The way AA is doing it, he's getting a different file, thus the comparison is not accurate.


Re: Any way to force Flash video to play using QuickTime? - Winston - 01-29-2010

I download videos from YouTube by double clicking on the file's link in Safari's Activity window. Shouldn't this be the exact file Safari is playing?

- W


Re: Any way to force Flash video to play using QuickTime? - Winston - 01-29-2010

smk wrote:
ClickToFlash


Blocks annoying flash ads and gives you the option of using QT to play youtube videos

I am using ClickToFlash, and have had it set to use h.264 videos on YouTube. However, it is not using QuickTime to play these, I think it is still using Flash. Reasons:
- If I don't have YouTube whitelisted in ClickToFlash preferences ClickToFlash still blocks h.264 video.
- The QuickTime Plugin in my Safari is broken. I can't play any QT video in Safari on any web site. I can play YouTube's h.264 videos (as well as Flash videos). They just play very poorly.

I don't see any option in ClickToFlash to specifically enable QuickTime playback.


- W


Re: Any way to force Flash video to play using QuickTime? - M A V I C - 01-29-2010

Winston wrote:
I download videos from YouTube by double clicking on the file's link in Safari's Activity window. Shouldn't this be the exact file Safari is playing?

- W

You also said "set to use h.264 videos on YouTube" - For the example you gave me, it's FLV1. If you are able to open this in QT it's not the Flash version you're downloading.

I don't really know how ClickToFlash works with YouTube and all this so I'm not sure what to say as far as troubleshooting that.


Re: Any way to force Flash video to play using QuickTime? - Winston - 01-29-2010

M A V I C wrote:
You also said "set to use h.264 videos on YouTube" - For the example you gave me, it's FLV1. If you are able to open this in QT it's not the Flash version you're downloading.

My QuickTime Player is able to play YouTube videos which have a .flv extension. I can download these the same way from the Activity window in Safari if I set ClickToFlash not to use h.264.

If a file downloads with a .flv extension isn't it a Flash file?


- W


Re: Any way to force Flash video to play using QuickTime? - deckeda - 01-29-2010

Winston wrote:
My QuickTime Player is able to play YouTube videos which have a .flv extension. I can download these the same way from the Activity window in Safari if I set ClickToFlash not to use h.264.

If a file downloads with a .flv extension isn't it a Flash file?

- W

What you describe sounds as if you have Perian installed. Yes? Quicktime Player can't open .flv files otherwise, AFAIK.


Re: Any way to force Flash video to play using QuickTime? - Article Accelerator - 01-29-2010

Winston wrote:
I think I already have something like that, called QTYouTube:
http://www.joeyhagedorn.com/2008/04/16/youtube-in-mp4-via-quicktime-plugin

Is this essentially the same thing?

It is the same thing. I had forgotten where I obtained it from.

Also, forgive my ignorance, but I don't understand how to put a link in the bookmarks bar and associate a JavaScript with it (although that's obviously what the Joey Hagedorn thing is).

Open the Bookmarks page in Safari and create a new bookmark in the Bookmarks Bar section. Enter a name for the bookmark in the first column and paste that javascript code into the third column.