|
|
phpBB MODS
|
|
Bishopston.net phpBB MODS forum
|
|
|
|
| View previous topic :: View next topic |
| Author |
Message |
jamie Site Admin Joined: 10 March 2005 Total posts: 27 Gender: Unknown Karma: 1 Karma yesterday, day before: 1, 1
|
Post: #1 (ID: 11736) Posted: Fri Jul 18, 2008 3:08 am Karma this post: (+0 -0) Post subject: Inserting a youtube video |
|
|
[media]hAX6yi60OPY[/media]
Note also, a 3-frame gif image is displayed until the user opens the actual video. Apart from looking good, this means that the instance of the flash-player isn't loaded until the video is played.. On pages with LOTS of videos posted, this makes a big difference, as otherwise, even if the video hasn't been started, each video causes an instance of flash-player to start, which uses loads of memory and slows things down.
Similarly, when the video is stopped, the flash-player instance is unloaded and replaced again by the gif image.
I've also added an option in the profile menu that allows you to set the type of "preview" image that is shown. (on a youtube video, click the 'options' link down the bottom left)
This is mainly for those eeejits still using DACS, as the preview image tends to be around 240K, whilst the single-frame image is about 30K
If you're really fascist, you can set the image to none - in which case you'll get the generic 'click to open' message.
In addition, when posting a youtube video, you can now change the default image type by adding the keywords 'single' or 'none' after the youtube ID. However, this only works when you use the 'media' format for posting videos, such as:
[media]jCnAjel02lM[/media]
[media=jCnAjel02lM]my title[/media]
[media]jCnAjel02lM single[/media]
[media=jCnAjel02lM single]my title[/media]
[media]jCnAjel02lM none[/media]
[media=jCnAjel02lM none]my title[/media]
Also, just pasting a youtube URL directly will cause it to automatically be converted into the above format, such as:
[media]http://www.youtube.com/watch?v=6mTvrWnEWK8[/media]
[media]http://www.youtube.com/watch?v=6mTvrWnEWK8&related=1[/media]
[media=http://www.youtube.com/watch?v=6mTvrWnEWK8&related=1]Look at this[/media]
[media=http://www.youtube.com/watch?v=X72MwJBSRdg]test 1[/media]
[media=http://www.youtube.com/v/X72MwJBSRdg]test 2[/media]
[media=http://www.youtube.com/watch_fullscreen?» fs=1&vq=None&sourceid=yw&video_id=X72MwJBSRdg&l=332&sk=7T9S]test 3[/media]
[media=http://www.youtube.com/swf/l.swf?video_id=X72MwJBSRdg&rel=1&eurl=&iurl=http%3A//» i.ytimg.]test 4[/media]
[media]http://www.youtube.com/watch?v=X72MwJBSRdg[/media]
[media]http://www.youtube.com/v/X72MwJBSRdg[/media]
[media]http://www.youtube.com/watch_fullscreen?» fs=1&vq=None&sourceid=yw&v=X72MwJBSRdg&l=332&sk=7T9S[/media]
[media]http://www.youtube.com/watch_fullscreen?» fs=1&vq=None&sourceid=yw&video_id=X72MwJBSRdg&l=332&sk=7T9S[/media]
[media]http://www.youtube.com/swf/l.swf?video_id=X72MwJBSRdg&rel=1&eurl=&iurl=http%3A//» i.ytimg.[/media]
etc.
Finally, simply pasting a URL of the above format will work, as it will be converted automatically.
Last edited by jamie on Sat Feb 07, 2009 4:23 pm; edited 4 times in total |
|
| Back to top |
|
 |
dan Joined: 02 August 2006 Total posts: 2 Gender: Unknown Karma: 0 Karma yesterday, day before: 0, 0
|
Post: #2 (ID: 11737) Posted: Fri Jul 18, 2008 2:55 pm Karma this post: (+0 -0) Post subject: |
|
|
Edit: ok, so it does find the video id from a full URL - there's my next idea gone! |
|
| Back to top |
|
 |
jamie Site Admin Joined: 10 March 2005 Total posts: 27 Gender: Unknown Karma: 1 Karma yesterday, day before: 1, 1
|
Post: #3 (ID: 11824) Posted: Sat Feb 07, 2009 1:35 pm Karma this post: (+0 -0) Post subject: |
|
|
|
|
| Back to top |
|
 |
jamie Site Admin Joined: 10 March 2005 Total posts: 27 Gender: Unknown Karma: 1 Karma yesterday, day before: 1, 1
|
Post: #4 (ID: 11849) Posted: Sun Jun 28, 2009 8:19 pm Karma this post: (+0 -0) Post subject: |
|
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|
Page generation @ 03:46:55 - time: 0.228s (PHP: 86% - SQL: 14%) - SQL queries: 37
|