-
- All Implemented Interfaces:
-
com.hbisoft.hbrecorder.MyListener
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public class HBRecorder implements MyListener
Created by HBiSoft on 13 Aug 2019 Copyright (c) 2019 . All rights reserved.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisAudioEnabledprivate StringoutputPathprivate StringfileNameprivate StringnotificationTitleprivate StringnotificationDescriptionprivate StringnotificationButtonTextprivate intaudioBitrateprivate intaudioSamplingRateprivate StringaudioSourceprivate StringvideoEncoderprivate intvideoFrameRateprivate intvideoBitrateprivate StringoutputFormatprivate longmaxFileSizeintmaxDuration
-
Constructor Summary
Constructors Constructor Description HBRecorder(Context context, HBRecorderListener listener)
-
Method Summary
-
-
Constructor Detail
-
HBRecorder
HBRecorder(Context context, HBRecorderListener listener)
-
-
Method Detail
-
isAudioEnabled
void isAudioEnabled(boolean bool)
-
setOutputPath
void setOutputPath(String path)
-
getFileName
String getFileName()
-
setFileName
void setFileName(String fileName)
-
setNotificationTitle
void setNotificationTitle(String Title)
-
setNotificationDescription
void setNotificationDescription(String Description)
-
setNotificationButtonText
void setNotificationButtonText(String string)
-
setAudioBitrate
void setAudioBitrate(int audioBitrate)
-
setAudioSamplingRate
void setAudioSamplingRate(int audioSamplingRate)
-
setAudioSource
void setAudioSource(String source)
-
setVideoEncoder
void setVideoEncoder(String encoder)
-
setVideoFrameRate
void setVideoFrameRate(int fps)
-
setVideoBitrate
void setVideoBitrate(int bitrate)
-
setOutputFormat
void setOutputFormat(String format)
-
setMaxFileSize
void setMaxFileSize(long fileSize)
-
setMaxDuration
void setMaxDuration(int seconds)
-
setOrientationHint
void setOrientationHint(int orientationInDegrees)
-
setOutputUri
@RequiresApi(api = Build.VERSION_CODES.Q) void setOutputUri(Uri uri)
-
wasUriSet
boolean wasUriSet()
-
recordHDVideo
void recordHDVideo(boolean bool)
-
enableCustomSettings
void enableCustomSettings()
-
getDefaultWidth
int getDefaultWidth()
-
getDefaultHeight
int getDefaultHeight()
-
setScreenDimensions
void setScreenDimensions(int heightInPX, int widthInPX)
-
getFilePath
String getFilePath()
-
startScreenRecording
void startScreenRecording(Intent data, int resultCode)
-
stopScreenRecording
void stopScreenRecording()
-
pauseScreenRecording
@RequiresApi(api = Build.VERSION_CODES.N) void pauseScreenRecording()
-
resumeScreenRecording
@RequiresApi(api = Build.VERSION_CODES.N) void resumeScreenRecording()
-
isRecordingPaused
boolean isRecordingPaused()
-
isBusyRecording
boolean isBusyRecording()
-
setNotificationSmallIcon
void setNotificationSmallIcon(@DrawableRes() int drawable)
-
setNotificationSmallIconVector
void setNotificationSmallIconVector(@DrawableRes() int VectorDrawable)
-
setNotificationSmallIcon
void setNotificationSmallIcon(Array<byte> bytes)
-
onCompleteCallback
void onCompleteCallback()
-
-
-
-