广西经贸职业技术学院论坛

标题: [建站技术]在网页中插入视频播放代码全集 [打印本页]

作者: 月中水    时间: 2009-10-16 01:13
标题: [建站技术]在网页中插入视频播放代码全集
1。avi格式
" ?4 D4 @6 x7 ]9 M5 z" t7 a6 `$ ]6 T6 g5 v9 t$ k
代码片断如下:
7 S; \$ ?) B' o, _6 A  n  i/ A8 c" W
<object id="video" width="400" height="200" border="0"
  c- K0 P* B0 I3 d) v5 ?# Iclassid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> 7 L3 [3 A" U& Y0 n
" C$ b7 X0 A  R' E) ~# _
<param name="ShowDisplay" value="0"> 9 l9 u" W+ l( ?
8 Q. y5 P5 W+ g. W0 _, X8 n" e, }
<param name="ShowControls" value="1">
! b8 U% G$ b% g* ]
0 g7 n4 V! f. e& M<param name="AutoStart" value="1">
" n' n! @" N* f, q, L: q* G3 v. h* w5 K
<param name="AutoRewind" value="0">
1 N! ?+ Z9 d! a9 o
0 f, _% R0 `( z( ^<param name="PlayCount" value="0">
8 g  z( H* C1 X, W% e' o9 I+ z* A3 d$ n' D: v( U) Y* s
<param name="Appearance value="0 value=""">
  S9 K3 ^+ @0 m& J1 [% k2 V( I* K1 ?  Z+ g8 c
<param name="BorderStyle value="0 value="""> $ v9 `( j) k; E1 z6 w
# ?6 t0 @7 K1 K* ]
<param name="MovieWindowHeight" value="240"> " r' }8 F- ^4 l8 j; ~& E' P
* ^# c! b3 B3 h$ `! C9 `) M
<param name="MovieWindowWidth" value="320"> 2 k- A! o+ }* Y! a6 _4 {1 Q& a

- C. _& L: b* i3 a<param name="FileName" value="/Mbar。avi"> 4 N0 t# K0 i2 {( O3 @5 D6 G

/ B& n# j$ S, t( z. t* r: S<embed width="400" height="200" border="0" showdisplay="0" , g3 l$ J& R5 s% b# \
showcontrols="1" autostart="1" autorewind="0" playcount="0"
) r2 M5 o) d- H9 k' i# K+ n) o* k8 Zmoviewindowheight="240" moviewindowwidth="320" filename="/Mbar。avi" : h0 R* T0 U$ }# J& m3 d3 T2 ~
src="Mbar。avi"> : @- v% N# Q0 M1 R
1 i5 F9 A2 I1 [4 C' o, A
</embed>
% U% K, U% Z) v, x; H( A
9 M/ C# q" T9 a</object> 9 s2 K# g4 i) K/ d; X

# J) v* Y  h  w4 Z# i2。mpg格式 ( l2 [5 f0 J0 s) d+ v. A% C8 n8 o, z
' h* A3 z) T, F; j6 o& j9 o8 m
代码片断如下:
: S' T( r4 t8 s2 O1 T
* n6 w4 M7 D- @& P" b) I<object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1"
0 M) r+ N% G2 N' p4 n1 ^2 dwidth="239" height="250">
: [+ ~! W8 H$ M7 P$ i+ }# H5 \& D! r- D4 r8 ?: T
<param name="Appearance" value="0">
# t- n  D: P( V8 z7 Q5 G1 H( Y& Y$ e1 N! i: r
<param name="AutoStart" value="-1"> 7 _# }. `# V3 K' k" l3 [4 ]

  P7 B0 C9 b. g( z! ~<param name="AllowChangeDisplayMode" value="-1"> ; Y! X( z1 ^/ x$ {* c
; ]& v0 w' y6 U% ?
<param name="AllowHideDisplay" value="0"> 8 M7 Q1 g$ j) q9 x) S
0 Y  Q, |6 Y" m- Q# P4 `$ Z
<param name="AllowHideControls" value="-1">
. b' ]9 `5 L) T& g& S; C/ W' k: v  @# w7 u8 \6 W( a
<param name="AutoRewind" value="-1">
  s4 l2 I" f& i9 u
& H) `+ J/ {1 F8 S6 ~( p<param name="Balance" value="0">
' j! S5 {; l0 M4 f+ y- \6 R/ I& `& U1 b% r
<param name="CurrentPosition" value="0"> , ~2 @( F. Z8 y  I. `: z5 T

4 q2 ?  `9 P9 }/ ]0 k* z<param name="DisplayBackColor" value="0">
3 x- ~7 H- l5 K3 w
' D; o" R7 e# M: I; @4 n3 @<param name="DisplayForeColor" value="16777215">
8 k2 _; `' G( |. w" i/ m5 k' v0 q* P/ h  p7 F$ K' @2 _
<param name="DisplayMode" value="0"> / y6 S, t8 G0 h  T6 X, W/ ?0 h# M5 r
: G5 N6 E  a( |7 z2 X  j8 L( t
<param name="Enabled" value="-1">
) X. u0 g8 T! |4 o& `) ~8 k# h
, k" b: C" R' p0 T! O  u<param name="EnableContextMenu" value="-1"> / P2 ~( r1 r) E5 R/ M* N

$ K" e6 j% C6 H, d$ v5 C4 P<param name="EnablePositionControls" value="-1"> : T% r# E% K2 z

! O$ j- r  M( n! M" h<param name="EnableSelectionControls" value="0"> 3 ?9 x: ^7 P: V# W

0 G* M! V+ ~$ Z6 Q5 n! R( C<param name="EnableTracker" value="-1"> 5 F. A  C* J9 H0 X

+ a) K$ f: X: W6 I" J5 _. Q<param name="Filename" value="/mpeg/halali。mpg" valuetype="ref">
* X. K! j9 X- M( n- H
, U3 u* G7 Y& o& @% v<param name="FullScreenMode" value="0"> 5 H1 q  d8 T# U8 S1 J
, U) q8 q1 R: u# I2 r0 J* A1 ?
<param name="MovieWindowSize" value="0"> . d, v* u6 E. Z0 q( _& b- w5 F7 {8 c
% h7 F9 d: ?1 h% Q. ~. t
<param name="PlayCount" value="1">
3 G- m: g1 v, C1 ]$ I8 Q
1 D6 N/ J. S! [4 j8 ~8 E7 l<param name="Rate" value="1"> * Q5 \0 `& ^4 o9 }
1 {) |( L  l3 z- G# J0 @
<param name="SelectionStart" value="-1">
5 ~; m. \$ ]( ?) D- Z
- k: x( _4 T( l<param name="SelectionEnd" value="-1"> 5 S. ?2 s5 C1 I& w/ Y, g8 J$ k

1 C: _- `4 r2 P<param name="ShowControls" value="-1"> 6 w* Z8 N5 {& i" {& Y6 s) D

- n5 U* s0 i4 R& ~7 g<param name="ShowDisplay" value="-1">
6 i1 f$ w& @3 l6 O
" e% y7 l' U9 }# n+ K! A<param name="ShowPositionControls" value="0">
( a# Y2 C3 g% a( j( T$ p) h) t( K& ?) T7 `9 T0 F
<param name="ShowTracker" value="-1">
- Q2 K: h6 w4 a+ s" K7 l" z0 E6 O1 F. m
<param name="Volume" value="-480"> " F2 X& ?. I4 f# H

. ^5 u2 S7 E* b1 m) P: A- N</object> 3。smi格式 6 u  u' X' J5 Y0 d) Z

* ~  {" t8 D  l  G# ~: _代码片断如下: ' F' C- N( c# p/ b" g. F6 T
; Y8 b+ W4 H% J5 R8 N0 ]
<OBJECT id=RVOCX classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240 8 n* m6 P# Q- B
height=180>
. m) b% x1 {5 h6 w& f7 j' V4 N8 A% K: ?& O- ~
<param name="_ExtentX" value="6350"> 7 t+ x$ B/ }: {8 c6 p; o; {

9 F1 m; W; u1 H3 ~3 p) U4 j% r<param name="_ExtentY" value="4763"> 2 ?3 V; o; f6 [9 [

4 D! Y: X) `. L/ Y( u1 E6 J4 f* ?<param name="AUTOSTART" value="-1">
* b; n3 m! {, L9 o) M" Z' w2 r7 u$ K! Z1 [
<param name="SHUFFLE" value="0"> : E( j2 D/ W) I* ^. Y/ X% c; G

: E$ T* y6 k5 @- ]* R6 D$ j<param name="PREFETCH" value="0"> % J; n, w* X' ~; c- S+ e
3 h8 L1 g3 j' E, B8 b! K
<param name="NOLABELS" value="-1"> ; M; i0 r+ ], z6 F% e9 ^

1 j+ R+ I# K# B8 w<param name="SRC" value="rm。rm"> 2 S7 v( \7 p6 a, i

0 i" {, A0 d- O; Z<param name="CONTROLS" value="ImageWindow"> 1 _' T: h. {( J$ f. K

# a! t- X$ T  u  V; N8 o<param name="CONSOLE" value="console1">
# P  ~- W5 ^8 }+ A3 J) {3 ?5 J# ^2 z/ o
<param name="LOOP" value="0"> " G, Z9 ^) H. |0 q/ S- g
( D, K8 i# U( A9 u# R5 M8 O
<param name="NUMLOOP" value="0"> , l0 S5 m7 \; Z4 A) s

' B4 x% Z/ m& K1 z& O' y" m<param name="CENTER" value="0"> 2 G4 e% g5 f0 v5 a

# L+ T$ ]  r$ u5 h  v  F<param name="MAINTAINASPECT" value="0"> ! M6 U, C/ Q+ \' }0 u6 r% i
3 y+ z3 @0 S3 C0 ?  p4 M7 ]
<param name="BACKGROUNDCOLOR" value="#000000"><embed ' ]7 z2 f. S2 K, k% a- d
src="real。smi" type="audio/x-pn-realaudio-plugin" console="Console1"
3 }& v/ L/ x0 \7 j4 c7 z- w3 \# Fcontrols="ImageWindow" height="180" width="240" : n( s3 I5 b" b3 X" I" X( p
autostart="true"></OBJECT> ' ~1 @9 F2 e" i% z2 `' J
7 Z& F1 W; r6 M; |3 x
& f* y$ Y7 S5 F1 \# a8 t
4。rm格式 ( Z1 e6 u/ q; X1 j
5 ]! g" X  n' t( p9 v
代码片断如下:
4 K; E+ R& K1 Y' u, R; m7 X" ?0 h( c; O  j: }! P
<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" + S, t! Y* z/ b; ]6 q7 k) d% f
HEIGHT=288 WIDTH=352> # J* T6 L8 T3 C
! V/ W! U9 P! D7 E
<param name="_ExtentX" value="9313">
. d7 `+ s- M8 p0 l& ~) l6 u
6 V. Y6 q+ X6 Q* F7 N<param name="_ExtentY" value="7620">
, b: l$ \6 J6 C: [" o  W
% }1 _8 ]" j. u( G. J. V<param name="AUTOSTART" value="0">
: c7 n! o# ?' g2 h$ q
6 W$ z& O1 o6 u<param name="SHUFFLE" value="0">
, ]3 _' M% U1 ~, ?
6 j3 ]- ^) o- R$ R% x8 x<param name="PREFETCH" value="0"> # m" h" Y" C1 U* \; t6 X2 A2 _. N
% Y& R2 \+ A1 v1 Z3 X
<param name="NOLABELS" value="0">
! `6 A+ w  r4 Q- f. o6 R<param name="SRC" value="rtsp://203。*。*。35/vod/dawan-a。rm">
+ _% M% C! G& K! H* v- z- S+ c  \# M. Z9 T! o8 Y. i3 f% p! H
<param name="CONTROLS" value="ImageWindow"> 2 d9 A1 N6 y2 t7 d
. J& {8 n. I7 t9 n
<param name="CONSOLE" value="Clip1"> * f/ }! `" B" ?- O- {

1 i* w) K6 K' O+ O% c2 e1 J<param name="LOOP" value="0">
+ `9 P! J- |' k$ V- @6 P% U8 g6 H# ?  ]8 ^2 W" k9 \
<param name="NUMLOOP" value="0">
# }& @6 i" i: S' `
$ A6 _3 e' A. Q8 q# u<param name="CENTER" value="0"> ' p  g5 J9 W6 v) I2 o

" C# N4 [7 s2 I* j( b<param name="MAINTAINASPECT" value="0">
9 H1 o8 r8 a; J! W1 w
8 e0 `2 \2 G* M<param name="BACKGROUNDCOLOR" value="#000000"><embed
" H0 I" f6 z0 ^. _+ |/ cSRC type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ImageWindow" 1 v1 Y- N: E2 ^4 y  ]0 n6 Q
HEIGHT="288" WIDTH="352" AUTOSTART="false"> . ?6 G  k4 W0 f5 F  i5 g

9 C+ S4 Z- o  w7 R</OBJECT> + v8 b4 m; F- B

: R4 Y$ M: z0 P7 ?' R5。wmv格式   {0 ]  l$ a% l4 g" v
' b& j/ o" w9 z9 I
代码片断如下:
0 ]/ A! h5 k' s$ b% T/ b* g
5 i% {" L( G: x3 j9 m) B! z<object id="NSPlay" width=200 height=180 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
  t- ?, N( z, i, ?codebase="http://activex。microsoft。com/activex/controls/mplayer/en/nsmp2inf。cab#Version=6,4,5,715" 6 f) ?, Z, k4 @. X
standby="Loading Microsoft Windows Media Player components。。。" type="application/x-oleobject" + v. a. `3 o. k0 s" O% }
align="right" hspace="5">
3 t1 m7 j* |  [* q& Y; n' n" s4 j% \/ O4 j$ o% K9 k
<param name="AutoRewind" value=1>
# X' q% ?' e; d* c$ W' L  M! W# P, z8 o0 ?
<param name="FileName" value="/blog/******。wmv">   V% ^3 o1 V! K
; ?  \& W  j+ i: D
<param name="ShowControls" value="1">
1 P) Y9 `2 |- \$ B7 d, z0 D! z6 r' A( S4 c4 ]; r% ?3 [
<param name="ShowPositionControls" value="0">
. v8 J" W- `0 P8 U' T1 O# A& l
% I1 _- m' x8 h8 @5 E# R% ~8 j) t<param name="ShowAudioControls" value="1">
* G$ A% i5 [0 P0 o
1 u' K2 N' `0 S" G<param name="ShowTracker" value="0">
/ r# A/ I' }: ]3 u( ~: [6 o3 _  w  A8 a" O
<param name="ShowDisplay" value="0"> 6 o2 i, V" u. p7 ~( E7 I5 j, I% l

7 m% J6 p) X, z5 h4 E) g<param name="ShowStatusBar" value="0">
" R/ U0 M- T/ w/ k4 Y5 _( j. m9 w9 u$ q
<param name="ShowGotoBar" value="0">
+ V1 L' ~4 }! f# p; Z. e2 h
9 v) n7 D1 J" z4 K<param name="ShowCaptioning" value="0">
7 a( h7 B$ v! ^8 s- J3 o8 t# u: w4 y0 @/ V
<param name="AutoStart" value=1>
+ a) B$ R+ M6 h  Y+ y) y
8 ]# M+ f8 B! f' N<param name="Volume" value="-2500"> & D# A: b! ]" C8 y( D
- x' [: o' p7 F5 {0 r9 [& w
<param name="AnimationAtStart" value="0">
' D+ k7 p; g8 Z: J' F# g2 ], q  M4 `8 K5 ~; l4 l, m, @
<param name="TransparentAtStart" value="0"> , j; M( I6 \- w# @7 x% c, V
0 _  n- A) v! w- a8 c
<param name="AllowChangeDisplaySize" value="0">
& J, a$ @0 G% {1 A& _. Y" z9 [7 f1 B7 Y' T, D1 }
<param name="AllowScan" value="0">
. a5 u3 S- X' d) M9 d/ }. c6 ?; R+ b- U8 v6 m3 n
<param name="EnableContextMenu" value="0">
9 r. l8 |* Q" |3 q9 ?4 k6 [, A8 a6 F1 |5 F9 o2 \; B1 ]& V
<param name="ClickToPlay" value="0"> 3 `+ B* ]3 R& d! I
2 g. r; J+ O) n6 `
</object>
  A; P' p7 K: A) U% c" T; l; {' X1 t6 O; |* c( |
& \6 Y3 `; d) ]* f" E
6。wma格式
/ J; C  J: `9 M2 ^" T( n
1 ~) W) K! k6 m2 E  N放在 <body> 里面。下面是部分解释: 9 ~( f1 K) a8 R3 n  `, m
4 u1 i& {4 F& P8 a% l4 _) q) d1 `& k& a
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" 6 R0 c( l* w/ Y* {
> $ S) F2 `* V. s2 q" V

2 l+ {3 L' j4 Y. h<param name="Filename" value="/blog/1。Wma"> <!--你文件的位置-->
' W5 W2 d% U& B6 H' V2 @* i
8 ^4 u" C  C- \, ~<param name="PlayCount" value="1"><!--控制重复次数: “x”为几重复播放几次; 6 y  `1 |5 w& y! W- S. m
x=0,无限循环。-->
+ k0 D- P; X! @7 i* g
  \( Y8 ~( s* M3 a8 R+ o2 ^5 a$ H3 Y<param name="AutoStart" value="0"><!--控制播放方式: x=1,打开网页自动播放;
" }) T3 X+ w7 m& H: }( Vx=0,按播放键播放。--> 7 j1 j# W! n9 D+ u& L

7 I  X4 l7 p% `6 ^7 d& J8 Y6 F2 x<param name="ClickToPlay" value="1"><!--控制播放开关:
1 t9 y; G+ d( B1 e# Y0 o" mx=1,可鼠标点击控制播放或暂停状态; x=0,禁用此功能。--> - J+ a2 m- h+ f$ w  W4 Y' |1 W

9 G1 ?1 ?+ M* m$ D1 [6 p<param name="DisplaySize" value="0"><!--控制播放画面:
( @8 M, b$ _% U0 g, ix=0,原始大小; x=1,一半大小; x=2,2倍大小。--> ' v+ H' c, n  K4 }1 g% d
1 S' s( y. e9 E3 ~
<param name="EnableFullScreen Controls" value="1"><!--控制切换全屏:
9 {. X  Y) M; Cx=1,允许切换为全屏; x=0,禁用此功能。-->
' ?5 `/ X; f! @( D+ H7 j+ `" y& S' c% y2 V" D4 ?
<param name="ShowAudio Controls" value="1"><!--控制音量:
4 J4 X; q* I- @) qx=1,允许调节音量; x=0,禁止音量调节。-->   G; L% I; @/ j" K8 m8 h2 \
* A; e1 S- I# Q, e& k; h
<param name="EnableContext Menu" value="1"><!--控制快捷菜单: 6 C5 f) C! `, v4 L( V3 J, t
x=1,允许使用右键菜单; x=0,禁用右键菜单。--> 2 B/ e- d, a9 ~  g0 Y' d

2 W: X' d1 V0 ]1 @, C<param name="ShowDisplay" value="1"><!--控制版权信息:
% U8 Q. {/ t* G% y8 N4 |x=1,显示电影及作者信息;x=0,不显示相关信息--> 9 |% T+ c& Q7 \0 x

! m( a$ d2 Z5 x. H( R3 A$ x: F& ~. p</object>




欢迎光临 广西经贸职业技术学院论坛 (http://gxjmbbs.com/) Powered by Discuz! X3.2