Possible addition to video/Movie class
in
Library and Tool Development
•
1 year ago
Hi all,
Loving the work so far on 2.0. I have a need for the Movie class to be able to handle RTSP streams (and probably later, either RTP or raw UDP) so in the spirit of Processing I have changed my local copy. I have tested with a local Darwin Streaming instance and everything seems good (except the occasional exception about unknown Enum mappings). My diff is pretty simple (against SVN 9709):
--- old/Movie.java
2012-05-31 13:23:04.843192312 +0100
+++ new/Movie.java
2012-06-02 06:22:05.972646443 +0100
@@ -683,7 +683,7 @@
}
// Network read...
- if (gplayer == null && filename.startsWith("http://")) {
+ if (gplayer == null && (filename.startsWith("http://") || filename.startsWith("rtp://") || filename.startsWith("rtsp://") || filename.startsWith("udp://"))) {
try {
PApplet.println("network read");
gplayer = new PlayBin2("Movie Player");
It probably needs more work before inclusion. My tiny changes so far are of course licensed under LGPL.