Giter Site home page Giter Site logo

kickflip-android-example's People

Contributors

onlyinamerica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kickflip-android-example's Issues

Build failures with 1.3.2

Hello,

I have Android studio 1.3.2

When trying to build the kickflip.io app, I get the following

Error:Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'.
Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project. In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

changing gradle.build to 1.3.0

Error:Unable to load class 'org.codehaus.groovy.runtime.StringGroovyMethods'.
Possible causes for this unexpected error include:

video source

Hi,
Where is video source that we can stream it with this sdk??
I mean that which sources can we use?
Thanks,

Failed to sync Gradle project 'kickflip-android-example-master'

When I try to import the project in android studio I am getting following error. Please have a look and give me a solution

Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)

Server Error

Video recording is working perfectly fine.
But when I try to view the steam on other device I am getting following error.

14432-14432/io.kickflip.sample I/API﹕ request failed A Kickflip server error occurred
14432-14459/io.kickflip.sample E/M3u8Parser﹕ Server returned HTTP 404 Not Found

Cannot play the recorded stream back

Hi,

I am trying the android example. I am just doing live stream from the camera and then I want to play it back from the list on the main screen. But the stream is not playing, I just see the progressbar spinning. In the log file is see the following message: "E/M3u8Parser( 4185): Server returned HTTP 404 Not Found"

Any ideas why is this happening?

Thanks,

M

Log file excerpt

D/StreamListFragment( 4185): stream url: https://d3t0i31z3foyta.cloudfront.net/crowdview_test/3qjmnk24umar/79829631-e988-4905-afdc-ba17333d4026/index.m3u8

D/AudioFlinger( 1929): Creating track with bufferSize 29132 bytes, frameCount 7283, mFrameSize 4

V/LvOutput( 1929): initCheck: 0

V/LvOutput( 1929): attachEffects: attach processing to output 2, stream 1, session 99, mode 0

V/LvOutput( 1929): attachEffects: no output processing needs to be attached to this stream

V/LvOutput( 1929): LvOutput::setAllProcessorEnabled(false) mOutputs.size(0)

V/AudioPolicyManagerBase( 1929): startOutput() output 2, stream 1, session 99

V/AudioPolicyManagerBase( 1929): changeRefCount() stream 1, count 1

V/AudioPolicyManagerBase( 1929): getNewDevice() selected device 2

V/AudioPolicyManagerBase( 1929): setOutputDevice() output 2 device 0002 force 0 delayMs 0

V/AudioPolicyManagerBase( 1929): setOutputDevice() prevDevice (0002)

V/AudioPolicyManagerBase( 1929): setOutputDevice() setting same device 0002 or null device for output 2

E/AudioResampler( 1929): Unsupported sample format, 1 bits, 2 channels

D/AudioResampler( 1929): AudioResamplerOrder1::resample common!!!!!

D/AudioResampler( 1929): new common resampler(44100 -> 48000, 2, 2)

D/SoundAliveResampler( 1929): [SoundAliveResampler] Init+++

V/AudioPolicyManagerBase( 1929): releaseOutput() 2

I/AudioHardwareTinyALSA( 1929): AudioStreamOutALSA::write setDevice

E/AudioHardwareTinyALSA( 1929): int android::AudioHardwareTinyALSA::open_hdmi_driver() cannot open video16 (-1)

D/AudioHardwareTinyALSA( 1929): OutALSA::setDevice: mode = 0, newDevice=0x2, currentDevice=0x2 ,force= 0

D/AudioHardwareTinyALSA( 1929): OutALSA::setDevice: mDevice 0x2, newDevice = 0x2

D/AudioHardwareTinyALSA( 1929): setOutputVolume

D/TinyUCM ( 1929): setModifier Normal, en=1

I/AudioHardwareTinyALSA( 1929): OutALSA::setDevice: mHandle NULL mode[0], Device[00000002]

I/AudioHardwareTinyALSA( 1929): Open: mDefaults->direction=0 device=3

D/AudioHardwareTinyALSA( 1929): Channel: 2, Samplerate: 48000, Format: 0, Peroid Size: 960, Period Count: 4

I/AudioHardwareTinyALSA( 1929): before pcm_prepare

D/AudioHardwareTinyALSA( 1929): setPcmInterface: Stream=0x1, iSamplerate=8000++

D/AudioHardwareTinyALSA( 1929): setPcmInterface--

D/CustomFrequencyManagerService( 2420): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1400000 uid : 1000 pid : 2420 pkgName : ACTIVITY_RESUME_BOOSTER@4

W/ActivityManager( 2420): mDVFSHelper.acquire()

D/PointerIcon( 2420): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0

D/PointerIcon( 2420): setMouseCustomIcon IconType is same.101

D/PointerIcon( 2420): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0

D/PointerIcon( 2420): setHoveringSpenCustomIcon IconType is same.1

I/SQLiteSecureOpenHelper( 3543): getWritableDatabase(pwd)

I/SQLiteSecureOpenHelper( 3543): getDatabaseLocked(b,b,pwd)...

I/SQLiteSecureOpenHelper( 3543): getWritableDatabase(pwd)

I/SQLiteSecureOpenHelper( 3543): getDatabaseLocked(b,b,pwd)...

V/WindowOrientationListener( 2420): ScreenOrientationEventListenerImpl.getProposedRotationLocked, Rotation: -1

V/WindowOrientationListener( 2420): ScreenOrientationEventListenerImpl.getProposedRotationLocked, Rotation: -1

V/WindowManager( 2420): rotationForOrientationLw(orient=0, last=0); user=0 sensorRotation=-1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false gripRotationLock=false

D/SamsungWindowManager( 2420): setRotationLw() : rotation=1

D/CustomFrequencyManagerService( 2420): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1400000 uid : 1000 pid : 2420 pkgName : ROTATION_BOOSTER@29

D/InputDispatcher( 2420): setInputDispatchMode: enabled=1, frozen=1

I/SurfaceFlinger( 1920): id=220 createSurf (720x1280),2 flag=404, TcreenshotS

D/SSRMv2:TSP:AirViewOnOff( 2420): SettingsAirViewInfo:: 000000000

I/SurfaceFlinger( 1920): Orientation 0=>1

I/InputReader( 2420): Reconfiguring input devices. changes=0x00000004

I/InputReader( 2420): Device reconfigured: id=2, name='sec_touchscreen', size 720x1280, orientation 1, mode 1, display id 0

I/ActivityManager( 2420): Config changes=480 {0 1.0 ?mcc?mnc en_GB ldltr sw360dp w640dp h335dp 320dpi nrml long land finger -keyb/v/h -nav/h s.30}

I/SamsungIME(11868): [Before] hardKeyboardHidden(2) keyboardType(1)

I/SamsungIME(11868): mHwKeyboardShown [isHWKeyboardOpen()] = false --> false

E/SamsungIME(11868): isHWKeyboardConnected() = false --> false

I/SamsungIME(11868): [hasToCallSuper] true

D/Mms/MmsApp(11916): [start] onConfigurationChanged(),newConfig={0 1.0 ?mcc?mnc en_GB ldltr sw360dp w640dp h335dp 320dpi nrml long land finger -keyb/v/h -nav/h s.30}

D/Mms/MmsApp(11916): [end] onConfigurationChanged(),newConfig={0 1.0 ?mcc?mnc en_GB ldltr sw360dp w640dp h335dp 320dpi nrml long land finger -keyb/v/h -nav/h s.30}

D/SamsungIME(11868): Dismiss ExpandCandiate

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

I/display ( 1920): [DYNAMIC_RECOMP] GLES_2_HWC by BW check

D/PhoneStatusBar( 2612): mSettingsPanelGravity = 55

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/PhoneStatusBarView( 2612): marqueeStatusBar:12-7, mClearCover:0

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/STATUSBAR-IconMerger( 2612): checkOverflow(432), More:false, Req:false Child:4

E/Tethering( 2420): No numeric data

E/SmartFaceService( 2420): onReceive: android.intent.action.CONFIGURATION_CHANGED

E/SmartFaceService( 2420): mFolderCoverOpened: (true, true) -> true

D/STATUSBAR-QuickSettingPanel( 2612): setSingleLine:true

D/STATUSBAR-QuickSettingPanel( 2612): updateButtonInfo mButtonWidth : 160 mColumnNumber:8 orien: 2

D/STATUSBAR-QuickSettingPanel( 2612): onConfigurationChanged - dynamicallyReduceTextSize

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-QuickSettingButton( 2612): dynamicallyReduceTextSize: 160

D/STATUSBAR-NetworkController( 2612): onReceive() - ACTION_CONFIGURATION_CHANGED

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/StatusBarManagerService( 2420): tr p:4185,o:f

D/STATUSBAR-IconMerger( 2612): checkOverflow(960), More:false, Req:false Child:4

D/StatusBarManagerService( 2420): semi p:4185,o:f

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/PhoneStatusBar( 2612): setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

I/SurfaceFlinger( 1920): id=215 Removed NainActivit (7/10)

I/SurfaceFlinger( 1920): id=215 Removed NainActivit (-2/10)

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/PhoneStatusBar( 2612): setSemiTransparentMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

I/SurfaceFlinger( 1920): id=221 createSurf (1280x720),1 flag=404, NediaPlayer

D/STATUSBAR-StatusBarManagerService( 2420): manageDisableList what=0x0 pkg=WindowManager.LayoutParams

D/BarController.StatusBar( 2420): mState: WINDOW_STATE_HIDDEN

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

W/ContextImpl( 2420): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1501 com.android.internal.policy.impl.PhoneWindowManager.notifyToSSRM:6306 com.android.internal.policy.impl.PhoneWindowManager.access$200:195 com.android.internal.policy.impl.PhoneWindowManager$PolicyHandler.handleMessage:770 android.os.Handler.dispatchMessage:102

D/SSRMv2:TSP:AirViewOnOff( 2420): SettingsAirViewInfo:: 000000000

D/PointerIcon( 2420): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0

D/PointerIcon( 2420): setMouseCustomIcon IconType is same.101

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/PointerIcon( 2420): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0

D/PointerIcon( 2420): setHoveringSpenCustomIcon IconType is same.1

D/PhoneStatusBar( 2612): Status bar WINDOW_STATE_HIDDEN

D/ProgressBar( 4185): updateDrawableBounds: left = 0

D/ProgressBar( 4185): updateDrawableBounds: top = 0

D/ProgressBar( 4185): updateDrawableBounds: right = 300

D/ProgressBar( 4185): updateDrawableBounds: bottom = 300

W/ContextImpl( 2420): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1501 com.android.server.InputMethodManagerService$4.run:2728 java.lang.Thread.run:841

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/CustomFrequencyManagerService( 2420): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1400000 uid : 1000 pid : 2420 tag : ACTIVITY_RESUME_BOOSTER@4

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

W/ActivityManager( 2420): mDVFSHelper.release()

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

I/SurfaceFlinger( 1920): id=222 createSurf (1440x1280),-1 flag=20004, ClackSurfac

D/CustomFrequencyManagerService( 2420): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1400000 uid : 1000 pid : 2420 pkgName : ACTIVITY_RESUME_BOOSTER@8

I/WindowManager( 2420): Screen frozen for +249ms due to Window{43115968 u0 io.kickflip.sample/io.kickflip.sdk.activity.MediaPlayerActivity}

I/SurfaceFlinger( 1920): id=223 createSurf (720x2560),-1 flag=20004, ClackSurfac

I/SurfaceFlinger( 1920): id=224 createSurf (1440x1280),-1 flag=20004, ClackSurfac

I/SurfaceFlinger( 1920): id=225 createSurf (720x2560),-1 flag=20004, ClackSurfac

D/InputDispatcher( 2420): setInputDispatchMode: enabled=1, frozen=0

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

D/hwcutils( 1920): MppFactory::MppFactory()

D/ ( 1920): virtual LibMpp* MppFactory::CreateMpp(int, int, int, int)(6)

D/libexynosfimc( 1920): LibMpp::LibMpp()

I/SurfaceFlinger( 1920): id=220 Removed TcreenshotS (10/14)

I/SurfaceFlinger( 1920): id=220 Removed TcreenshotS (-2/14)

I/SurfaceFlinger( 1920): id=222 Removed ClackSurfac (10/13)

I/SurfaceFlinger( 1920): id=222 Removed ClackSurfac (-2/13)

I/SurfaceFlinger( 1920): id=223 Removed ClackSurfac (10/12)

I/SurfaceFlinger( 1920): id=223 Removed ClackSurfac (-2/12)

I/SurfaceFlinger( 1920): id=224 Removed ClackSurfac (10/11)

I/SurfaceFlinger( 1920): id=224 Removed ClackSurfac (-2/11)

I/SurfaceFlinger( 1920): id=225 Removed ClackSurfac (10/10)

I/SurfaceFlinger( 1920): id=225 Removed ClackSurfac (-2/10)

D/KeyguardUpdateMonitor( 2612): sendKeyguardVisibilityChanged(true)

D/KeyguardUpdateMonitor( 2612): handleKeyguardVisibilityChanged(1)

V/WindowOrientationListener( 2420): ScreenOrientationEventListenerImpl.getProposedRotationLocked, Rotation: -1

V/WindowOrientationListener( 2420): ScreenOrientationEventListenerImpl.getProposedRotationLocked, Rotation: -1

V/WindowManager( 2420): rotationForOrientationLw(orient=0, last=1); user=0 sensorRotation=-1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false gripRotationLock=false

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

E/M3u8Parser( 4185): Server returned HTTP 404 Not Found

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

V/LvOutput( 1929): initCheck: 0

V/LvOutput( 1929): detachEffects: detach processing for output 2, stream 1, session 99

V/LvOutput( 1929): detachEffects: no output processing was attached to this stream

V/AudioPolicyManagerBase( 1929): stopOutput() output 2, stream 1, session 99

V/AudioPolicyManagerBase( 1929): changeRefCount() stream 1, count 0

V/AudioPolicyManagerBase( 1929): getNewDevice() selected device 0

V/AudioPolicyManagerBase( 1929): setOutputDevice() output 2 device 0000 force 0 delayMs 160

V/AudioPolicyManagerBase( 1929): setOutputDevice() prevDevice (0002)

V/AudioPolicyManagerBase( 1929): setOutputDevice() setting same device 0000 or null device for output 2

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

I/AudioFlinger( 1929): sleepTime is reduced to minimum forcely

D/STATUSBAR-NetworkController( 2612): refreshSignalCluster - setNWBoosterIndicators(false)

D/STATUSBAR-NetworkController( 2612): refreshSignalCluster: data=-1 bt=false

D/STATUSBAR-IconMerger( 2612): checkOverflow(960), More:false, Req:false Child:4

D/CustomFrequencyManagerService( 2420): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1400000 uid : 1000 pid : 2420 tag : ACTIVITY_RESUME_BOOSTER@8

D/SensorService( 2420): 0.2 -0.1 9.6

D/CustomFrequencyManagerService( 2420): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1400000 uid : 1000 pid : 2420 tag : ROTATION_BOOSTER@29

D/STATUSBAR-NetworkController( 2612): refreshSignalCluster - setNWBoosterIndicators(false)

D/STATUSBAR-NetworkController( 2612): refreshSignalCluster: data=-1 bt=false

D/STATUSBAR-IconMerger( 2612): checkOverflow(960), More:false, Req:false Child:4

D/dalvikvm( 2420): GC_EXPLICIT freed 278K, 21% free 27801K/34924K, paused 18ms+16ms, total 292ms

D/AudioHardwareTinyALSA( 1929): Entering AudioStreamOutALSA standby mode

I/AudioHardwareTinyALSA( 1929): Close mHandle:442ec6d0

java.nio.ReadOnlyBufferException

Investigate change to FFmpegMuxer to accommodate MediaCodec output buffers becoming read only.

AndroidRuntime  E  FATAL EXCEPTION: MicrophoneEncoder
                        E  Process: io.kickflip.sample, PID: 17516
                        E  java.nio.ReadOnlyBufferException
                        E      at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:354)
                        E      at io.kickflip.sdk.av.FFmpegMuxer.addAdtsToByteBuffer(FFmpegMuxer.java:322)
                        E      at io.kickflip.sdk.av.FFmpegMuxer.handleWriteSampleData(FFmpegMuxer.java:217)
                        E      at io.kickflip.sdk.av.FFmpegMuxer.writeSampleData(FFmpegMuxer.java:183)
                        E      at io.kickflip.sdk.av.AndroidEncoder.drainEncoder(AndroidEncoder.java:130)
                        E      at io.kickflip.sdk.av.MicrophoneEncoder.run(MicrophoneEncoder.java:135)
                        E      at java.lang.Thread.run(Thread.java:818)

Error when import and run

Hi

when I run the project after importing , I received this error

Error:(15, 0) Gradle DSL method not found: 'runProguard()'
Possible causes:

  • The project 'kickflip-android-example-master' may be using a version of Gradle that does not contain the method.
    Open Gradle wrapper file
  • The build file may be missing a Gradle plugin.
    Apply Gradle plugin
  • PLease advise. Thank you

Is repo dead?

We have few libraries like Build-tools at version 22 and Support library at 22.1.1. Including version 19.x.x in this example and in SDK make it uncompilable. Is it planned behavior?

Contacting authors

What's the best way to contact the dev/support team? I've sent emails without response.

UnsatisfiedLinkError: Couldn't load FFmpedWrapper

I attempted to upgrade to the latest gradle and android 5.0 and got this error. I never tried to build the latest from your repository, but was hoping you can point me in the right direction to fix this. This stacktrace happens right when I try to start a broadcast.

java.lang.UnsatisfiedLinkError: Couldn't load FFmpegWrapper from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/io.kickflip.sample-1.apk"],nativeLibraryDirectories=[/data/app-lib/io.kickflip.sample-1, /vendor/lib, /system/lib]]]: findLibrary returned null
            at java.lang.Runtime.loadLibrary(Runtime.java:358)
            at java.lang.System.loadLibrary(System.java:526)
            at pro.dbro.ffmpegwrapper.FFmpegWrapper.<clinit>(FFmpegWrapper.java:45)
            at io.kickflip.sdk.av.FFmpegMuxer.<init>(FFmpegMuxer.java:72)
            at io.kickflip.sdk.av.FFmpegMuxer.create(FFmpegMuxer.java:104)
            at io.kickflip.sdk.av.SessionConfig$Builder.<init>(SessionConfig.java:229)
            at io.kickflip.sample.Util.create720pSessionConfig(Util.java:58)
            at io.kickflip.sample.activity.MainActivity.configureNewBroadcast(MainActivity.java:181)
            at io.kickflip.sample.activity.MainActivity.startBroadcastingActivity(MainActivity.java:175)
            at io.kickflip.sample.activity.MainActivity.onOptionsItemSelected(MainActivity.java:121)

Here is my upgraded repo and branch:

https://github.com/sherzberg/kickflip-android-example/tree/android-21-upgrade

Unable to contact Kickflip

I've edited SECRETS.java to my own app KEY/SECRET.

But it says Unable to contact Kickflip when app launched.

Background Broadcasting

Studying the Android Api, I saw that the way to start broadcasting is using an activity.
Is there a way to broadcast from Background? I wanted to broadcast from a service without the preview being showed on the screen.

Android 4.3 Crash

Hey, just built the sample and it works really well streaming from a 4.4 device.
Viewing also works with 4.3. But when I go to capture on my 4.3 device I get a crash (io.kickflip.sdk.av.CameraEncoder.handleFrameAvailable(CameraEncoder.java:416)) . Its a Samsung GT-I9300. Log cat is below, hope it helps:

05-12 17:23:57.879: I/Muxer(11442): Created muxer for output: /storage/emulated/0/MySampleApp/480fc028-aa7f-42f4-b59e-551b828b9f20/index.m3u8
05-12 17:23:57.884: D/dalvikvm(11442): Trying to load lib /data/app-lib/io.kickflip.sample-1/libFFmpegWrapper.so 0x42791798
05-12 17:23:57.919: D/dalvikvm(11442): Added shared lib /data/app-lib/io.kickflip.sample-1/libFFmpegWrapper.so 0x42791798
05-12 17:23:57.919: D/dalvikvm(11442): No JNI_OnLoad found in /data/app-lib/io.kickflip.sample-1/libFFmpegWrapper.so 0x42791798, skipping init
05-12 17:23:58.339: I/Choreographer(11442): Skipped 31 frames! The application may be doing too much work on its main thread.
05-12 17:23:58.929: D/AbsListView(11442): unregisterIRListener() is called
05-12 17:23:58.974: I/dalvikvm(11442): Could not find method android.media.MediaCodec.setParameters, referenced from method io.kickflip.sdk.av.AndroidEncoder.adjustBitrate
05-12 17:23:58.974: W/dalvikvm(11442): VFY: unable to resolve virtual method 484: Landroid/media/MediaCodec;.setParameters (Landroid/os/Bundle;)V
05-12 17:23:58.974: D/dalvikvm(11442): VFY: replacing opcode 0x6e at 0x0016
05-12 17:23:58.984: I/OMXClient(11442): Using client-side OMX mux.
05-12 17:23:59.144: V/AudioRecord(11442): set(): sampleRate 44100, channelMask 0x10, frameCount 5120
05-12 17:23:59.144: V/AudioRecord(11442): set(): mSessionId 39
05-12 17:23:59.149: V/AudioRecord(11442): AudioRecord::set() minFrameCount = 2048
05-12 17:23:59.244: I/Broadcaster(11442): Initial video bitrate : 2000000
05-12 17:23:59.249: I/Broadcaster(11442): Got storage credentials io.kickflip.sdk.api.json.User@4293a350
05-12 17:23:59.374: D/dalvikvm(11442): GC_FOR_ALLOC freed 4473K, 30% free 15353K/21708K, paused 36ms, total 37ms
05-12 17:23:59.399: D/dalvikvm(11442): GC_FOR_ALLOC freed 10K, 27% free 15999K/21708K, paused 16ms, total 16ms
05-12 17:23:59.399: I/dalvikvm-heap(11442): Grow heap (frag case) to 19.363MB for 2688016-byte allocation
05-12 17:23:59.419: D/dalvikvm(11442): GC_FOR_ALLOC freed 0K, 15% free 18624K/21708K, paused 17ms, total 17ms
05-12 17:23:59.439: W/CameraRelease(11442): Didn't try to open camera onHAResume. rec: false mSurfaceTexture ready? no
05-12 17:23:59.469: D/SensorManager(11442): registerListener :: create queue :: handler = 0, name = LSM330DLC 3-axis Accelerometer, delay = 200000,
05-12 17:23:59.474: I/Choreographer(11442): Skipped 32 frames! The application may be doing too much work on its main thread.
05-12 17:23:59.794: D/CameraSurfaceRenderer(11442): onSurfaceCreated
05-12 17:23:59.824: D/Texture2dProgram(11442): Created program 3 (TEXTURE_EXT)
05-12 17:23:59.829: D/CameraSurfaceRenderer(11442): onSurfaceChanged 1280x720
05-12 17:23:59.829: I/CameraSurfaceRenderer(11442): setTexSize on display Texture
05-12 17:23:59.844: I/OMXClient(11442): Using client-side OMX mux.
05-12 17:23:59.859: I/ACodec(11442): setupVideoEncoder succeeded
05-12 17:23:59.879: D/EglCore(11442): EGLContext created, client version 2
05-12 17:24:00.064: D/Texture2dProgram(11442): Created program 6 (TEXTURE_EXT)
05-12 17:24:00.099: D/AbsListView(11442): onVisibilityChanged() is called, visibility : 4
05-12 17:24:00.099: D/AbsListView(11442): unregisterIRListener() is called
05-12 17:24:01.129: E/GLConsumer(11442): [unnamed-11442-0] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
05-12 17:24:01.129: W/dalvikvm(11442): threadid=11: thread exiting with uncaught exception (group=0x41d2e700)
05-12 17:24:01.134: E/AndroidRuntime(11442): FATAL EXCEPTION: CameraEncoder
05-12 17:24:01.134: E/AndroidRuntime(11442): java.lang.RuntimeException: Error during updateTexImage (see logcat for details)
05-12 17:24:01.134: E/AndroidRuntime(11442): at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)
05-12 17:24:01.134: E/AndroidRuntime(11442): at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:163)
05-12 17:24:01.134: E/AndroidRuntime(11442): at io.kickflip.sdk.av.CameraEncoder.handleFrameAvailable(CameraEncoder.java:416)
05-12 17:24:01.134: E/AndroidRuntime(11442): at io.kickflip.sdk.av.CameraEncoder.access$200(CameraEncoder.java:27)
05-12 17:24:01.134: E/AndroidRuntime(11442): at io.kickflip.sdk.av.CameraEncoder$EncoderHandler.handleMessage(CameraEncoder.java:826)
05-12 17:24:01.134: E/AndroidRuntime(11442): at android.os.Handler.dispatchMessage(Handler.java:99)
05-12 17:24:01.134: E/AndroidRuntime(11442): at android.os.Looper.loop(Looper.java:176)
05-12 17:24:01.134: E/AndroidRuntime(11442): at io.kickflip.sdk.av.CameraEncoder.run(CameraEncoder.java:597)
05-12 17:24:01.134: E/AndroidRuntime(11442): at java.lang.Thread.run(Thread.java:841)
05-12 17:24:01.359: D/SensorManager(11442): unregisterListener ::
05-12 17:24:10.064: I/Choreographer(11442): Skipped 521 frames! The application may be doing too much work on its main thread.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.