Know Thyself

Nothing in Excess
 
HomePortalSearchRegisterLog in

Share
 

 Avoiding Lag When Posting in Video Threads

View previous topic View next topic Go down 
AuthorMessage
apaosha
Daeva
apaosha

Gender : Male Virgo Posts : 1827
Join date : 2009-08-24
Age : 33
Location : Ireland

Avoiding Lag When Posting in Video Threads Empty
PostSubject: Avoiding Lag When Posting in Video Threads Avoiding Lag When Posting in Video Threads EmptyFri Jan 05, 2018 7:59 pm

If users use the default Youtube embed link it will cause lag when initially loading a thread with many embedded Youtube videos. To avoid this a different way of embedding Youtube videos has been implemented.

To use the new implementation the users have to enable HTML posting under
PROFILE -> Preferences -> Always allow HTML = YES


To post a video you have to then type

Code:
<div class="youtube-player" data-id="VIDEO_ID"></div>

For example take the ID from the video address  https://www.youtube.com/watch?v=i3dB0qEcG20:

Code:
<div class="youtube-player" data-id="i3dB0qEcG20"></div>

to get this:



Just remember to not use the whole youtube address, only the last letter code after the "=".

A button which will produce the embed code has been added:

[You must be registered and logged in to see this image.]

It will produce the code as seen here when clicked, just replace "xxxxxxxxx" with the yt video's letter code.

_________________
"I do not exhort you to work but to battle; I do not exhort you to peace but to victory. May your work be a battle; may your peace be a victory." -TSZ


Last edited by apaosha on Sat Jan 06, 2018 2:18 pm; edited 3 times in total
Back to top Go down
http://knowthyself.forumotion.net
apaosha
Daeva
apaosha

Gender : Male Virgo Posts : 1827
Join date : 2009-08-24
Age : 33
Location : Ireland

Avoiding Lag When Posting in Video Threads Empty
PostSubject: Re: Avoiding Lag When Posting in Video Threads Avoiding Lag When Posting in Video Threads EmptyFri Jan 05, 2018 8:05 pm

If people have the patience I would also request they go through their old posts and convert them to the new format, so that the existing video threads load quickly.

_________________
"I do not exhort you to work but to battle; I do not exhort you to peace but to victory. May your work be a battle; may your peace be a victory." -TSZ
Back to top Go down
http://knowthyself.forumotion.net
Guest
Guest



Avoiding Lag When Posting in Video Threads Empty
PostSubject: Re: Avoiding Lag When Posting in Video Threads Avoiding Lag When Posting in Video Threads EmptyFri Jan 05, 2018 8:49 pm

For me it only lags when the page is long, when its a fresh video thread with only few postings or a non video thread with few videos I have no problem and then spike to browser freeze with larger threads so maybe its enough to edit these bigger ones only.
Back to top Go down
Slaughtz



Gender : Male Pisces Posts : 2396
Join date : 2012-04-28
Age : 28
Location : A stone.

Avoiding Lag When Posting in Video Threads Empty
PostSubject: Re: Avoiding Lag When Posting in Video Threads Avoiding Lag When Posting in Video Threads EmptyFri Jan 05, 2018 8:55 pm

polishyouth wrote:
For me it only lags when the page is long, when its a fresh video thread with only few postings or a non video thread with few videos I have no problem and then spike to browser freeze with larger threads so maybe its enough to edit these bigger ones only.

I agree, if you're posting a lot of videos or posting in a video oriented thread, it makes sense. If anywhere else, maybe not. Use your discretion - less people will view a thread if it lags too much. The key thing is that now there's a format that can improve it.
Back to top Go down
Anfang

Anfang

Gender : Male Virgo Posts : 3477
Join date : 2013-01-23
Age : 36
Location : CET

Avoiding Lag When Posting in Video Threads Empty
PostSubject: Re: Avoiding Lag When Posting in Video Threads Avoiding Lag When Posting in Video Threads EmptySat Jan 06, 2018 2:34 pm

Tutorial to post light embedded Youtube videos (updated)

This is a Youtube link:
[You must be registered and logged in to see this link.]
The letters and numbers after the "v=" are the so called video ID, in this case it's i3dB0qEcG20 .
Sometimes there is more code after the videoID, only copy up to the first "&" symbol.
You can insert this video ID into this line:

Code:
<div class="youtube-player" data-start="00:00:00" data-description="" data-id="videoID"></div>

and make it look like this:

Code:
<div class="youtube-player" data-start="00:00:00" data-description="" data-id="i3dB0qEcG20"></div>

This will result in this posted Youtube video:

A button has been added to to the Editor which allows you to comfortably insert this line of code template.
You can also add an optional description which will be displayed in the thumbnail and set the time at which you want the video to start playing.


Don't forget:
To be able to use such HTML5 code in your posts you have to allow for it in your own personal user profile on this forum.
Go to your Profile -> Preferences (written in small letters on top of your profile page) and here set Always allow HTML to YES

Update #2:
You can now use a whole youtube link as well, instead of pasting only the videoID part.





Tutorial to embed Bitchute videos

When you post a message on this forum you can see all kind of icons on top of the message field.
One of those icons reads "Bit", when you press it you get this line copied into your message:
Code:
<div class="bitchute"><iframe frameborder="0" src="https://www.bitchute.com/embed/videoID"></iframe></div>

This is an example of bitchute link:
Code:
https://www.bitchute.com/video/O8GIQG1L4pOs/

You take the videoID: O8GIQG1L4pOs
and copy it into the bitchute line where you replace the text "videoID" with your actual videoID:
Code:
<div class="bitchute"><iframe frameborder="0" src="https://www.bitchute.com/embed/O8GIQG1L4pOs"></iframe></div>

Result:
Back to top Go down
Sponsored content




Avoiding Lag When Posting in Video Threads Empty
PostSubject: Re: Avoiding Lag When Posting in Video Threads Avoiding Lag When Posting in Video Threads Empty

Back to top Go down
 
Avoiding Lag When Posting in Video Threads
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Know Thyself :: AGORA-
Jump to: