net.sourceforge.openutils.mgnlmedia.media.types.externals
Interface ExternalVideoSupport

All Known Implementing Classes:
YoutubeSupport

public interface ExternalVideoSupport

Interface for external video handling. Users can implement a custom parsing logic to extract a flv/image url from a specific sharing URL.

Version:
$Id: ExternalVideoSupport.java 1929 2010-02-14 21:13:02Z fgiust $
Author:
fgiust

Method Summary
 boolean canHandle(String shareUrl)
          Can this VideoSupport class handle this kind of urls? Usually done by checking the domain.
 String getFlvUrl(String shareUrl)
          Return the FLV url from the share url.
 String getMediaName(String shareUrl)
          Return the video name from the share url.
 String getPreviewUrl(String shareUrl)
          Return the preview url from the share url.
 boolean isEnabled()
          Is this VideoSupport class enabled?
 

Method Detail

canHandle

boolean canHandle(String shareUrl)
Can this VideoSupport class handle this kind of urls? Usually done by checking the domain.

Parameters:
shareUrl - share URL
Returns:
true if this class can handle video with the given URL

isEnabled

boolean isEnabled()
Is this VideoSupport class enabled?

Returns:
true if this video support class should be used when an external video is loaded

getFlvUrl

String getFlvUrl(String shareUrl)
Return the FLV url from the share url. This method is guaranteed to be called only if canHandle() returned true for the same URL.

Parameters:
shareUrl - share URL
Returns:
flv direct URL

getPreviewUrl

String getPreviewUrl(String shareUrl)
Return the preview url from the share url. This method is guaranteed to be called only if canHandle() returned true for the same URL.

Parameters:
shareUrl - share URL
Returns:
preview URL (may be null)

getMediaName

String getMediaName(String shareUrl)
Return the video name from the share url. This method is guaranteed to be called only if canHandle() returned true for the same URL.

Parameters:
shareUrl - share URL
Returns:
video name (name of the node that will be created in the media repository)


Copyright © 2008-2010 Openmind. All Rights Reserved.