Functions | |
| void | addFile (in string fileName) |
| Sets the input file. | |
| unsigned long | getFileSize (in string file) |
| Returns the size of file. | |
| void | checkInputFile () |
| validates the input file | |
| unsigned long | getInputFileSize () |
| Returns input file size. | |
| void | selectInputFileForPlayback () |
| selects the input file for playback | |
| unsigned long | getOutputFileSize () |
| Returms output file size. | |
| void | selectOutputFileForPlayback () |
| selects the output file for playback | |
| void | startPlayback () |
| play selected file | |
| void | stopPlayback () |
| stop playing selected file | |
| void | pause () |
| pauses capture or playback | |
| void | resume () |
| resumes capture or playback | |
| void | show_audio_capture_settings () |
| show audio device settings dialog | |
| void | show_video_capture_settings () |
| show video device settings dialog | |
| void | startCapturePreview () |
| start previewing | |
| void | stopCapturePreview () |
| stop previewing | |
| void | startCapture () |
| start capturing | |
| void | stopCapture () |
| stop capturing | |
| void | startFileEncode () |
| start transcoding | |
| void | stopFileEncode () |
| stop transcoding | |
| void | publishFile () |
| Deprecated. Uploads the output file. | |
| void | publishAbort () |
| cancels uploading of the output file | |
| void | setHttpVar (in string param, in string value) |
| Deprecated. Add Form Variables to HTTP POST. | |
| string | getHttpVar (in string param) |
| Deprecated. Returns value of named param. | |
| long | numAudioCaptureDevices () |
| Audio capture device count. | |
| long | numVideoCaptureDevices () |
| Video capture device count. | |
| string | audioCaptureDeviceName (in long index) |
| Audio Capture name device at index. | |
| string | videoCaptureDeviceName (in long index) |
| Video Capture name device at index. | |
| void | setHttpFormVar (in string name, in string value) |
| Add/Update Form Variable. | |
| string | getHttpFormVar (in string name) |
| Retrieve Form Variable. | |
| void | resetHttpFormVars () |
| Clears HTTP form variables. | |
| void | setHttpRequestHeader (in string name, in string value) |
| Add/Update Request Header. | |
| string | getHttpRequestHeader (in string name) |
| Retrieve HTTP Request Header. | |
| void | resetHttpRequestHeaders () |
| Clears HTTP Request Headers. | |
| string | getHttpResponse () |
| Retrieve HTTP upload server response. | |
| string | getMd5Checksum (in string file) |
| Get File MD5 Checksum. | |
| void | uploadFile (in string file, in long mode) |
| Upload a file. | |
| void | addFmsAuthArg (in string function_name, in string arg) |
| Add a FMS AS function. | |
| string | getFmsAuthArgList (in string function_name) |
| Get a FMS AS function call's argument list. | |
| string | getFmsAuthResponse (in string function_name) |
| Get an FMS AS function call response. | |
| void | resetFmsAuthArgs () |
| Reset FMS authentication functions and arguments. | |
| void | setFmsPollFunction (in string func) |
| Set FMS poll function name. | |
| string | getFmsPollFunction () |
| Get FMS poll function name. | |
| void | addFmsPollArg (in string arg) |
| Add a FMS poll function argument. | |
| string | getFmsPollArgList () |
| Get FMS poll function argument list. | |
| void | resetFmsPollArgs () |
| Reset FMS poll function arguments. | |
For general information about errors, please consult the Error Values section.
When an error occurs, an error code will be thrown or returned by the method. Meanings of error values depend upon the context of the error and which method was called.
Each method lists errors likely to be returned if something goes wrong. For further information about any errors you encounter while implementing your Flix Publisher project, please contact support.
| void addFile | ( | in string | fileName | ) |
Sets input file used for playback and transcoding. Call addFile() with an empty string to display the open file dialog box and allow the user to select the input file.
| [in] | fileName | full path to the input file. The path can be a local path or a network path. It cannot be a URL. |
| unsigned long getFileSize | ( | in string | file | ) |
Returns the size of file, in bytes.
// on2pub is the plug-in object fp_show_file_chooser(on2pub);
| FE_FILE | - file doesn't exist |
| void checkInputFile | ( | ) |
Determines whether or not the client computer can play and transcode the input file.
| unsigned long getInputFileSize | ( | ) |
Size of input file, in bytes.
| FE_FILE | - file doesn't exist or checkInputFile() not called |
| void selectInputFileForPlayback | ( | ) |
selectInputFileForPlayback() causes a subsequent call to startPlayback() to play the input file.
| unsigned long getOutputFileSize | ( | ) |
Size of output file, in bytes.
| FE_FILE | - file doesn't exist or prerequisite event not fired. |
| void selectOutputFileForPlayback | ( | ) |
selectOutputFileForPlayback() causes a subsequent call to startPlayback() to play the output file.
| void startPlayback | ( | ) |
Starts playing the selected file. This method behaves differently depending upon calls to other publisher methods and user interaction:
| FE_FILE | - could not play file. |
| void stopPlayback | ( | ) |
Asynchronously stops playback. The filePlayed event will be fired from the plug-in when stop completes.
| void pause | ( | ) |
This method behaves differently depending on the publisher's current status:
| FE_WRONG_STATE | - can't pause when in the current State. |
| void resume | ( | ) |
This method behaves differently depending on the publisher's current status:
| FE_WRONG_STATE | - not paused, can't resume. |
| void show_audio_capture_settings | ( | ) |
Displays a modal dialog box containing the settings supported by the audio capture device.
| void show_video_capture_settings | ( | ) |
Displays a modal dialog box containing the settings supported by the video capture device.
| void startCapturePreview | ( | ) |
Starts previewing video from the selected device.
| void stopCapturePreview | ( | ) |
Stops preview of capture input.
| void startCapture | ( | ) |
Starts encoding a FLV file using the data captured from the currently selected audio and video devices. The captureCompleted event will be automatically fired when MaximumDuration is non-zero, and EncodedDuration equals or exceeds the MaximumDuration value.
| FE_DIRECTSHOW | - unexpected error during basic capture setup. | |
| FE_CAPTURE_V | - problem capturing from video device. | |
| FE_CAPTURE_A | - problem capturing from audio device. | |
| FE_CAPTURE_DV | - problem capturing from DV camera. | |
| FE_IN_USE | - capture device in use by some other application. |
| void stopCapture | ( | ) |
Asynchronously stops capture. The captureCompleted event will be fired from the plug-in when capture stop completes.
| void startFileEncode | ( | ) |
Starts transcode of the input file. The fileEncoded event will be automatically fired as soon as one of the following conditions is true:
| FE_FILE | - error specific to the format of the current file. |
| void stopFileEncode | ( | ) |
Asynchronously stops the current transcode. The fileEncoded event will be fired when transcode stop completes.
| void publishFile | ( | ) |
| void publishAbort | ( | ) |
Aborts the upload started by a call to publishFile().
| void setHttpVar | ( | in string | param, | |
| in string | value | |||
| ) |
| string getHttpVar | ( | in string | param | ) |
| long numAudioCaptureDevices | ( | ) |
Returns the number of audio input devices on the client system. Use with audioCaptureDeviceName() and AudioCaptureDevice to control which audio capture device the publisher will use.
| long numVideoCaptureDevices | ( | ) |
Returns the number of video input devices on the client system. Use with videoCaptureDeviceName() and VideoCaptureDevice to control which video capture device the publisher will use.
| string audioCaptureDeviceName | ( | in long | index | ) |
Returns the name of the audio capture device at the specified index. Use numAudioCaptureDevices() to determine the number of available devices.
| string videoCaptureDeviceName | ( | in long | index | ) |
Returns the name of the video capture device at the specified index. Use numVideoCaptureDevices() to determine the number of available devices.
Returns the name of the video capture device at the specified index. Use numVideoCaptureDevices() to determine the number of available devices.
| void setHttpFormVar | ( | in string | name, | |
| in string | value | |||
| ) |
Sets the form variable name to value. If a form variable of name already exists, it will be updated to the new value.
| string getHttpFormVar | ( | in string | name | ) |
Retreives the value of form variable name.
| void resetHttpFormVars | ( | ) |
Call resetHttpFormVars() to clear the HTTP form variables.
| void setHttpRequestHeader | ( | in string | name, | |
| in string | value | |||
| ) |
Sets the request header name to value. If a request header named name already exists, it will be updated to the new value.
| string getHttpRequestHeader | ( | in string | name | ) |
Retreives the value of the request header named name.
| void resetHttpRequestHeaders | ( | ) |
Call resetHttpRequestHeaders() to clear the HTTP request headers.
| string getHttpResponse | ( | ) |
Call getHttpResponse from the uploadComplete() event handler function to retrieve the HTTP response in the form:
<HTTP response code> [printable response data]
| string getMd5Checksum | ( | in string | file | ) |
| FE_READ_FAILED | - couldn't open file. |
| void uploadFile | ( | in string | file, | |
| in long | mode | |||
| ) |
Uploads the file specified.
| FE_TRANSFER_FAILED | - upload of file failed. | |
| FE_READ_FAILED | - couldn't open file. |
| void addFmsAuthArg | ( | in string | function_name, | |
| in string | arg | |||
| ) |
addFmsAuthArg() adds a FMS Action Script function call for use during authentication.
| string getFmsAuthArgList | ( | in string | function_name | ) |
The getFmsAuthArgList() method is provided for debugging purposes only. This method should be used to inspect the functions and arguments you've passed to the plug-in. getFmsAuthArgList() returns the argument list for function_name as multi line string, with one argument per line.
| string getFmsAuthResponse | ( | in string | function_name | ) |
The getFmsAuthResponse() method is provided for debugging purposes only. This method should only be used to determine the reason for an authentication failure during connection to the remote FMS. getFmsAuthResponse() returns the responses for function_name as a multi line string, with one response per line.
To send responses to the plug-in from you FMS AS code, you use the clientObj.call() method, like this:
clientObj.call("name of your AS function", null, message_string); // note, the second parameter MUST be null.
| void resetFmsAuthArgs | ( | ) |
Resets the plug-in's list of FMS functions and their arguments.
| void setFmsPollFunction | ( | in string | func | ) |
| string getFmsPollFunction | ( | ) |
Retrieves the name of the server side action script connection polling function.
| void addFmsPollArg | ( | in string | arg | ) |
| string getFmsPollArgList | ( | ) |
Returns the argument list.
| void resetFmsPollArgs | ( | ) |
Resets the argument list.