GithubHelp home page GithubHelp logo

swift-client-sdk's People

Contributors

alexyats avatar bane-d avatar katolykdev avatar leojkwan avatar lordlezehaf avatar oliverfriedmann avatar tomwfox avatar ziggeo-commits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swift-client-sdk's Issues

Linker command failed

When i add the ZigeoSwiftFramework.framework to my application i get the following error:
Linker command failed with exit code 1(use -v to see invocation).

Swift 3

Do you have any plans for a swift 3 branch?

Unable to remove preview after recording ends

So I am using ZiggeoRecorder and customizing it using RecorderConfig. When I end up recording a preview player gets presented.
I don't need the presented preview as I want to implement my own player. How can I do this?
I used this configuration:

func getVideoRecorder() -> ZiggeoRecorder {
    let recorderConfig = RecorderConfig()
    recorderConfig.setShouldAutoStartRecording(false)
    recorderConfig.setStartDelay(DEFAULT_START_DELAY)
    recorderConfig.setShouldDisableCameraSwitch(false)
    recorderConfig.setVideoQuality(.max)
    recorderConfig.setFacing(FACING_FRONT)
    recorderConfig.setMaxDuration(0)
    recorderConfig.setShouldSendImmediately(false)
    recorderConfig.setIsPausedMode(true)
    recorderConfig.setShouldConfirmStopRecording(false)
    
    ziggeoModule.setRecorderConfig(recorderConfig)
    let recorderController = ZiggeoRecorder(application: ziggeoModule)
    
    return recorderController
  }

There is a property setShouldSendImmediately when I set it false, it doesnt show player but it dismisses my controller where I am showing the recorder, which is also an unwanted behaviour.

Swift version 4.2

Hi,
Can you please compile the framework for the latest tools ?
Thank you

iPhone X variant support

Hello
I will give you some bugs about ziggeo swift client.
On iphone X variants (X,XS,XSMAX and 11s) record screen bottom controls are little problematic
https://ibb.co/d66PYrj

As you can see bottom controls are overlapping with the iphone's bottom line.
I tried
recorder.modalPresentationStyle = .fullScreen
and
recorder.modalPresentationStyle = .automatic

but still this happens.
Thanks

Uploading video from phone library

HI, I use createVideo function to create new video from path returned by ImagePickerController,
video upload callbacka are all trigerred, seems like video uploads but is always 185 bytes in size and actually nothing is uploaded. Local thumb is correct. Any help?

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
NSLog("(info)")
if let url = info["UIImagePickerControllerMediaURL"] as? URL {
NSLog("(url)")
self.m_ziggeo = Ziggeo(token: zigeo)
self.m_ziggeo.videos.delegate = self;
self.m_ziggeo.videos.createVideo(nil, file: url.absoluteString, cover: nil, callback: nil, progress: nil);

    }
    dismiss(animated: true, completion: nil)
}

Crash when opening the recorder

Hello
This one is not a show stopper but every time I open the recorder I am getting this crash report

Main Thread Checker: UI API called on a background thread: -[UIView isHidden]
PID: 11675, TID: 1898219, Thread name: (none), Queue name: session queue, QoS: 0
Backtrace:
4   ZiggeoSwiftFramework                0x000000010763efb8 $s20ZiggeoSwiftFramework0A8RecorderC9drawFacesyyF + 164
5   ZiggeoSwiftFramework                0x0000000107644ecc $s20ZiggeoSwiftFramework0A8RecorderC13captureOutput_03didF04fromySo09AVCaptureF0C_So17CMSampleBufferRefaSo0I10ConnectionCtFTf4nndn_n + 192
6   ZiggeoSwiftFramework                0x000000010763f1b8 $s20ZiggeoSwiftFramework0A8RecorderC13captureOutput_03didF04fromySo09AVCaptureF0C_So17CMSampleBufferRefaSo0I10ConnectionCtFTo + 96
7   AVFoundation                        0x00000001b9bc822c BAE1D0DC-B906-3AF2-9651-A0F35779BE54 + 999980
8   AVFoundation                        0x00000001b9bc7f70 BAE1D0DC-B906-3AF2-9651-A0F35779BE54 + 999280
9   CoreMedia                           0x00000001b6140ca8 89AD72DE-9912-3E85-B361-AD7CD6D823F0 + 347304
10  CoreMedia                           0x00000001b6161988 89AD72DE-9912-3E85-B361-AD7CD6D823F0 + 481672
11  libdispatch.dylib                   0x000000010784f27c _dispatch_client_callout + 20
12  libdispatch.dylib                   0x0000000107852058 _dispatch_continuation_pop + 572
13  libdispatch.dylib                   0x0000000107865824 _dispatch_source_invoke2 + 984
14  libdispatch.dylib                   0x0000000107865114 _dispatch_source_invoke + 468
15  libdispatch.dylib                   0x0000000107856740 _dispatch_lane_serial_drain + 260
16  libdispatch.dylib                   0x00000001078574fc _dispatch_lane_invoke + 408
17  libdispatch.dylib                   0x00000001078624dc _dispatch_workloop_worker_thread + 1344
18  libsystem_pthread.dylib             0x00000001af4eb6d0 _pthread_wqthread + 280
19  libsystem_pthread.dylib             0x00000001af4f19e8 start_wqthread + 8

based on crash name (s20ZiggeoSwiftFramework0A8RecorderC9drawFacesyyF) I tried to
recorder.showFaceOutline = false
but still getting this.
Thanks

Podspec to 1.1.11

Hi coud you update please the podspec file? Cannot put in the 1.1.11 version and looked into the file and your pod points to 1.1.10

Ziggeo Player initializer causing crash

using the ZiggeoPlayer initializer
let player = ZiggeoPlayer(application: self.ziggeoModule, videoToken: uploadToken)

App is getting crashed giving following error:

Fatal error: Use of unimplemented initializer 'init(playerItem:)' for class 'ZiggeoMediaSwiftSDK.ZiggeoPlayer'

linker proble with bytecode

ld: bitcode bundle could not be generated because '/Users/goran/Code/projectname/Pods/ZiggeoSwiftSDK/Output/swift3.3/Universal/ZiggeoSwiftFramework.framework/ZiggeoSwiftFramework' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/goran/Code/mechanican2/Pods/ZiggeoSwiftSDK/Output/swift3.3/Universal/ZiggeoSwiftFramework.framework/ZiggeoSwiftFramework' for architecture arm64

Any idea how to fix this linker problem Xcode 9

Best regards!

Won't compile on Xcode 8.2 with Swift 3.0

I just downloaded the latest from the master branch on the repo and I am getting a build error in three places. They are all in ViewController.swift and say:

'Ziggeo' is unavailable: cannot find Swift declaration for this class

The errors are on lines 16, 23, and 66.

Cocoapods doesn't work

It didn't file the framework when I added it. I'm guessing it isn't added to the spec repo?

I worked around it by pointing to this repo:

pod 'ZiggeoSwiftSDK', :git => 'https://github.com/Ziggeo/Swift-Client-SDK'

Sample - Custom Preview

I installed the app and after I aloowed camera access the screen remained black and I got the capture session runtime error. Here is the log.

2018-01-10 09:27:31.670090 CustomPreview[6306:3085306] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-01-10 09:27:31.684239 CustomPreview[6306:3085306] [MC] Reading from public effective user settings.
2018-01-10 09:27:33.603041 CustomPreview[6306:3085356] capture session configured
2018-01-10 09:27:36.063111 CustomPreview[6306:3085306] capture session runtime error: Optional(Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSUnderlyingError=0x17404d230 {Error Domain=NSOSStatusErrorDomain Code=-16811 "(null)"}, NSLocalizedFailureReason=An unknown error occurred (-16811), NSLocalizedDescription=The operation could not be completed})
2018-01-10 09:27:36.065727 CustomPreview[6306:3085356] session started

Device: iPad mini 4
iOS: 10.2

Later Edit:
Also, I tested it on iPhone X and iPhone 7 same with iOS 11.2.1 and on them the app runs without problems.

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.