[Red5commits] [1537] source of VOD streams can be customized through IStreamFilenameGenerator

jbauch luke at codegent.com
Wed Jan 24 10:51:06 EST 2007


source of VOD streams can be customized through IStreamFilenameGenerator


Timestamp: 11/14/06 13:42:16 EST (2 months ago) 
Change: 1537 
Author: jbauch

Files (see diff or trac for details): 
doc/trunk/changelog.txt
java/server/trunk/src/org/red5/server/stream/ProviderService.java


Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/1537

Index: /java/server/trunk/src/org/red5/server/stream/ProviderService.java
===================================================================
--- /java/server/trunk/src/org/red5/server/stream/ProviderService.java (revision 1519)
+++ /java/server/trunk/src/org/red5/server/stream/ProviderService.java (revision 1537)
@@ -33,4 +33,5 @@
 import org.red5.server.api.ScopeUtils;
 import org.red5.server.api.stream.IBroadcastStream;
+import org.red5.server.api.stream.IStreamFilenameGenerator;
 import org.red5.server.messaging.IMessageInput;
 import org.red5.server.messaging.IPipe;
@@ -142,8 +143,4 @@
 	}
 
-	private String getStreamDirectory() {
-		return "streams/";
-	}
-
 	private String getStreamFilename(IScope scope, String name) {
 		IStreamableFileFactory factory = (IStreamableFileFactory) ScopeUtils
@@ -162,5 +159,8 @@
 		}
 
-		return getStreamDirectory() + name;
+		IStreamFilenameGenerator filenameGenerator = (IStreamFilenameGenerator)
+			ScopeUtils.getScopeService(scope, IStreamFilenameGenerator.KEY, DefaultStreamFilenameGenerator.class);
+		
+		return filenameGenerator.generateFilename(scope, name);
 	}
 
Index: /doc/trunk/changelog.txt
===================================================================
--- /doc/trunk/changelog.txt (revision 1536)
+++ /doc/trunk/changelog.txt (revision 1537)
@@ -10,4 +10,5 @@
 - Stream classes can be configured through red5-common.xml (Trac #223)
 - RTMP network library supports client mode (Trac #94)
+- source of VOD streams can be customized through IStreamFilenameGenerator
 
 Bugfixes:


Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.



More information about the Red5commits mailing list