|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2017-10-16 09:58:19
|
显示全部楼层
" Y6 U! Q: x! O$ i+ Q3 E
5 n4 m& E; r, k$ ?* _6 |6 x, X9 s试了下,做了个 mdx 测试。
+ u3 o+ z! U {7 V8 X留存备案吧。4 Z. P$ b2 r+ L
要在 GoldenDict 实现场景二, 目前应该还需要 js 。4 a5 U& P: h+ `, t+ L! F- ~
- Why won't my HTML5 audio loop? https://stackoverflow.com/questi ... my-html5-audio-loop
/ i6 w5 k, j/ H……3 s8 f( L' h. V
要在 MDict 上实现,音频全部联网,倒是可以。
) c# Z# G# v& D: w. Q3 N! x% R( R5 i2 e7 \' {) M
##GoldenDict-1.5.0-RC2-188-g801ab72_(QT_486)3 R. A8 w k9 G& a- q& F) s3 P0 w
:Your browser does not support the audio element. `: h' e7 v7 @$ t
- E& f# n$ L$ v0 J# T
##GoldenDict-1.5.0-RC2-188-g801ab72_(QT_563)(64bit)
5 T: `+ T2 v' n, P. Y- absence {音频联网}能播放不能循环。8 T* h# a+ d: s2 q
- sinfonietta0 {正常 mdx 引用 mdd 内的音频}能播放
D( z# _/ I6 t; F- sinfonietta1 {本地引用,音频不在 mdd 中}能播放: \8 w, x# m b! O
- sinfonietta[2-5] 不能播放
1 h9 x* f# |3 @' W8 d! z& Z1 [# ^( h( l" f- S$ F2 h1 I
MDict for PC 1.3 RC4 (内核已升级):- g) C/ ~8 O- Z/ \0 x# f/ D6 q
- absence {音频联网}能播放且循环。( i1 I7 m; y( i% H
- sinfonietta0 {正常 mdx 引用 mdd 内的音频}能播放
# v9 d) G! C; X# F5 Z1 N- sinfonietta[1-5] 都是 Error: Unsupported audio type or invalid file path* E7 Y7 q0 q6 f
* ] S8 [8 I8 J
8 t: t; \4 i1 a5 \# G3 O$ |
& v# n0 c8 `( x/ l附 mdx 源码如下:. H. A5 P D' T! i( z4 {3 Y/ w
- sinfonietta0
' _' `! T1 M, \ - <a href="sound://sinfon04.wav">sinfonietta</a>
. G: n$ }9 ]2 H8 w7 `% M9 ` - </>
! G* S! d2 @" x% E - sinfonietta1
6 _& c* y8 _+ ~- Y+ M3 f7 \ ] - <audio controls="controls" autoplay="autoplay" loop="loop">
/ L0 _* U; I% q' U4 w m - <source src="C:\Users\God\Desktop\text_mdx_data\sinfon04.wav" type="audio/wav">( r$ }* D2 A+ M/ {" i- y* [
- Your browser does not support the audio element.+ Y; z6 C4 ]) r7 L- [& {. a2 \
- </audio>, y1 I; p! o& m) g) c9 {
- </> |/ v, z9 I$ M
- sinfonietta2
4 {% P( G7 H) h" H, i) _ - <audio controls="controls" autoplay="autoplay" loop="loop">3 P4 F( B* D- l& P% O( h( X! e) J
- <source src="sinfon04.wav" type="audio/wav">
$ [$ C& `/ g4 K2 w" a! p - Your browser does not support the audio element.; f d: ^4 {, w- w5 U
- </audio>& q3 E6 [5 Q( u: j* Y# `! @
- </>& ~9 ]$ p! }0 t( W
- sinfonietta3
0 A/ f* X T7 \2 N4 R - <audio controls="controls" autoplay="autoplay" loop="loop">
; O e0 L, B( G. @7 s1 @0 S7 c - <source src="/sinfon04.wav" type="audio/wav">2 X7 b; _8 P, Z9 M) {
- Your browser does not support the audio element.
9 i# s! B+ }2 V5 n - </audio>: k7 d% `; n4 l" |1 n7 A2 A
- </>2 l+ z4 A: H# D' v
- sinfonietta4: ~. Y) x: H0 P5 ?% g4 G
- <audio controls="controls" autoplay="autoplay" loop="loop">" r$ B5 s. i$ m8 S0 a
- <source src="file://sinfon04.wav" type="audio/wav">3 q/ I+ V4 P; E i: }: L
- Your browser does not support the audio element.
* T2 ^/ F8 G+ p' ], o3 d - </audio>
. c: C7 P3 k+ J5 E8 P6 R* X - </>! \, T% \# i! G3 {" Q8 F
- sinfonietta5
6 T% C! B! a- F$ Q8 t* Q9 L E - <audio controls="controls" autoplay="autoplay" loop="loop">
3 T9 Q; B* t* E% [ - <source src="sound://sinfon04.wav" type="audio/wav">" ], Y- G, r: P5 \5 V3 q4 m9 M E
- Your browser does not support the audio element./ }3 ^( z, o: V
- </audio>; Q. m: v1 t* g) Q+ M2 t; i7 y# v
- </>
3 f* i: V$ ~- b5 n: t d - absence
: H& |1 n6 G; i( z0 R3 E - <audio controls="controls" autoplay="autoplay" loop="loop">
# I1 M6 F8 u* U) k/ r8 Q& G8 j - <source src="http://www.wordcentral.com/games/audio/absenc01.mp3" type="audio/mp3">9 Y/ Y4 V. p1 D/ {# Q# _: o
- Your browser does not support the audio element.
, J& X! q( d& c4 E: U) V$ s! T - </audio>
p' e% H. m1 @% e) b - </>
% g$ {6 _: k9 W: z
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|