文件名称:StreamingDemo
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 67kb
- 下载次数:
- 0次
- 提 供 者:
- m***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
第一步:
声明两个Player,分别由两个独立的线程掌控着;
第二步:
HttpConnection开始向服务器请求该audio文件的第一部分字节,我们定这次读取的字节数为18KB;
第三步:
等第一部分数据到位后,Player A开始realize和prefetch,并开始播放;
第四步:
在Player A播放同时,(18KB的amr数据可以播放10秒钟),HttpConnection继续请求第二部分数据(假设GPRS每秒钟传输3KB,那么18KB需要传输6秒,算上前后通讯损失的时间,应该不会超过10秒钟);
第五步:
第二部分数据到位后,假设Player A还没有播放完(这需要调整你的每一部份数据字节数来使得假设成立),那么将数据喂给Player B让它realize和prefetch;
第六步:
Player A播放完后,得到事件通知,于是让Player B开始播放。
如此往复。
声明两个Player,分别由两个独立的线程掌控着;
第二步:
HttpConnection开始向服务器请求该audio文件的第一部分字节,我们定这次读取的字节数为18KB;
第三步:
等第一部分数据到位后,Player A开始realize和prefetch,并开始播放;
第四步:
在Player A播放同时,(18KB的amr数据可以播放10秒钟),HttpConnection继续请求第二部分数据(假设GPRS每秒钟传输3KB,那么18KB需要传输6秒,算上前后通讯损失的时间,应该不会超过10秒钟);
第五步:
第二部分数据到位后,假设Player A还没有播放完(这需要调整你的每一部份数据字节数来使得假设成立),那么将数据喂给Player B让它realize和prefetch;
第六步:
Player A播放完后,得到事件通知,于是让Player B开始播放。
如此往复。
相关搜索: streamingdemo
(系统自动生成,下载前可以参看下载内容)
下载文件列表
StreamingDemo\.classpath
.............\.eclipseme
.............\.project
.............\StreamingDemo.jad
.............\verified\classes\.classpath
.............\........\.......\.eclipseme
.............\........\.......\.project
.............\........\.......\res\icons\command.png
.............\........\.......\...\.....\logo.png
.............\........\.......\com\ultrapower\view\FormPlayer$FormListener.class
.............\........\.......\...\..........\....\FormPlayer.class
.............\........\.......\...\..........\model\Audio.class
.............\........\.......\...\..........\.....\NonInteractiveGaugeRunnable.class
.............\........\.......\...\..........\.....\ThreadPlayMain.class
.............\........\.......\...\..........\.idlet\StreamingDemo.class
.............\........\.......\...\..........\control\GUIController$EventID.class
.............\........\.......\...\..........\.......\GUIController.class
.............\........\.......\...\..........\..mmon\CommandResources.class
.............\........\.......\.settings\org.eclipse.jdt.core.prefs
.............\src\com\ultrapower\view\FormPlayer.java
.............\...\...\..........\model\Audio.java
.............\...\...\..........\.....\NonInteractiveGaugeRunnable.java
.............\...\...\..........\.....\ThreadPlayMain.java
.............\...\...\..........\.idlet\StreamingDemo.java
.............\...\...\..........\control\GUIController.java
.............\...\...\..........\..mmon\CommandResources.java
.............\res\icons\command.png
.............\...\.....\logo.png
.............\deployed\StreamingDemo.jad
.............\........\StreamingDemo.jar
.............\bin\.classpath
.............\...\.eclipseme
.............\...\.project
.............\...\StreamingDemo.jad
.............\...\res\icons\command.png
.............\...\...\.....\logo.png
.............\...\com\ultrapower\view\FormPlayer$FormListener.class
.............\...\...\..........\....\FormPlayer.class
.............\...\...\..........\model\Audio.class
.............\...\...\..........\.....\NonInteractiveGaugeRunnable.class
.............\...\...\..........\.....\ThreadPlayMain.class
.............\...\...\..........\.idlet\StreamingDemo.class
.............\...\...\..........\control\GUIController$EventID.class
.............\...\...\..........\.......\GUIController.class
.............\...\...\..........\..mmon\CommandResources.class
.............\...\.settings\org.eclipse.jdt.core.prefs
.............\.settings\org.eclipse.jdt.core.prefs
.............\verified\classes\jp\jayf\framework\io
.............\........\.......\..\....\framework
.............\........\.......\com\ultrapower\view
.............\........\.......\...\..........\model
.............\........\.......\...\..........\midlet
.............\........\.......\...\..........\control
.............\........\.......\...\..........\common
.............\........\.......\res\icons
.............\........\.......\jp\jayf
.............\........\.......\com\ultrapower
.............\src\com\ultrapower\view
.............\...\...\..........\model
.............\...\...\..........\midlet
.............\...\...\..........\control
.............\...\...\..........\common
.............\bin\com\ultrapower\view
.............\...\...\..........\model
.............\...\...\..........\midlet
.............\...\...\..........\control
.............\...\...\..........\common
.............\verified\classes\res
.............\........\.......\jp
.............\........\.......\com
.............\........\.......\.settings
.............\src\com\ultrapower
.............\bin\res\icons
.............\...\com\ultrapower
.............\verified\libs
.............\........\classes
.............\src\com
.............\res\icons
.............\bin\res
.............\...\com
.............\...\.settings
.............\verified
.............\src
.............\res
.............\deployed
.............\bin
.............\.settings
StreamingDemo
.............\.eclipseme
.............\.project
.............\StreamingDemo.jad
.............\verified\classes\.classpath
.............\........\.......\.eclipseme
.............\........\.......\.project
.............\........\.......\res\icons\command.png
.............\........\.......\...\.....\logo.png
.............\........\.......\com\ultrapower\view\FormPlayer$FormListener.class
.............\........\.......\...\..........\....\FormPlayer.class
.............\........\.......\...\..........\model\Audio.class
.............\........\.......\...\..........\.....\NonInteractiveGaugeRunnable.class
.............\........\.......\...\..........\.....\ThreadPlayMain.class
.............\........\.......\...\..........\.idlet\StreamingDemo.class
.............\........\.......\...\..........\control\GUIController$EventID.class
.............\........\.......\...\..........\.......\GUIController.class
.............\........\.......\...\..........\..mmon\CommandResources.class
.............\........\.......\.settings\org.eclipse.jdt.core.prefs
.............\src\com\ultrapower\view\FormPlayer.java
.............\...\...\..........\model\Audio.java
.............\...\...\..........\.....\NonInteractiveGaugeRunnable.java
.............\...\...\..........\.....\ThreadPlayMain.java
.............\...\...\..........\.idlet\StreamingDemo.java
.............\...\...\..........\control\GUIController.java
.............\...\...\..........\..mmon\CommandResources.java
.............\res\icons\command.png
.............\...\.....\logo.png
.............\deployed\StreamingDemo.jad
.............\........\StreamingDemo.jar
.............\bin\.classpath
.............\...\.eclipseme
.............\...\.project
.............\...\StreamingDemo.jad
.............\...\res\icons\command.png
.............\...\...\.....\logo.png
.............\...\com\ultrapower\view\FormPlayer$FormListener.class
.............\...\...\..........\....\FormPlayer.class
.............\...\...\..........\model\Audio.class
.............\...\...\..........\.....\NonInteractiveGaugeRunnable.class
.............\...\...\..........\.....\ThreadPlayMain.class
.............\...\...\..........\.idlet\StreamingDemo.class
.............\...\...\..........\control\GUIController$EventID.class
.............\...\...\..........\.......\GUIController.class
.............\...\...\..........\..mmon\CommandResources.class
.............\...\.settings\org.eclipse.jdt.core.prefs
.............\.settings\org.eclipse.jdt.core.prefs
.............\verified\classes\jp\jayf\framework\io
.............\........\.......\..\....\framework
.............\........\.......\com\ultrapower\view
.............\........\.......\...\..........\model
.............\........\.......\...\..........\midlet
.............\........\.......\...\..........\control
.............\........\.......\...\..........\common
.............\........\.......\res\icons
.............\........\.......\jp\jayf
.............\........\.......\com\ultrapower
.............\src\com\ultrapower\view
.............\...\...\..........\model
.............\...\...\..........\midlet
.............\...\...\..........\control
.............\...\...\..........\common
.............\bin\com\ultrapower\view
.............\...\...\..........\model
.............\...\...\..........\midlet
.............\...\...\..........\control
.............\...\...\..........\common
.............\verified\classes\res
.............\........\.......\jp
.............\........\.......\com
.............\........\.......\.settings
.............\src\com\ultrapower
.............\bin\res\icons
.............\...\com\ultrapower
.............\verified\libs
.............\........\classes
.............\src\com
.............\res\icons
.............\bin\res
.............\...\com
.............\...\.settings
.............\verified
.............\src
.............\res
.............\deployed
.............\bin
.............\.settings
StreamingDemo