前陣子我下載了一個軟體,他標明為Universal binary,這代表可以在Intel Mac與PowerPC上執行,這讓我突然想到,那Widget呢?Widget需要去做Universal Binary嗎?
於是我上網ADC去找相關資料,裡面寫著Widget有很多種,而像是Hinet Radio的widget適用javascript寫成的,所以並沒有跨平台的問題,所以代表這廣播widget並不需要改寫。
但是這Widget是用windows media player plugin來執行的,也就是說,widget沒有平台的問題,但是plugin就不是了,到時候如果在intel Mac上面的話,widget可以啟動,但是wmp plugin就不行,也許大家會想:有Rosetta呀!?
對,有Rosetta沒錯,但是ADC上面的技術支援也有明白的指出,widget可以經由Rosetta執行,但是plugin並不行透過Rosetta
以下是ADC的資料:
Dashboard widgets that use plug-ins, however, will need to make sure those plug-ins have been built as universal binaries. There are two types of plug-ins that a widget can make use of:
Widget Plug-Ins. If you have written a widget plug-in for your Dashboard widget, you will need to rebuild it as a universal binary in order for your widget to run on Intel-based Macs. A PowerPC-only widget plug-in will not load on Intel-based Macintosh computers. Rosetta will not be used because the DashboardClient process behind each widget launches natively on an Intel-based Mac. The widget itself will still load, but the plug-in and all of its functionality will not be available to it.
Internet Plug-Ins. Internet plug-ins, typically incorporated via the embed tag, will also need to be built as universal binaries to run in Dashboard as well as Safari on Intel-based Macs. If you have your own web plug-in which you install for use in Dashboard or Safari, you must rebuild it as a Universal Binary. If your Dashboard widget (or website) uses a third-party internet plug-in, please contact the developer of that plug-in to make sure a universal binary version of the plug-in is available or in progress.
如果我英文沒看錯的話,他說plugin需要在重新編譯成universal Binary的檔案,這下可好玩了,Windows Media Player已經不在開發,也就是說不會再有Universal Binary的Windows media plugin,而Rosetta也不行用在inernet plugins上面,所以到時候Intel Mac就沒辦法收聽。
而現在有Flip4Mac這軟體,這軟體可以讓Quicktime執行windows media formats,當然也包含了mms,所以理當說我們可以不用在依靠windows media player了,可以用quicktime來作(這會好很多,而且可以更方便加入更多功能,之前wmp實在是很難寫程式碼來控制他),而我在測試quicktime播放mms串流的結果,發現了個很奇怪的事情:
我拿大部分有直接明確提供mms位置的url去讓quicktime來播放,可以正常播放,沒什麼問題。
但是!就只有該死的Hinet不行!!!他的mms位置是在網頁裡面,我把那位置擷取出來後丟進Quicktime裡,就是沒辦法解析位置!但是同樣丟進windows media player卻又可以解析並且播放。這真的很詭異,我不清楚到底是發生什麼鳥事會這樣,為什麼幾乎其他所有的mms都可以由flip4mac來播放,但就只有Hinet的mms位置不能被解析,這是flip4mac的問題還是Hinet的問題呢?
我對mms並不了解,我更不了解為什麼hinet的mms位置要作成動態的,也許問題是在hinet的mms位置上面,是不是在那個變動的mms位置之後還有其他位置?有沒有可能在那變動位置後面有對應一個真正的正常URL?不知道能否有高手為我解答呢?因為我想提早準備好,讓intel mac出來後大家還是可以收聽廣播,麻煩高手了,感謝 ^^
這裡提供亞太廣播電台在hinet網頁中的mms位置程式碼:
Player.URL = "http://grm.cdn.hinet.net/media/radio/play.asp?mmsurl=mms://live.media.hinet.net/Radio_asiafm923?RADIOWEBE5D106BB-0A40-49E9-B7E2-ED8B2C5877AA";
其中mms://live.media.hinet.net/Radio_asiafm923?RADIOWEBE5D106BB-0A40-49E9-B7E2-ED8B2C5877AA就是mms串流,也是問題所在,這個位置可以用windows media player播放,但是flip4mac卻不行。
ps:此mms位置可能會隨著變動而失效。
內文搜尋

X