net.sf.theora_java.jna.example
Class PlayerExample

java.lang.Object
  extended by net.sf.theora_java.jna.example.PlayerExample

public class PlayerExample
extends java.lang.Object

A simple Java video/audio player for ogg (theora, vorbis). Adapted from player_example.c. The original example used SDL for the actual rendering of audio and video, here we use a simple Swing control and JavaSound. TODO: synchronize audio and video properly. TODO: when playing audio only, need to drain line so that we hear the whole thing.

Author:
Ken Larson

Constructor Summary
PlayerExample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerExample

public PlayerExample()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

run

public void run(java.lang.String[] args)
         throws java.io.IOException
Throws:
java.io.IOException