flv ã video/x-flv ã¨ãã¦MIME Typeã«ç»é²
qrtubeã®ãããã§ç°¡åã«YouTubeã®åç»ï¼æ¡å¼µåã¯flvï¼ããã¦ã³ãã¼ãã§ããããã«ãªã£ãããZPlayerã«é¢é£ä»ãã¦åçã§ããããã«ããããªãã®ã人æ
ã¨ãããã®ã
ããã©ã«ãã§flvã¯MIME Typeã«ç»é²ããã¦ãªãã®ã§ãæ¬å®¶ï¼Playing back external FLV files dynamicallyï¼ã«å¾ã£ã¦ãvideo/x-flv flvãã£ã¦è¡ã /opt/QtPalmtop/etc/mime.types ã«è¿½å ããã
ZPlayer ã« video/x-flv ãé¢é£ä»ã
ãã¨ã¯ZPlayerã®desktopãã¡ã¤ã«ï¼ããã©ã«ãã ã¨/opt/QtPalmtop/apps/Application/zplayer.desktopï¼ã®ãMimeType = ãã§å§ã¾ãè¡æ«ã«ã;video/x-flvãã£ã¦ãªã«ã³ã¸ã§è¿½å ããã ãããã§ãåèµ·åããã¨ã
ããã±ã¼ã¸ã«ãã¦ã¿ã
ããã ãã®æé ã§ãé¢åãªã¢ã³ã¯é¢åãªã®ã§ããã±ã¼ã¸ã«ãã¦ã¿ãããã¤ãã®ãã¨ããã¤ã³ã¹ãã¼ã«ãããã®ã¯ä½ããªãã®ã§ç©ºã®./optãã£ã¬ã¯ããªãdata.tar.gzã§å§ç¸®ãã¦ãåæ§ã«ã2.0ãã¨ã ãæ¸ãããdebian-binaryãã¡ã¤ã«ãç¨æããã
bash-2.05$ mkdir ./opt bash-2.05$ tar cvf - ./opt | gzip - > data.tar.gz bash-2.05$ echo "2.0" > debian-binary
ãã¨ã¯ã¤ã³ã¹ãã¼ã«å¾ã«åä½ããã¹ã¯ãªãã postinst ãä¸è¨ã®ãããªå 容ã§ç¨æããã
#!/bin/sh cp /opt/QtPalmtop/etc/mime.types /tmp/mime.types echo 'video/x-flv flv' >> /tmp/mime.types sort /tmp/mime.types > /opt/QtPalmtop/etc/mime.types for file in `find /opt/QtPalmtop/apps/ -name zplayer.desktop -print` do cp $file /tmp/zplayer.desktop sed -e '/^MimeType =/s/$/;video\/x-flv/' /tmp/zplayer.desktop > $file done
mime.typesã¯SL-A300ã®NetFrontã®ããã±ã¼ã¸ã«ããã¨ã½ã¼ããã¨ããªãã¨ãããªãã£ã½ãã®ã§ä¸å¿ãããã¦ãã
zplayer.desktopã¯å¥ã®ã¿ãã«ç§»åãã¦ã¦ãããããã«ã/opt/QtPalmtop/apps 以ä¸ããæ¤ç´¢ãã¦ãMimeType = ã§å§ã¾ãè¡ï¼sed ã§ã¯ ^ ã§è¡é ã表ãï¼ã®æ«å°¾ï¼sed ã§ã¯ $ ã§è¡¨ãï¼ã ;video/x-flv ã«ç½®ãæãããã¨ã§è¿½å ãè¡ã£ã¦ããã
åæ§ã«ãã¦ã¢ã³ã¤ã³ã¹ãã¼ã«åã«å®è¡ãããã¹ã¯ãªãã prermã以ä¸ã®ããã«ä½æã
#!/bin/sh cp /opt/QtPalmtop/etc/mime.types /tmp/mime.types sed -e '/^video\/x-flv flv$/d' /tmp/mime.types > /opt/QtPalmtop/etc/mime.types for file in `find /opt/QtPalmtop/apps/ -name zplayer.desktop -print` do cp $file /tmp/zplayer.desktop sed -e '/^MimeType =/s/;video\/x-flv//' /tmp/zplayer.desktop > $file done
æå¾ã«ããã±ã¼ã¸ã®ååã¨ããæ¸ãã control ãã¡ã¤ã«ã以ä¸ã®ãããªå 容ã§ä½æãDepends ã¯åæã¨ãªãããã±ã¼ã¸ã®ååã
Package: zplayer-flv Version: 0.0.1-1 Architecture: arm Maintaier: Nyanonon Depends: zplayer Description: ZPlayer flv file link added.
æå¾ã« control 㨠postinst 㨠prerm ãå§ç¸®ã㦠control.tar.gz ã«ããcontrol.tar.gz 㨠data.tar.gz 㨠debian-binary ãå§ç¸®ãã¦ãããã±ã¼ã¸ã®åºæ¥ä¸ããã
bash-2.05$ tar cvf - ./control ./postinst ./prerm | gzip - > control.tar.gz bash-2.05$ tar cvf - ./control.tar.gz ./data.tar.gz ./debian-binary | gzip - > ~/Documents/Install_Files/zplayer-flv_0.0.1-1_arm.ipk
æ¬ä½ã¡ã¢ãªã¼ã®Install_Filesã«åºæ¥ãããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã¨ãmime.typesã¨zplayer.desktopãæ¸ãæãããããã½ããã¦ã§ã¢ã®è¿½å /åé¤ã§ã¤ã³ã¹ãã¼ã«ããã¨ãèªåçã«é¢é£ä»ããæ´æ°ãããã®ã§åèµ·åããªãã¦ã flv ã ZPlayer ã«é¢é£ä»ãããã¦ããããºã
- ZPlayerã«flvãé¢é£ä»ããã zplayer-flv 0.0.1-1
- http://www.areanine.gr.jp/~nyano/archives/slzaurus/zplayer-flv_0.0.1-1_arm.ipk