vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Embedded media player in post (https://vborg.vbsupport.ru/showthread.php?t=72162)

ericgtr 02-25-2005 04:43 PM

Quote:

Originally Posted by madkidz
Nice hack. I will soon install it. Is there a way to limit only certain user groups to be able to upload this file.

Unfortunately that is still unavailable.

Lars A 02-27-2005 10:28 AM

Quote:

Originally Posted by docvader
I'm using this hack with great success. But I had another question about embedding players inside of posts. I'm embedding QuickTime, to show videos, and I'd like the background of the html that the QT player lives in (which gets embedded within the actual post), to match the postbit background color (all changeable, with the current style used, of course) Here's my html code:

Quote:
<html>
<head>
<title>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>

<body bgcolor="#000000">

<OBJECT CLASSID="xxxxxxxxxxxx" WIDTH="320" HEIGHT="256"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="dechengwuxingbafa.mov">
<PARAM name="AUTOPLAY" VALUE="false">
<PARAM name="KIOSKMODE" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<PARAM name="LOOP" VALUE="false">
<EMBED SRC="xxxxxxxxx.mov" WIDTH="320" HEIGHT="256" KIOSKMODE="true" AUTOPLAY="true" CONTROLLER="true" LOOP="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>
</body>
</html>




You can see what I mean here: http://x.russbo.com:16080/vb/showthread.php?t=61


I currently use black, as a default. Any idea what html code I can put into this, so that the background is not black, but, the color of the viewer's style's postbit background???



First of all Id like to thank ericgtr for the nice hack that I got working, and all the others that contributed with ideas and developments. Great job!

Now, I am in need to display Quicktime mov-files in posts in the same way, and I was first very happy to find docvaders contribution above.
But theres something fishy going on here... I have allmost no hair left on my poor old head. :ermm:

First out is the expression OBJECT CLASSID="xxxxxxxxxxxx".
Im a noob in vb and php, and even I can see that this will simply not work. It was easy to solve by going to Quicktime website and check the ID. Correct expression then becomes: OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" A bit different... But that is NOT my problem.

My problem is passing a src parameter for the file location and name, to this statement: <PARAM name="SRC" VALUE="dechengwuxingbafa.mov"> and for the statement: EMBED SRC="xxxxxxxxx.mov"
The Windows Mediaplayer solve this by using {param} instead of URL+filename. Basic... :tired:

In the "Apple universe", I simply cannot find the same thing. I have to give an absolute URL+filename to make it work, but then my BB-code manager just plays the same movie whatever I do with the tags later on.

I mean, pressing the new icon mov.gif in my wysiwyg editor gives me the tags [mov][/mov] and in between I just want to give the URL+filename for my excellent movie. Different in every post...

Wont work... :o

I have tryed the trick using the "sample.mov" in my website root. No good.

My conclusion right now, before I felt forced to ask u expert guys for help: "How on earth can these wealthy MAC-users stay alive?" :tired:

I'll put up a reward of ?1.000.000 thanks to the individual who can explain how the apple code communicates and passes arguments in this case!

nexialys 02-27-2005 12:39 PM

all sample codes for QuickTime manipulation are found here: http://developer.apple.com/samplecode/QuickTime/

JAYEMULE 03-08-2005 04:48 PM

I really like the looks and sound of this mod so I have installed it on my test board. I followed the directions to the letter but for some reason I see no sign of it when I go to upload a mp3 file. I do hope you continue work on this. It has great potential I think.
I will go back and double check to see if I could have copied something wrong from the post.

Keep up the good work and don't let this die out :)

Jaye
www.mules.org

ericgtr 03-08-2005 04:59 PM

It doesn't actually appear until after the mp3 file is uploaded :)

JAYEMULE 03-08-2005 05:38 PM

oh yes of course Eric ;)
OK so now when I go to upload an mp3 I get the dreaded 'page can not be displayed ' error. Not sure why, it has never happened before. Nothing I did should have affected it. I will try another file and see what happens. So far I have tried 3 different mp3 files.
Love this, can't wait to get my little problem figured out. I am running vb 3.7 if that matters.

Jaye

ericgtr 03-08-2005 07:22 PM

Do you have your files set to upload to the filesystem instead of the database? I would recommend it, especially if you are allowing mp3 files.

TundraSoul 03-10-2005 10:28 PM

Curious, the hack is installed correctly, the player appears in the post, and the attachment is underneath it. However, when I press play on the player in the post, nothing happens. Am I missing a setup option somewhere?

Also, I added the mp3 as a storage type, since I didn't have it. What should the Mime Type be if it matters?

Thanks!

ericgtr 03-10-2005 10:39 PM

It sounds like the mp3 isn't pathed properly, make sure you change it in your attachmentbit template to your settings here:

Code:

yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3
It shouldn't matter for this but I use:

Content-type: audio/x-mpeg

TundraSoul 03-10-2005 11:11 PM

Thanks, I can download the mp3 attachment and it plays fine in my local player. It just doesn't play inline. I click the play button and nothing happens.



Quote:

Originally Posted by ericgtr
It sounds like the mp3 isn't pathed properly, make sure you change it in your attachmentbit template to your settings here:

Code:

yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3
It shouldn't matter for this but I use:

Content-type: audio/x-mpeg



All times are GMT. The time now is 07:40 PM.

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.01102 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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