View Single Post
  #421  
Old 10-28-2005, 12:59 PM
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD
I think so, but offhand I don't know what the <OBJECT> statement looks like for real media.

for media player, it is as follows:

Code:
<OBJECT ID="MediaPlayer" WIDTH=200 HEIGHT=100 
    CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    STANDBY="Loading Windows Media Player components..." 
    TYPE="application/x-oleobject">
  <PARAM NAME="FileName" VALUE="$STREAM_SCRIPT.php?action=stream&amp;id=$linkid">
  <EMBED TYPE="application/x-mplayer2" 
    src="$STREAM_SCRIPT.php?action=stream&amp;id=$linkid"
    NAME="MediaPlayer"
    WIDTH=200
    HEIGHT=100>
  </EMBED>
</OBJECT>

Hi,

When I add the object code for realplayer, it displays the windowsmediaplayer alongside with the realplayer. What I want is that it first checks the file, and if it's a realplayer file, it should launch realplayer, if not, then windows.

This what I had for the jukebox created by trafix:


PHP Code:
<if condition="$canplay == 1 AND ($fext == "mpg" or $fext == "mpeg" or $fext == "wmv" or $fext == "mp3" or $fext == "swf" or $fext == "asf" or $fext == "wma" or $fext == "avi")">                    
<
center>    <object id="MediaPlayer1" 
width=$viewwidth height=$viewheight
classid
="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<
param name="URL" value="$playsong">
<
embed type="application/x-mplayer2" 
name="MediaPlayer"
width=$viewwidth
height
=$viewheight
src
="$playsong"
showcontrols="1">
</
embed>
</
object>
</
center>
</if>
<if 
condition="$canplay == 1 AND ($fext == "rm" or $fext == "ra" or $fext == "ram" or $fext == "rt" or $fext == "rp" or $fext == "rv" or $fext == "rmvb" or $fext == "mov")">                    
<
center> <object id="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=167 height=36>
     <
param name="CONTROLS" value="ControlPanel">
     <
param name="AUTOGOTOURL" value="FALSE">
     <
param name="CONSOLE" value="radio">
     <
param name="AUTOSTART" value="TRUE">
     <
param name="SRC" value="$playsong">
<
embed name="player" type="audio/x-pn-realaudio-plugin" height=36 width=167 NOJAVA=true autostart="true" console="one" controls="ControlPanel" src="$playsong"/>
</
object>
</
embed>
</
center>
</if> 
Regards
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01248 seconds
  • Memory Usage 1,801KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete