.

.

Thứ Ba, 2 tháng 2, 2010

Code khác để post nhạc từ YUME lên Plus.

Code khác để post nhạc từ YUME lên Plus.




Tôi đã nhúng thành công shockware của mỗi ứng dụng trong YUME lên plus nhờ
tìm được Flash dẫn. Tuy thế, vì YUME dùng nhiều shockware khác nhau trong mỗi
ứng dụng nên tôi cố gắng tìm một phương pháp nhúng nhạc thống nhất để nhúng nhạc
từ 4 ứng dụng nhạc của YUME thay thế cho bài

Nhúng nhạc từ các ứng dụng của YUME
 - 
Dù vẫn thất bại ở khâu cho hiển thị
playlist, nhưng đã tìm được shockware màu và sockware cỡ nhỏ.
Đây là các shockware để bạn thay đổi:

  1. http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf: 
    kích cỡ 179x207 (khổ vuông) nguyên thủy có màu,  khi sang plus thì màu xám.
    Giao diện dạng đứng.

  2. http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf: 
    kích cỡ 178x133 (khổ vuông) nguyên thủy có màu,  khi sang plus thì màu xám


  3. http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf:
    kích cỡ 463x224 (khổ chữ nhật ngang) nguyên thủy màu xám.

  4. http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf:
    kích cỡ 463x224 (khổ chữ nhật ngang) nguyên thủy có màu, khi sang plus thì cố
    định 1 màu xanh dương.
Trong YUME thì màu sắc được tùy biến ở mã
&colorAux=0x6FD997&colorMain=0x0b7533 nhưng khi nhúng vào Plus thì 2 tham số
này không hoạt động. Bởi thế, màu của giao diện sẽ do chính shockware đảm nhận.
I- Nhúng Nhạc đơn thông thường
Ví dụ, bạn muốn nhúng bài "Ngại Ngùng - Tuấn Vũ" từ địa chỉ
http://amnhac.timnhanh.com/membserv/song/35B20396
Khi copy nội dung trong ô Nhúng vào blog bạn sẽ được code sau:
<object width='463' height='269'><param name='movie'
value
='http://static.yume.vn/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0xFFD9FF&colorMain=0xc175d4'></param><param

name='wmode' value='transparent'><param name='allowscriptaccess'
value='always'></param><embed
src='http://static.yume.vn/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0xFFD9FF&colorMain=0xc175d4'
type='application/x-shockwave-flash' width='463' height='269'
wmode='transparent' allowscriptaccess='always'></embed></object>
(1)
Sau đó bạn chọn copy từ
xmlPath=
đến trước dấu
nháy đơn (')kế
tiếp tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533
(2)
Bạn hãy ghi chồng chuỗi (2) lên XMLCODE trong code mẫu dưới đây:
<EMBED height=118
type=application/x-shockwave-flash width=463

src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=XMLCode&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">
(3)
Làm xong như thế bạn sẽ được code nhúng:
<EMBED height=118 type=application/x-shockwave-flash
width=463
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">
(4)
và player sẽ như sau:








II- Nhúng Playlist thông thường
Ví dụ, bạn tìm được playlist Tình Khúc Ngô Thụy Miên tại địa chỉ
http://amnhac.timnhanh.com/cauchuyenmuathu_78/playlist/35A89B71
Copy code nhúng bạn sẽ được:
<object width='463' height='269'><param name='movie'
value
='http://static.yume.vn/yumemusic/flashplayer/flplayerlistblog.swf?xmlPath=http://amnhac.yume.vn/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1652002081.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0x737479&colorMain=0x0F1015'></param><param

name='wmode' value='transparent'><param name='allowscriptaccess'
value='always'></param><embed
src='http://static.yume.vn/yumemusic/flashplayer/flplayerlistblog.swf?xmlPath=http://amnhac.yume.vn/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1652002081.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0x737479&colorMain=0x0F1015'
type='application/x-shockwave-flash' width='463' height='269'
wmode='transparent' allowscriptaccess='always'></embed></object>
(1)
Sau đó bạn chọn copy từ
xmlPath=
đến
hết xml   tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
 
xmlPath=http://amnhac.timnhanh.com/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1233903029.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C

(2)
Bạn ghi chồng code (2) vừa nhận được lên chuỗi XMLCODE trong code mẫu dưới
đây:
<EMBED height=118
type=application/x-shockwave-flash width=463

src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=XMLCode&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">
(3)
Làm xong như thế bạn sẽ được code nhúng:
<embed
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1652002081.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C&?http://i500.photobucket.com/trang-sinh"

type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never">
(4)
Player từ (4) trên Plus trông như sau






(PlayList Ngô Thụy Miên)
Nhược điểm của phương pháp này là không hiện List cho nên không thể chọn bài
để nghe. Người nghe chỉ có thể sang bài khác bằng nút
hay  
.
III- Nhúng Bài hát nổi bật và PlayList nổi bật
Đặc điểm của 2 ứng dụng này là không cung cấp Mã Nhúng. Để biết cách lấy
code, bạn hãy tham khảo Phụ Lục ở cuối bài này.
Cách nhúng vào Plus hoàn toàn giống Bài Hát thông thường và playylist thông
thường.
V- Đổi cỡ và đổi màu giao diện
Đây là điểm mới nhất trong lần viết cập
nhật này. Bạn có thể tùy chọn một trong 4 flash dưới đây để hiển thị giao
diện.
Tôi lấy ví dụ 1 bài hát đơn thông thường để làm mẫu. Những phương pháp sau
đây có thể áp dụng với các ứng dụng còn lại.
Bạn có 4 shockware để thay đổi.
Ví dụ bài Muốn Nói Lời Yêu Em - Ưng Hoàng Phúc. Địa chỉ:


http://amnhac.timnhanh.com/nghe-baihat-muon-noi-loi-yeu-em-ung-hoang-phuc.huy_su_f90.35B200F0.html

1-
flsongblog.swf: kích cỡ 463x224

(khổ chữ nhật ngang)
màu xám cố định.
(Đường dẫn shockware: http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf)
Code nhúng:
<EMBED height=118 type=application/x-shockwave-flash
width=463
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">














2- ym_simpleplayer_178x133_color_secure_081024.swf:
kích cỡ 178x133 (khổ vuông) màu xám cố định.
(Đường dẫn shockware:
http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf)

Code nhúng:
<EMBED height=133 type=application/x-shockwave-flash
width=178
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">



















3-
ym_playerlist_179x207_color_2col_secure_081024.swf
:
kích cỡ 179x207 (khổ vuông dạng đứng) màu xám cố định.
(Đường dẫn shockware :
http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf)

Code nhúng:
<embed
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x123456&colorMain=0xff00ff&?http://i500.photobucket.com/trang-sinh"

type="application/x-shockwave-flash" width="179" height="207"
wmode="transparent" allowscriptaccess="never">























4- ym_playerlist_463x224_color_2col_secure_081024.swf:
kích cỡ 463x224 (khổ chữ nhật ngang) có màu xanh dương.
(Đường dẫn shockware:
http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf)

Đây là flash mà tôi sử dụng trong các ví dụ ở phần I và II.
Code nhúng:
<embed
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"

type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never">





























PHỤ LỤC: Cách lấy mã HTML từ Player
Thao tác 1- Rê chọn Player
Bạn phải rê chọn cho khéo tay, nếu không thế, bạn sẽ chọn nhiều hơn dự kiến
và mã HTML sẽ rất nhiều đến nỗi khó tìm ra bộ mã cần dùng.
Thao tác 2- Ấn [CTRL+C] để copy
Thao tác 3- Dán nội dung đã copy vào khung soạn thảo Normal trong Plus bằng cách
nhấn [CTRL+V].
*** Để cho nhanh, bạn có thể paste ngay vào ô comment bên dưới mỗi entry (nếu
bạn đã đăng nhập).

*** Nếu bạn có chương trình FrontPage trên máy thì hết sức thuận tiện để thực
hiện thao tác này.
Thao tác 4- Bấm vào ô HTML để thấy code.
Nhận dạng code: code mà bạn tìm bao giờ cũng bắt đầu bằng <embed . Có thể kết
thúc chỉ với dấu > hoặc với thẻ </embed>.
Thao tác 5- Copy khối code đó rồi paste vào Notepad.
Như vậy là bạn đã có code nguyên thủy của player.

Tham khảo:

- Nguồn loading: ytuongquang

- Nguồn nhạc: yume:

- Kỹ thuật: trinhsang

- Viết bài: trinhsang



Cập nhật 28/05/2010

Tôi đã nhúng thành công shockware của mỗi ứng dụng trong YUME lên plus nhờ
tìm được Flash dẫn. Tuy thế, vì YUME dùng nhiều shockware khác nhau trong mỗi
ứng dụng nên tôi cố gắng tìm một phương pháp nhúng nhạc thống nhất để nhúng nhạc
từ 4 ứng dụng nhạc của YUME thay thế cho bài

Nhúng nhạc từ các ứng dụng của YUME
 - 
Dù vẫn thất bại ở khâu cho hiển thị
playlist, nhưng đã tìm được shockware màu và sockware cỡ nhỏ.
Đây là các shockware để bạn thay đổi:

  1. http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf: 
    kích cỡ 179x207 (khổ vuông) nguyên thủy có màu,  khi sang plus thì màu xám.
    Giao diện dạng đứng.

  2. http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf: 
    kích cỡ 178x133 (khổ vuông) nguyên thủy có màu,  khi sang plus thì màu xám


  3. http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf:
    kích cỡ 463x224 (khổ chữ nhật ngang) nguyên thủy màu xám.

  4. http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf:
    kích cỡ 463x224 (khổ chữ nhật ngang) nguyên thủy có màu, khi sang plus thì cố
    định 1 màu xanh dương.
Trong YUME thì màu sắc được tùy biến ở mã
&colorAux=0x6FD997&colorMain=0x0b7533 nhưng khi nhúng vào Plus thì 2 tham số
này không hoạt động. Bởi thế, màu của giao diện sẽ do chính shockware đảm nhận.
I- Nhúng Nhạc đơn thông thường
Ví dụ, bạn muốn nhúng bài "Ngại Ngùng - Tuấn Vũ" từ địa chỉ
http://amnhac.timnhanh.com/membserv/song/35B20396
Khi copy nội dung trong ô Nhúng vào blog bạn sẽ được code sau:
<object width='463' height='269'><param name='movie' value
='http://static.yume.vn/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0xFFD9FF&colorMain=0xc175d4'></param><param

name='wmode' value='transparent'><param name='allowscriptaccess'
value='always'></param><embed
src='http://static.yume.vn/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0xFFD9FF&colorMain=0xc175d4'

type='application/x-shockwave-flash' width='463' height='269'
wmode='transparent'
allowscriptaccess='always'></embed></object> (1)
Sau đó bạn chọn copy từ
xmlPath= đến trước dấu
nháy đơn (')kế
tiếp tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533

(2)
Bạn hãy ghi chồng chuỗi (2) lên XMLCODE trong code mẫu dưới đây:
<EMBED height=118
type=application/x-shockwave-flash width=463

src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=XMLCode&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never"> (3)
Làm xong như thế bạn sẽ được code nhúng:
<EMBED height=118 type=application/x-shockwave-flash
width=463
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/251121657.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never"> (4)
và player sẽ như sau:





II- Nhúng Playlist thông thường
Ví dụ, bạn tìm được playlist Tình Khúc Ngô Thụy Miên tại địa chỉ
http://amnhac.timnhanh.com/cauchuyenmuathu_78/playlist/35A89B71
Copy code nhúng bạn sẽ được:
<object width='463' height='269'><param name='movie' value
='http://static.yume.vn/yumemusic/flashplayer/flplayerlistblog.swf?xmlPath=http://amnhac.yume.vn/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1652002081.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0x737479&colorMain=0x0F1015'></param><param

name='wmode' value='transparent'><param name='allowscriptaccess'
value='always'></param><embed
src='http://static.yume.vn/yumemusic/flashplayer/flplayerlistblog.swf?xmlPath=http://amnhac.yume.vn/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1652002081.xml&getLyric=http://amnhac.yume.vn/player/getLyric/&mAuto=true&colorAux=0x737479&colorMain=0x0F1015'

type='application/x-shockwave-flash' width='463' height='269'
wmode='transparent'
allowscriptaccess='always'></embed></object> (1)
Sau đó bạn chọn copy từ
xmlPath= đến
hết xml   tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
 
xmlPath=http://amnhac.timnhanh.com/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1233903029.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C

(2)
Bạn ghi chồng code (2) vừa nhận được lên chuỗi XMLCODE trong code mẫu dưới
đây:
<EMBED height=118
type=application/x-shockwave-flash width=463

src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=XMLCode&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never"> (3)
Làm xong như thế bạn sẽ được code nhúng:
<embed
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1652002081.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C&?http://i500.photobucket.com/trang-sinh"

type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never"> (4)
Player từ (4) trên Plus trông như sau


(PlayList Ngô Thụy Miên)
Nhược điểm của phương pháp này là không hiện List cho nên không thể chọn bài
để nghe. Người nghe chỉ có thể sang bài khác bằng nút
►hay ◄ 
.
III- Nhúng Bài hát nổi bật và PlayList nổi bật
Đặc điểm của 2 ứng dụng này là không cung cấp Mã Nhúng. Để biết cách lấy
code, bạn hãy tham khảo Phụ Lục ở cuối bài này.
Cách nhúng vào Plus hoàn toàn giống Bài Hát thông thường và playylist thông
thường.
V- Đổi cỡ và đổi màu giao diện
Đây là điểm mới nhất trong lần viết cập
nhật này. Bạn có thể tùy chọn một trong 4 flash dưới đây để hiển thị giao
diện.
Tôi lấy ví dụ 1 bài hát đơn thông thường để làm mẫu. Những phương pháp sau
đây có thể áp dụng với các ứng dụng còn lại.
Bạn có 4 shockware để thay đổi.
Ví dụ bài Muốn Nói Lời Yêu Em - Ưng Hoàng Phúc. Địa chỉ:

http://amnhac.timnhanh.com/nghe-baihat-muon-noi-loi-yeu-em-ung-hoang-phuc.huy_su_f90.35B200F0.html
1-
flsongblog.swf: kích cỡ 463x224
(khổ chữ nhật ngang)
màu xám cố định.
(Đường dẫn shockware: http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf)
Code nhúng:
<EMBED height=118 type=application/x-shockwave-flash width=463
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">










2- ym_simpleplayer_178x133_color_secure_081024.swf:
kích cỡ 178x133 (khổ vuông) màu xám cố định.
(Đường dẫn shockware:
http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf)
Code nhúng:
<EMBED height=133 type=application/x-shockwave-flash width=178
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"

AllowScriptAccess="never">

3- ym_playerlist_179x207_color_2col_secure_081024.swf: kích cỡ 179x207 (khổ vuông dạng đứng) màu xám cố định.

(Đường dẫn shockware : http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf)

Code nhúng:


3-
ym_playerlist_179x207_color_2col_secure_081024.swf:
kích cỡ 179x207 (khổ vuông dạng đứng) màu xám cố định.
(Đường dẫn shockware :
http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf)
Code nhúng:
<embed
src="http://i118.photobucket.com/albums/o93/olympia41124/Flash/ytuongquangBlog.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf?xmlPath=http://amnhac.yume.vn/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/824252993.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x123456&colorMain=0xff00ff&?http://i500.photobucket.com/trang-sinh"

type="application/x-shockwave-flash" width="179" height="207"
wmode="transparent" allowscriptaccess="never">


PHỤ LỤC: Cách lấy mã HTML từ Player
Thao tác 1- Rê chọn Player
Bạn phải rê chọn cho khéo tay, nếu không thế, bạn sẽ chọn nhiều hơn dự kiến
và mã HTML sẽ rất nhiều đến nỗi khó tìm ra bộ mã cần dùng.
Thao tác 2- Ấn [CTRL+C] để copy
Thao tác 3- Dán nội dung đã copy vào khung soạn thảo Normal trong Plus bằng cách
nhấn [CTRL+V].
*** Để cho nhanh, bạn có thể paste ngay vào ô comment bên dưới mỗi entry (nếu
bạn đã đăng nhập).

*** Nếu bạn có chương trình FrontPage trên máy thì hết sức thuận tiện để thực
hiện thao tác này.
Thao tác 4- Bấm vào ô HTML để thấy code.
Nhận dạng code: code mà bạn tìm bao giờ cũng bắt đầu bằng <embed . Có thể kết
thúc chỉ với dấu > hoặc với thẻ </embed>.
Thao tác 5- Copy khối code đó rồi paste vào Notepad.
Như vậy là bạn đã có code nguyên thủy của player.

Tham khảo:

- Nguồn loading: ytuongquang

- Nguồn nhạc: yume:

- Kỹ thuật: trinhsang

- Viết bài: trinhsang

 Cập nhật 21:30 ngày 18/12/2009

Tôi đã nhúng thành công shockware của mỗi ứng dụng trong YUME lên
plus nhờ tìm được Flash dẫn. Tuy thế, vì YUME dùng nhiều shockware khác
nhau trong mỗi ứng dụng nên tôi cố gắng tìm một phương pháp nhúng nhạc
thống nhất để nhúng nhạc từ 4 ứng dụng nhạc của YUME thay thế cho bài Nhúng nhạc từ các ứng dụng của YUME  -  Kết quả cũng không thể cho hiện playlist, nhưng đã có shockware màu và sockware cỡ nhỏ.
Đây là các shockware để bạn thay đổi:
  1. http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf:
    kích cỡ 179x207 (khổ vuông) nguyên thủy có màu,  khi sang plus thì màu
    xám. Giao diện dạng đứng.
  2. http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf:
    kích cỡ 178x133 (khổ vuông) nguyên thủy có màu,  khi sang plus thì màu
    xám
  3. http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf: kích cỡ 463x224 (khổ chữ nhật ngang) nguyên thủy màu xám.
  4. http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf:
    kích cỡ 463x224 (khổ chữ nhật ngang) nguyên thủy có màu, khi sang plus
    thì cố định 1 màu xanh dương.
Trong YUME thì màu sắc được tùy biến ở mã
&colorAux=0x6FD997&colorMain=0x0b7533 nhưng khi nhúng vào Plus
thì 2 tham số này không hoạt động. Bởi thế, màu của giao diện sẽ do
chính shockware đảm nhận.
I- Nhúng Nhạc đơn thông thường
Ví dụ, bạn muốn nhúng bài "Ngại Ngùng - Tuấn Vũ" từ địa chỉ http://amnhac.timnhanh.com/membserv/song/35B20396
Khi copy nội dung trong ô Nhúng vào blog bạn sẽ được code sau:
<object width='463' height='269'><param name='movie' value
='http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/379093687.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533'></param><param
name='wmode' value='transparent'><param name='allowscriptaccess'
value='always'></param><embed
src='http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/379093687.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533'
type='application/x-shockwave-flash' width='463' height='269'
wmode='transparent'
allowscriptaccess='always'></embed></object> (1)
Sau đó bạn chọn copy từ xmlPath= đến trước dấu nháy đơn (')kế tiếp tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
xmlPath=http://amnhac.timnhanh.com/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/379093687.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533
(2)
Bạn hãy ghi chồng chuỗi (2) lên XMLCODE trong code mẫu dưới đây:
<EMBED height=118
type=application/x-shockwave-flash width=463
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?XMLCode&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never"> (3)
Làm xong như thế bạn sẽ được code nhúng:
<EMBED height=118 type=application/x-shockwave-flash width=463
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B20396/05b8466d1eda60dd64b336af79278554/1390755/379093687.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6FD997&colorMain=0x0b7533&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never"> (4)
và player sẽ như sau:


II- Nhúng Playlist thông thường
Ví dụ, bạn tìm được playlist Tình Khúc Ngô Thụy Miên tại địa chỉ http://amnhac.timnhanh.com/cauchuyenmuathu_78/playlist/35A89B71
Copy code nhúng bạn sẽ được:
<object width='463' height='269'><param name='movie' value
='http://static.timnhanh.com/yumemusic/flashplayer/flplayerlistblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1233903029.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C'></param><param
name='wmode' value='transparent'></param><param
name='allowscriptaccess' value='always'></param><embed
src='http://static.timnhanh.com/yumemusic/flashplayer/flplayerlistblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1233903029.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C'
type='application/x-shockwave-flash' width='463' height='269'
wmode='transparent'
allowscriptaccess='always'></embed></object> (1)
Sau đó bạn chọn copy từ xmlPath= đến trước dấu nháy đơn (')kế tiếp tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
 
xmlPath=http://amnhac.timnhanh.com/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1233903029.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C
(2)
Bạn ghi chồng code (2) vừa nhận được lên chuỗi XMLCODE trong code mẫu dưới đây:
<EMBED height=118
type=application/x-shockwave-flash width=463
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?XMLCode&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never"> (3)
Làm xong như thế bạn sẽ được code nhúng:
<embed
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/1/35A89B71/54819d96a6fe199b257ce889ecd9704e/1425157/1233903029.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C&?http://i500.photobucket.com/trang-sinh"
type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never"> (4)
Player từ (4) trên Plus trông như sau
  

(PlayList Ngô Thụy Miên)
Nhược điểm của phương pháp này là không hiện List cho nên không thể
chọn bài để nghe. Người dùng chỉ có thể sang bài khác bằng nút ►hay ◄  .
III- Nhúng Bài hát nổi bật
Ví dụ, bài Long For Love - Trần Tiểu Bình .
Ứng dụng này Không Cung Cấp Mã Nhúng. Bạn hãy xem Phụ Lục ở cuối entry để tập cách lấy mã HTML.
Mã nhúng nhận được như sau:
<embed id="swfsonghot" name="swfsonghot"
src="http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf"
width="178" height="133" type="application/x-shockwave-flash"
quality="high" menu="false" wmode="transparent"
allowscriptaccess="always"
flashvars="xmlPath=http://amnhac.timnhanh.com/getxml/0/35AE34E4/e7946954e6d2a5973ea74f14bd807086/1425157/949225012.xml&getLyric=http://amnhac.timnhanh.complayer/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C&mAuto=true">
(1)
Sau đó bạn chọn copy từ xmlPath= đến trước dấu nháy đôi (")kế tiếp tương tự phần bôi đen trong minh họa dưới đây:
Sau thao tác Copy bạn sẽ được chuỗi này:
 
xmlPath=http://amnhac.timnhanh.com/getxml/0/35AE34E4/e7946954e6d2a5973ea74f14bd807086/1425157/949225012.xml&getLyric=http://amnhac.timnhanh.complayer/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C&mAuto=true
(2)
Bạn ghi chồng code (2) vừa nhận được lên chuỗi XMLCODE trong code mẫu dưới đây:
<EMBED height=118
type=application/x-shockwave-flash width=463
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?XMLCode&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never"> (3)
Làm xong như thế bạn sẽ được code nhúng:
<EMBED height=118 type=application/x-shockwave-flash width=463
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35AE34E4/e7946954e6d2a5973ea74f14bd807086/1425157/949225012.xml&getLyric=http://amnhac.timnhanh.complayer/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C&mAuto=true&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never"> (4)
[Lúc này bạn có thể sửa mAuto=true (chạy tự động) thành mAuto=false (không chạy tự động), nếu muốn]
Player từ (4) trên Plus trông như sau (đã sửa code cho không chạy tự động):


IV- Nhúng PlayList nổi bật
Ứng dụng này Không Cung Cấp Mã Nhúng. Bạn hãy xem Phụ Lục ở cuối entry để tập cách lấy mã HTML.
Cách lấy Code (1) cũng hoàn toàn giống như phần III.
Chuỗi copy vừa nhận được, tức code (2) sẽ như sau:
xmlPath=http://amnhac.timnhanh.com/getxml/1/35A8B282/75f63893738fae797f9aa0f779bc5cff/1425157/1271839877.xml&getLyric=http://amnhac.timnhanh.complayer/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C
(2)
Bạn ghi chồng code (2) vừa nhận được lên chuỗi XMLCODE trong code mẫu dưới đây:
Dán code (2) vào Code Mẫu dưới đây
<embed
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf?XMLCODE&?http://i500.photobucket.com/trang-sinh"
type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never"> (3)
sẽ được code nhúng là:
<embed
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf?xmlPath=http://amnhac.timnhanh.com/getxml/1/35A8B282/75f63893738fae797f9aa0f779bc5cff/1425157/1271839877.xml&getLyric=http://amnhac.timnhanh.complayer/getLyric/&colorAux=0x6F7070&colorMain=0x0B0C0C
&?http://i500.photobucket.com/trang-sinh"
type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never"> (4)
Player từ (4) trên Plus trông như sau :


Nhược điểm của phương pháp này là không hiện List cho nên không
thể chọn bài để nghe. Người dùng chỉ có thể sang bài khác bằng nút ►hay
◄  .
V- Đổi cỡ và đổi màu giao diện
Đây là điểm mới nhất trong lần cập nhật này. Bạn có 4 shockware để thay đổi.
Tôi lấy ví dụ 1 bài hát đơn thông thường để làm mẫu. Những phương pháp sau đây có thể áp dụng với các ứng dụng còn lại.
Ví dụ bài Muốn Nói Lời Yêu Em - Ưng Hoàng Phúc. Địa chỉ:
http://amnhac.timnhanh.com/nghe-baihat-muon-noi-loi-yeu-em-ung-hoang-phuc.huy_su_f90.35B200F0.html
1- flsongblog.swf: kích cỡ 463x224 (khổ chữ nhật ngang) màu xám cố định.
Đường dẫn: http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf
Code nhúng:
<EMBED height=118 type=application/x-shockwave-flash width=463
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yumemusic/flashplayer/flsongblog.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/1156568092.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never">


2- ym_simpleplayer_178x133_color_secure_081024.swf: kích cỡ 178x133 (khổ vuông) màu xám cố định.
Đường dẫn: http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf
Code nhúng:
<EMBED height=133 type=application/x-shockwave-flash width=178
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/song/ym_simpleplayer_178x133_color_secure_081024.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/1156568092.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"
AllowScriptAccess="never">


3- ym_playerlist_179x207_color_2col_secure_081024.swf: kích cỡ 179x207 (khổ vuông dạng đứng) màu xám cố định.
Đường dẫn: http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf
Code nhúng:
<embed
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_179x207_color_2col_secure_081024.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/1156568092.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x123456&colorMain=0xff00ff&?http://i500.photobucket.com/trang-sinh"
type="application/x-shockwave-flash" width="179" height="207"
wmode="transparent" allowscriptaccess="never">


4- ym_playerlist_463x224_color_2col_secure_081024.swf: kích cỡ 463x224 (khổ chữ nhật ngang) có màu xanh dương.
Đường dẫn: http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf
Code nhúng:
<embed
src="http://img195.imageshack.us/img195/3863/onlymeflash.swf?link=http://static.timnhanh.com/yume/20091112/flashplayer/playlist/ym_playerlist_463x224_color_2col_secure_081024.swf?xmlPath=http://amnhac.timnhanh.com/getxml/0/35B200F0/665e73a8e55d1446768ee715607dd5dd/1110438/1156568092.xml&getLyric=http://amnhac.timnhanh.com/player/getLyric/&colorAux=0x646464&colorMain=0x000000&?http://i500.photobucket.com/trang-sinh"
type="application/x-shockwave-flash" width="463" height="100"
wmode="transparent" allowscriptaccess="never">




PHỤ LỤC: Cách lấy mã HTML từ Player
1- Rê chọn Player
Bạn phải rê chọn cho khéo tay, nếu không thế, bạn sẽ chọn nhiều hơn
dự kiến và mã HTML sẽ rất nhiều đến nỗi hết tìm ra bộ mã cần dùng.
2- Ấn [CTRL+C] để copy
3- Dán nội dung đã copy vào khung soạn thảo Normal trong Plus bằng cách nhấn [CTRL+V].
  • Để cho nhanh, bạn có thể paste ngay vào ô comment bên dưới mỗi entry (nếu bạn đã đăng nhập).
  • Nếu bạn có chương trình FrontPage trên máy thì hết sức thuận tiện để thực hiện thao tác này.
4- Bấm vào ô HTML để thấy code.
Chú ý: code mà bạn tìm bao giờ cũng bắt đầu bằng <embed . Có thể kết thúc chỉ với dấu > hoặc với thẻ </embed>.
5- Copy khối code đó rồi paste vào Notepad.
Như vậy là bạn đã có code của player.


Nguồn:trang-sinh

Không có nhận xét nào:

Đăng nhận xét

Bài đăng Phổ biến

Nhãn