зеркало из https://github.com/mozilla/pluotsorbet.git
Use a video encoded with VP8 instead of h264
This commit is contained in:
Родитель
04a0c5a090
Коммит
1c04cf1387
|
@ -3,9 +3,6 @@ node_js:
|
|||
- "0.10"
|
||||
env:
|
||||
- DISPLAY=:99.0
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y gstreamer0.10-plugins-good gstreamer0.10-ffmpeg
|
||||
before_script:
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
- npm install casperjs
|
||||
|
@ -20,6 +17,7 @@ before_script:
|
|||
- export PATH=$PATH:/tmp/js
|
||||
script:
|
||||
- make test
|
||||
sudo: false
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
|
|
@ -33,7 +33,7 @@ PACKAGE_FILES = \
|
|||
javax/microedition/media/audio.3gp \
|
||||
javax/microedition/media/audio.amr \
|
||||
javax/microedition/media/hello.ogg \
|
||||
javax/microedition/media/test.mp4 \
|
||||
javax/microedition/media/test.webm \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(JSR_256),1)
|
||||
|
@ -45,8 +45,8 @@ all: tests.jar
|
|||
../java/classes.jar:
|
||||
cd ../java && make
|
||||
|
||||
javax/microedition/media/test.mp4: gfx/images/red.png
|
||||
ffmpeg -loop 1 -i gfx/images/red.png -c:v libx264 -t 10 javax/microedition/media/test.mp4
|
||||
javax/microedition/media/test.webm: gfx/images/red.png
|
||||
ffmpeg -loop 1 -i gfx/images/red.png -t 10 javax/microedition/media/test.webm
|
||||
|
||||
Testlets.java: $(SRCS) $(JASMIN_SRCS) Makefile
|
||||
echo "public class Testlets {" > $@
|
||||
|
|
|
@ -34,16 +34,16 @@ public class VideoPlayerTest extends MIDlet implements PlayerListener {
|
|||
public void startApp() {
|
||||
try {
|
||||
String dirPath = System.getProperty("fileconn.dir.private");
|
||||
FileConnection file = (FileConnection)Connector.open(dirPath + "test.mp4", Connector.READ_WRITE);
|
||||
FileConnection file = (FileConnection)Connector.open(dirPath + "test.webm", Connector.READ_WRITE);
|
||||
if (!file.exists()) {
|
||||
file.create();
|
||||
}
|
||||
OutputStream os = file.openDataOutputStream();
|
||||
InputStream is = getClass().getResourceAsStream("/javax/microedition/media/test.mp4");
|
||||
InputStream is = getClass().getResourceAsStream("/javax/microedition/media/test.webm");
|
||||
os.write(TestUtils.read(is));
|
||||
os.close();
|
||||
|
||||
Player player = Manager.createPlayer(dirPath + "test.mp4");
|
||||
Player player = Manager.createPlayer(dirPath + "test.webm");
|
||||
|
||||
player.addPlayerListener(this);
|
||||
|
||||
|
|
Двоичные данные
tests/gfx/VideoPlayerTest.png
Двоичные данные
tests/gfx/VideoPlayerTest.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 1.0 KiB После Ширина: | Высота: | Размер: 1.0 KiB |
|
@ -23,16 +23,16 @@ public class TestVideoPlayer implements Testlet, PlayerListener {
|
|||
Form form = new Form("Test");
|
||||
|
||||
String dirPath = System.getProperty("fileconn.dir.private");
|
||||
FileConnection file = (FileConnection)Connector.open(dirPath + "test.mp4", Connector.READ_WRITE);
|
||||
FileConnection file = (FileConnection)Connector.open(dirPath + "test.webm", Connector.READ_WRITE);
|
||||
if (!file.exists()) {
|
||||
file.create();
|
||||
}
|
||||
OutputStream os = file.openDataOutputStream();
|
||||
InputStream is = getClass().getResourceAsStream("/javax/microedition/media/test.mp4");
|
||||
InputStream is = getClass().getResourceAsStream("/javax/microedition/media/test.webm");
|
||||
os.write(TestUtils.read(is));
|
||||
os.close();
|
||||
|
||||
Player player = Manager.createPlayer(dirPath + "test.mp4");
|
||||
Player player = Manager.createPlayer(dirPath + "test.webm");
|
||||
|
||||
player.addPlayerListener(this);
|
||||
|
||||
|
|
Двоичные данные
tests/javax/microedition/media/test.mp4
Двоичные данные
tests/javax/microedition/media/test.mp4
Двоичный файл не отображается.
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче