Welcome to Gaia! ::


reinasachiko's Senpai

Dramatic Gentleman

23,715 Points
  • Fan Before It Was Cool 500
  • Nuclear Plant 500
  • Rat Conqueror 500
UPDATE: Good news, folks!! Youtube has reverted back the default players parameter. You can use the normal Youtube again. For this thread will be kept for future reference should this kind of thing happened again.


Just pick one of the method

/*=== Fix stuffs for SINGLE video - simple AS2 ===*/

If you are going to use only single video, simply use &version=2 will fix it up. You also need the external domain of Youtube since using the standard www.youtube.com/v will remove all other parameters other than &autoplay by Gaia system. For this, .ca.youtube.com or hk.youtube.com are recommended since those are using English as default media language. However, the choice may affect video availability and load speed.

Example url:
http://ca.youtube.com/v/VIDEO_ID?autoplay=1&version=2

Usage of &version=2 also affects a lot of video availability especially country and site restriction. So you should check if your video can be played or not by opening the link in new tab.

Firefox will convert the media to HTML5, so you may need &nohtml5=1 in case you have to maintain media appearance. Especially for those using button-bar layout


/*=== Fix stuffs for SINGLE video - simple AS3 - No control bar ===*/
1. Use external Youtube country domain such as ca.youtube.com
2. Use the &video_id=VIDEO_ID or &playlist=VIDEO_ID parameter, the video ID should be same with the actual link

Example media link results

http://ca.youtube.com/v/xyzxyzxyz?video_id=xyzxyzxyz&autoplay=1
http://ca.youtube.com/v/xyzxyzxyz&autoplay=1&playlist=xyzxyzxyz
http://ca.youtube.com/v/bkjaDJNx5xY?nohtml5=1&video_id=bkjaDJNx5xY


Adding &ps=1 or &ps=default allows the player to be paused by clicking the video.


/*=== Fix stuffs for SINGLE and PLAYLIST video - simple AS3 - redirection integrated===*/
This fix is more recommended for PLAYLIST usage. If you only going to post single video then using the previous two are better.

Do not change the red parts in the base link. Alter the &autoplay=0 to &autoplay=1 for autoplay.

Base link for single video
http://hyperurl.co/ym26ae?ssl=1&autoplay=0&video_id=VIDEO-ID
example done link to put in media section
http://hyperurl.co/ym26ae?ssl=1&autoplay=1&video_id=bkjaDJNx5xY

For playlist
http://hyperurl.co/ym26ae?ssl=1&autoplay=0&list=PLAYLIST-ID
example done link to put in media section
http://hyperurl.co/ym26ae?ssl=1&autoplay=1&list=PLinxbYwtfyBgLvwwTws_1oPvsFu_GWbrH

*Q: Why hyperurl.co used? Why not using tiny.url or bit.ly or tiny.cc or etc?
A: Because hyperurl allows for multiple url parameter to pass on the redirection. While bit.ly and tiny.cc do not pass any url parameters at all. Second best is Tiny.url only allows for a single url parameter which already used by ?ssl=1 parameter. If you have any other suggestion(s), just post it and we gonna test it.


/*=== Fix stuffs for SINGLE and PLAYLIST video - advanced AS3===*/
Below only for those who are going for technical purpose. For common profile usage, use above suggestion is faster and easier.
==1st part==
Spoiler below contains instruction how to obtain the as3.swf file. You can skip ahead this part if you are going to use provided .swf file link in the second part instead.

First you need to obtain the Youtube AS3 player swf file. To get this file, just visit a random video in Youtube, get the video's iframe src URL thru the "SHARE" option > "EMBED" > Copy the whole iframe code then get the link.

Usually, you would get something like this, open in new tab the bolded part
Quote:
&iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID?list=XXXXXXXXX" frameborder="0" allowfullscreen&&/iframe&


On the new tab, open the source page; shortcut is CTRL + U or add command "view-source: ...." to behind the of the address. Example source page link
view-source:https://www.youtube.com/embed/jNQXAC9IVRw


In the source page, find keyword "watch_as3.swf" (CTRL+F) which usually results in something like this
Quote:
"url":"https://s.ytimg.com ... /player-xxxxxxxx/watch_as3.swf","min_version":"8.0.0"

Copy the bolded part. The XXXXXX part is random player ID. With this, you have obtained your media player base link.

Usually in the links also mixed backslahes. Remove all the backslash or replace them into "/", example it becomes:
https://s.ytimg.com/yts/swfbin/player-xxxxxxxx/watch_as3.swf

OR

https://s.ytimg.com//yts//swfbin//player-xxxxxxxx//watch_as3.swf
You can test the link by opening the swf file in new tab. If the player controls shows up, you got the correct base player link.

Add parameter ?ssl=1 by the end of url to validate the secure protocol needed.

This link is not usable yet for Gaia however, so copy the link into notepad or something alike for further steps.

*PS: actually you can just copy-paste-enter the swf link into your browser bar, the browser will do the conversion job for you.

==2nd part==
This part below will explain on how to build the actual link used for Gaia online media section

Example of made link, pick one to use:
https://s.ytimg.com/yts/swfbin/player-vfl9oL11e/watch_as3.swf?ssl=1
https://s.ytimg.com/yts/swfbin/player-vfl8wupOb/watch_as3.swf?ssl=1
https://s.ytimg.com/yts/swfbin/player-vflT8b4D4/watch_as3.swf?ssl=1

Note the base link above might get deleted by Youtube in future, should all the link is dead, follow the previous steps to obtain your own base link. Expectation live time of each link is 3 to 6 months.

FOR SINGLE VIDEO; use &video_id=VIDEO_ID parameter, example the video address is:
https://www.youtube.com/watch?v=PEcvstuKOa0
Becomes:
https://s.ytimg.com//yts//swfbin//player-vfl9oL11e//watch_as3.swf?ssl=1&video_id=PEcvstuKOa0

FOR PLAYLIST; use &list=PLAYLIST_ID parameter, example the playlist page is
https://www.youtube.com/playlist?list=PLinxbYwtfyBgLvwwTws_1oPvsFu_GWbrH
Becomes:
https://s.ytimg.com//yts//swfbin//player-vfl9oL11e//watch_as3.swf?ssl=1&list=PLinxbYwtfyBgLvwwTws_1oPvsFu_GWbrH

Test first whether the links works or not by opening in new tab. If the player can run the video then follow next step which is customizing and converting the url into tiny.url or any shortened url.

You can customize the url to add autoplay, autohide or such any other AS3 player parameters like usual, for example:

https://s.ytimg.com//yts//swfbin//player-vfl9oL11e//watch_as3.swf?ssl=1&video_id=PEcvstuKOa0&autoplay=1&autohide=0&modestbranding=1

Due to the usage of https:// the link can not be used directly in Gaia online. Instead, the workaround is by redirecting the media link using tiny.url , bit.ly or some kind of url redirection service without ads; Redirection with ads or intermediate page such as adf.ly will not work for this case.

Example from the customized link above is http://tinyurl.com/h2gqcnb
This link is what you put into your profile media section.

*PS: Due to usage of direct swf file, Firefox browser will not convert it into HTML5 player so &nohtml5=1 parameter is not needed.



==============
That is all about the tutorial. Remember, this is not intended for lazy person.

Fallen Trickster

16,065 Points
  • Citizen 200
  • Market Browser 100
  • Signature Look 250
thanx a lot for the tutorial! this is seriously helpful! whee

Skilled Genius

People need to not use a workaround because it could very well break as well.

People need to advocate that Gaia needs to migrate to the HTML5, iframe API.

reinasachiko's Senpai

Dramatic Gentleman

23,715 Points
  • Fan Before It Was Cool 500
  • Nuclear Plant 500
  • Rat Conqueror 500
Knight Yoshi
People need to not use a workaround because it could very well break as well.

People need to advocate that Gaia needs to migrate to the HTML5, iframe API.
Rather, people are going to need both.

Even if you can get like 10.000 users to petition that, are you sure Gaia developer gonna do the update right away in a week or month? Heck, we already asking for this since the time soundcloud gone, no? Even profile system never updated and many bugs never resolved such as the wish+equipped list popup bug, background CSS breaking up, webkit compatibility, spoiler in about-me / custom panels has no close detection like in comment panel, the useless playlist (and badge) never removed despite the related feature does not exist or gone already.

Look, even the forum section already used iframe for Youtube.

This thing is like when a country (Gaia site) got hit by force majeure (Youtube player removal); mine is like disaster relief team, yours is like the "rebuild the stuffs" team.

Honestly, I keep thinking you and some others should apply to Gaia as their web developer team. Because you are acknowledged in website programming and also active right in the scene.

Ace Bachelor

▄▄▄▄▄▄▄▄▄▄▄▄

          вєαя &
emotion_drool this will have to do until I can find something better / gaia does something.
Thanks!


        ℓєαтнєя ρяι∂є

Single Bunny

9,100 Points
  • Expert Skill 150
  • Divorced 100
  • Bunny Spotter 50
Fredy-san

❥ Thank you so much for doing these tutorials
and giving me the link to this thread
I followed all of the steps above for Playlist
I even tried clicking on the example you provided to see if it was something I had done incorrectly
and it seems that playlist are not working with this given method
the single video worked fine

Have you discovered any new information?

Hilarious Genius

This helped!

reinasachiko's Senpai

Dramatic Gentleman

23,715 Points
  • Fan Before It Was Cool 500
  • Nuclear Plant 500
  • Rat Conqueror 500
Artistically Alice
Fredy-san

❥ Thank you so much for doing these tutorials
and giving me the link to this thread
I followed all of the steps above for Playlist
I even tried clicking on the example you provided to see if it was something I had done incorrectly
and it seems that playlist are not working with this given method
the single video worked fine

Have you discovered any new information?
No new information.

Are you sure you have followed all the steps to make playlist correctly?
Show me the tiny.url or any kind of redirect url you've made for your media section.

Single Bunny

9,100 Points
  • Expert Skill 150
  • Divorced 100
  • Bunny Spotter 50
Fredy-san
Artistically Alice
Fredy-san

❥ Thank you so much for doing these tutorials
and giving me the link to this thread
I followed all of the steps above for Playlist
I even tried clicking on the example you provided to see if it was something I had done incorrectly
and it seems that playlist are not working with this given method
the single video worked fine

Have you discovered any new information?
No new information.

Are you sure you have followed all the steps to make playlist correctly?
Show me the tiny.url or any kind of redirect url you've made for your media section.

❥ Long URL
https://s.ytimg.com//yts//swfbin//player-vfl-TYJwj//watch_as3.swf?ssl=1&list=PLbBF8Y8VTon4bxNMX4I45aTqvhN7SfIl0&autoplay=1

Short URL
http://tinyurl.com/hf9z6aw

After the 1st video the rest of them don't work at all

Adventuring Combatant

7,475 Points
  • Expert Skill 150
  • Treasure Hunter 100
  • Ultimate Player 200
holy s**t that looked messy.

reinasachiko's Senpai

Dramatic Gentleman

23,715 Points
  • Fan Before It Was Cool 500
  • Nuclear Plant 500
  • Rat Conqueror 500
Artistically Alice
Fredy-san
Artistically Alice
Fredy-san

❥ Thank you so much for doing these tutorials
and giving me the link to this thread
I followed all of the steps above for Playlist
I even tried clicking on the example you provided to see if it was something I had done incorrectly
and it seems that playlist are not working with this given method
the single video worked fine

Have you discovered any new information?
No new information.

Are you sure you have followed all the steps to make playlist correctly?
Show me the tiny.url or any kind of redirect url you've made for your media section.

❥ Long URL
https://s.ytimg.com//yts//swfbin//player-vfl-TYJwj//watch_as3.swf?ssl=1&list=PLbBF8Y8VTon4bxNMX4I45aTqvhN7SfIl0&autoplay=1

Short URL
http://tinyurl.com/hf9z6aw

After the 1st video the rest of them don't work at all
Your link is correct but all the other 6 videos you had after the first videos contain VEVO or UMG restriction. Practically, only the first video can be played.

Try open your playlist embed in new tab here:
https://www.youtube.com/embed/videoseries?list=PLbBF8Y8VTon4bxNMX4I45aTqvhN7SfIl0

and see if you can play the rest of the videos after the first one.

Single Bunny

9,100 Points
  • Expert Skill 150
  • Divorced 100
  • Bunny Spotter 50
Fredy-san
Artistically Alice
Fredy-san
Artistically Alice
Fredy-san

❥ Thank you so much for doing these tutorials
and giving me the link to this thread
I followed all of the steps above for Playlist
I even tried clicking on the example you provided to see if it was something I had done incorrectly
and it seems that playlist are not working with this given method
the single video worked fine

Have you discovered any new information?
No new information.

Are you sure you have followed all the steps to make playlist correctly?
Show me the tiny.url or any kind of redirect url you've made for your media section.

❥ Long URL
https://s.ytimg.com//yts//swfbin//player-vfl-TYJwj//watch_as3.swf?ssl=1&list=PLbBF8Y8VTon4bxNMX4I45aTqvhN7SfIl0&autoplay=1

Short URL
http://tinyurl.com/hf9z6aw

After the 1st video the rest of them don't work at all
Your link is correct but all the other 6 videos you had after the first videos contain VEVO or UMG restriction. Practically, only the first video can be played.

Try open your playlist embed in new tab here:
https://www.youtube.com/embed/videoseries?list=PLbBF8Y8VTon4bxNMX4I45aTqvhN7SfIl0

and see if you can play the rest of the videos after the first one.

❥ They will only stop and tell me what is wrong with each video
they don't actually play
One says VEVO
three say UMG
the others say WMG and SME
How am I suppose to tell the difference when making my playlist?

Battle-ready Warrior

ok.. First I'm not very smart when it comes to stuff like this. I have a free profile. I'm trying to add a song and have it auto play.

http://www.youtube.com/v/TX2tOt0b98k?autoplay=1


But nothing shows. What am I don't wrong?

Single Bunny

9,100 Points
  • Expert Skill 150
  • Divorced 100
  • Bunny Spotter 50
Surasa Wata
ok.. First I'm not very smart when it comes to stuff like this. I have a free profile. I'm trying to add a song and have it auto play.

http://www.youtube.com/v/TX2tOt0b98k?autoplay=1


But nothing shows. What am I don't wrong?


❥ That's the old coding

https://s.ytimg.com/yts/swfbin/player-vfl9oL11e/watch_as3.swf?ssl=1&video_id=TX2tOt0b98k&autoplay=1

This seems to work

Edit: that link is correct but you will have to find another video
You seem to be having the same issue as me
this video is SME and cannot be played outside of youtube

Battle-ready Warrior

Artistically Alice
Surasa Wata
ok.. First I'm not very smart when it comes to stuff like this. I have a free profile. I'm trying to add a song and have it auto play.

http://www.youtube.com/v/TX2tOt0b98k?autoplay=1


But nothing shows. What am I don't wrong?


❥ That's the old coding

https://s.ytimg.com/yts/swfbin/player-vfl9oL11e/watch_as3.swf?ssl=1&video_id=TX2tOt0b98k&autoplay=1

This seems to work

Edit: that link is correct but you will have to find another video
You seem to be having the same issue as me
this video is SME and cannot be played outside of youtube


Sme?

Quick Reply

Submit
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum
//
//

Join Now

// //

Have an account? Login Now!

//
//