This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PODS: | |
- AppsFlyer-SDK (2.5.3.15.1) | |
- Bolts (1.6.0): | |
- Bolts/AppLinks (= 1.6.0) | |
- Bolts/Tasks (= 1.6.0) | |
- Bolts/AppLinks (1.6.0): | |
- Bolts/Tasks | |
- Bolts/Tasks (1.6.0) | |
- FBSDKCoreKit (4.7.0): | |
- Bolts (~> 1.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-08-11 11:31:14.785 Generate[471:146048] Warning: A long-running operation is being executed on the main thread. | |
Break on warnBlockingOperationOnMainThread() to debug. | |
2016-08-11 11:31:15.828 Generate[471:146048] Received memory warning. | |
2016-08-11 11:31:18.595 Generate[471:146048] Welcome | |
2016-08-11 11:31:19.296 Generate[471:146048] Warning: A long-running operation is being executed on the main thread. | |
Break on warnBlockingOperationOnMainThread() to debug. | |
2016-08-11 11:31:19.306 Generate[471:146048] Warning: A long-running operation is being executed on the main thread. | |
Break on warnBlockingOperationOnMainThread() to debug. | |
2016-08-11 11:31:19.308 Generate[471:146048] Warning: A long-running operation is being executed on the main thread. | |
Break on warnBlockingOperationOnMainThread() to debug. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.rawG8OutputTarget = [[GPUImageRawDataOutput alloc] initWithImageSize: aspectSize resultsInBGRAFormat:YES]; | |
[filterChain.output addTarget:self.rawG8OutputTarget]; | |
__weak GPUImageRawDataOutput *weakRawOutput = self.rawG8OutputTarget; | |
[self.rawG8OutputTarget setNewFrameAvailableBlock:^{ | |
GLubyte *outputBytes = [weakRawOutput rawBytesForImage]; | |
NSInteger bytesPerRow = [weakRawOutput bytesPerRowInOutput]; | |
//I use this variables to create the image to be streamed. | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let userId = AccessToken.current?.userId | |
let path = "/"+userId!+"/live_videos" | |
var title = "the title" | |
let descript = "my description" | |
let request : GraphRequest = GraphRequest(graphPath: path, | |
parameters:["title": title!, | |
"description": descript, | |
"privacy":"{'value':'SELF'}", | |
"save_vod": true, | |
"fields": ""], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func startPollingComments(){ | |
if let cStream = currentStream, connected == true{ | |
//the code would not continue if its NOT connected. hence the Timer shcedule will not be generated, this stops the polling | |
let stream = cStream as! FBLiveStream | |
stream.getLastComments(completion: { (comments, error) in | |
if (error == nil){ | |
self.onCommentsUpdate?(comments as! [Dictionary<String, Any>]) | |
} | |
Timer.scheduledTimer(withTimeInterval: 5.0, repeats: false, block: {timer in | |
self.startPollingComments() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import AVFoundation | |
import lf | |
import GPUImage | |
import VideoToolbox | |
class G8LiveStreamer: NSObject { | |
var streamUrl:String? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lf | |
import UIKit | |
import XCGLogger | |
import AVFoundation | |
let sampleRate:Double = 44_100 | |
final class LiveViewController: UIViewController { | |
//..... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
namespace Vuforia{ | |
public class ImageTargetAnimTrigger: MonoBehaviour, | |
ITrackableEventHandler | |
{ | |
private TrackableBehaviour mTrackableBehaviour; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
precision highp float; | |
varying highp vec2 textureCoordinate; | |
uniform sampler2D inputImageTexture; | |
void main() | |
{ | |
highp vec4 textureColor; | |
highp vec4 rCol; | |
highp vec4 gCol; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varying vec2 textureCoordinate; | |
uniform sampler2D inputImageTexture; | |
uniform float contrast; | |
void main() | |
{ | |
vec4 textureColor = texture2D(inputImageTexture, textureCoordinate); | |
gl_FragColor = vec4(((textureColor.rgb - vec3(0.5)) * contrast + vec3(0.5)), textureColor.w); |
OlderNewer