Ulysses Stuff > Ulysses Release Archives

Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)

<< < (7/19) > >>

pikkip:
uhm it seems to this don't work anymore D= me sad! me dint try it yet! >:(

RynO-SauruS:

--- Quote from: AviZ on January 02, 2012, 04:18:30 PM ---i just installed this, no player box when choosing the song to play and no sound either.

is there a fix for this?

--- End quote ---


--- Quote from: pikkip on January 12, 2012, 07:14:03 AM ---uhm it seems to this don't work anymore D= me sad! me dint try it yet! >:(

--- End quote ---

Hey folks! Sorry, it seems this has yet again been broken by YouTube updates. I'm currently working on this situation. Sorry I took so long to reply.


Tech-savvy people:
The reason this is happening is because of my rather hackish method of playing the videos, which involves embedding YouTube's .swf flash player directly, rather than using their official "embedded player" (embed code). I was doing it this way because it actually bypassed YouTube's restrictions on some videos, that don't allow them to be embedded.

The problem is, it seems that the location of the .swf file (http://s.ytimg.com/yt/swfbin/watch_as3-vflk8NbNX.swf for example) seems to change alot, and when it does, obviously, it breaks my code.
Does anyone have any ideas of how I might be able to achieve this (play videos that have embedding disabled), and it not be broken with YouTube updates? =/

JamminR:
So, this is even more technical than my general capability, but, I'm good with ideas.
What allows the Youtube actual player code to play that 'embedded' won't.
Is it a encrypted code within the player, or is it just some Youtube server expection (POST/GET blah.swf?I_AM_THE_REAL_THING_BABY!).
If not encrypted within the player...can it be faked?

And, on to next idea if a better answer can't be found to your question and my ideas above.
Use RSS feed/embedded player code for most items. The RSS API is prob less likely to change as often.
Find some way to detect (or at worst, teach human using your functions) if the original didn't play due to 'no embed allowed', have second function run that attempts using the 'Youtube' code.
Though it is just as likely to break if/when Youtube updates again, it's less likely to break ALL of this player. :)

RynO-SauruS:
Unfortunately, I haven't the slightest clue what it would take to get the "embedded player" to play videos that have embedding disabled. I suppose it's probably written into the encrypted .swf code to check whether embedding is allowed or not. Because when I play videos by manually embedding the .swf that's used when you play videos on YouTube.com, it doesn't mind whether embedding is enabled or not.

pikkip:
I might got an idea try something like this:

"http://www.youtube.com/watch?v=FEDlSJ-0vr0"

When you use that kind of link... it will use it as something like this:

"<iframe width="560" height="315" src="http://www.youtube.com/embed/FEDlSJ-0vr0?rel=0" frameborder="0" allowfullscreen></iframe>"

also basically where it finds the "http://www.youtube.com/" and uses the other text in another line so it will put in "embed/" and uses that normal youtube code to play the video...

I do not know a lot about this, i am more to e2, HTML5, php, and css3

Hopefully this gave you some ideas ;3

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version