vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   AnyMedia BBCode for 3.5.x (https://vborg.vbsupport.ru/showthread.php?t=106239)

smdani 03-22-2006 04:47 AM

Quote:

Originally Posted by Elmer
how do you add youtube and vsocial videos? I tryed puting them like this:
[media]http://youtube.com/watch?v=30BSjBOczQ8[/media] and the same thing for vsocial videos but they don't play. The player just displays in blak. It only works with google videos and I don't know what is wrong...

It's there any special way of adding youtube or vsocial videos?

same problem here

and one more:
the flvplayer.swf is not working for me.
I test it without vbulletin, in a simple html page to certify the problem, with something like this flvplayer.swf?file=video.flv (and the rest of the code) and with the flvplayer.swf my flv don?t play, only black screen is shown, and with other one flv player it shows fine.
Here the player that works http://tintachina.com/video/Player.zip

I?m using the latest version of the anymedia plugin

Thanks for the hack and for the updates

mawby 03-22-2006 07:15 AM

Hi, with regards to the google video, I too can not get this working. My google video is at http://video.google.com/videoplay?do...25124823019531, and having a look around the code made me use the following media tag as it didn't recognise the google url as a video...

PHP Code:

[media=400,326,true,ggv]http://video.google.com/videoplay?docid=-4329325124823019531[/media] 

This didn't work, but having thought about it it's not surprising really! On the google video page is a "Put on site" section which gives you the html code needed to embed the video in a web site. I took just the part within the src="" tag and put that into the player instead. It still didn't work due to the URL being encoded, so I then used http://www.us-webmasters.com/Decode-URLs/ to decode the URL and ended up with...

PHP Code:

[media=400,326,true,ggv]http://video.google.com/googleplayer.swf?videoUrl=http://vp.video.google.com/videodownload?version=0&secureurl=mwAAAG43hxnCm2hXrse2hjyuqYx3aARf7aOVUlQ51SMLUbU1Wyr7Ld2xvoqmw7_vjrfbnREph9FeB-mk8IqTz8TeR_MYu6BcsAaps-IQE-6MrVrWVuSpsB166j0f4AJOB9_x5DvATtWsXSCRBa625yt3nmz4YnYlgdlopfhVmcvHR7giUCav4-O0X-V2sJZOIfdwGoCGW7uUhWtwRRon61nzoMc&sigh=xsuFWW10GbWGHuXPtzoblb8R_08&begin=0&len=98397&docid=4965397551823343996&thumbnailUrl=http://video.google.com/ThumbnailServer?contentid=d4cc92d2f8162f40&second=5&itag=w320&urlcreated=1143017597&sigh=G3fkssZqUCxZJ6PpcH80FmzLfTQ&playerId=4965397551823343996[/media] 

Now this almost works. The video player is happy that it knows the type, but if you click the play button it pops up a message saying "Buffering" and goes no further.

I'm kind of just using trail and error here to get it working but hoped the above might point someone who knows what they are doing in the right direction of getting this working properly.

Would it be easier to add the google video embed tags to the anymedia.js script and display them that way? For reference, the google embed tag is as follows...

PHP Code:

<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src=" " allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" wmode="window" salign="TL"  FlashVars="playerMode=embedded"> </embed

(Note that I have left the src="" parameter blank for ease of reading, but it would be the same as that between the [media] tags in the above example.

mawby 03-22-2006 07:16 AM

Quote:

Originally Posted by Elmer
The player just displays in blak. It only works with google videos and I don't know what is wrong...

I just spotted that. Do you have google videos working? If so how did you do it?

smdani 03-22-2006 02:04 PM

I do the same you say, copy the url in the scr from the code that google gives, and it works. (with no decoding)

Make sure that the “Number of Characters Before Wrapping Text” is set to ‘0’ in your adminCP in one of the vbulletin showthread options. If it’s set to another number it will break your google url that is very long and it’ll not play

Crist it would be great that the “Number of Characters Before Wrapping Text” not would to be disabled for google video to work, as it is a useful option to prevent posts going out of the screen

mawby 03-22-2006 08:09 PM

You were right, the “Number of Characters Before Wrapping Text” setting did cause the long google url to have spaces in it. I have set this to zero and the URLs are now preserved.

However, if I just enter the google URL I get an unsupported type error. If I force the type using the above [media=....] tag then when I press play it displays "Buffering" and the play button changes back to the play arrow straight away (normally pressing play turns the play button into a pause button). Pressing play again changes the play button into a pause button, it clears the "Buffering" text too but it still does not play. :(

I have copied the url direct from the google page and the video plays fine on the google web site. Is there anything else I can try?

IrPr 03-23-2006 10:07 AM

Thanks Crist! VERY USEFULL HACK

works fine on my board , but something seems to bug appears on my MP3 Player that im not sure

when i'm using MP3 Player that plays MP3 Files that contains & ( amp ) chr the url will change to &amp; and mp3 player doesnt work :( plz help !

smdani 03-23-2006 04:25 PM

Quote:

Originally Posted by mawby
You were right, the ?Number of Characters Before Wrapping Text? setting did cause the long google url to have spaces in it. I have set this to zero and the URLs are now preserved.

However, if I just enter the google URL I get an unsupported type error. If I force the type using the above [media=....] tag then when I press play it displays "Buffering" and the play button changes back to the play arrow straight away (normally pressing play turns the play button into a pause button). Pressing play again changes the play button into a pause button, it clears the "Buffering" text too but it still does not play. :(

I have copied the url direct from the google page and the video plays fine on the google web site. Is there anything else I can try?

Hi mawby, I?ve just test this media of you in my board and works fine
[MEDIA]http://video.google.com/videoplay?docid=-4329325124823019531[/MEDIA]
No problem for me, try to reupload all files and unistall and reinstall the plugin and put the media on a new post it would be play normally

Going back to a bug that I post some days before about youtube and connecting it with the last I post about flvplayer. Today I notice that now the youtube videos that before didn?t work, now are playing fine with the flvplayer that I upload instead of the original of the hack ?why it occurs? Don?t know ??

YLP1 03-23-2006 07:06 PM

Quote:

Originally Posted by Crist
Edit the Code in class_bbcode.php
Search:
PHP Code:

                    case 'mpeg':
                    case 
'mpg':
                    case 
'm1s':
                    case 
'm1v':
                    case 
'm1a':
                    case 
'm75':
                    case 
'm15':
                    case 
'mp2':
                    case 
'mpm':
                    case 
'mpv':
                    case 
'mpa':
                        
$media['mime']='video/x-mpeg';
                        
$media['type']='quick_time';
                        break; 

Replace with

PHP Code:

                    case 'mpeg':
                    case 
'mpg':
                    case 
'm1s':
                    case 
'm1v':
                    case 
'm1a':
                    case 
'm75':
                    case 
'm15':
                    case 
'mp2':
                    case 
'mpm':
                    case 
'mpv':
                    case 
'mpa':
                        
$media['mime']='video/x-mpeg';
                        
$media['type']='windows_media';
                        break; 


I have vb version 3.5.4 and my class_bbcode.php doesn't have the above.

The closest I have is :
Code:


switch($attachment['extension'])
{
case 'gif':
case 'jpg':
case 'jpeg':
case 'jpe':
case 'png':
case 'bmp':
case 'tiff':

Am I looking at the wrong php file?

Thanks in advance.

chairman miaow 03-23-2006 07:47 PM

I think he changed it from that file edit , to being included in the xml file you import.....open the product xml file in a text editor and change it there

IrPr 03-23-2006 09:57 PM

Code Modification changed to plugin since 1.3.0 ver.
try to edit "Create AnyMedia BBCode" ( bbc-de_create hook location ) Plugin using AdminCP -> Plugin System -> Plugin Manager


All times are GMT. The time now is 09:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02449 seconds
  • Memory Usage 1,779KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete