Code Monkey home page Code Monkey logo

Comments (10)

zhigang1992 avatar zhigang1992 commented on August 24, 2024 1

Try console log the error , there should be a detailed error object nested

from react-native-video-cache.

zhigang1992 avatar zhigang1992 commented on August 24, 2024 1

Closing now, feel free to reopen this once you have these errors

from react-native-video-cache.

RupamShaw avatar RupamShaw commented on August 24, 2024

getting same error

Error: failed to start proxy server
RenderVideo.js:41
code:"init.error"
domain:"NSPOSIXErrorDomain"
framesToPop:1
message:"failed to start proxy server"
nativeStackIOS:Array(17) ["0   shojoProducer                       0x00000001…", "1   shojoProducer                       0x00000001…", "2   shojoProducer                       0x00000001…", …]
length:17
__proto__:Array(0) [, …]
0:"0   shojoProducer                       0x000000010f790eb7 RCTJSErrorFromCodeMessageAndNSError + 135"
1:"1   shojoProducer                       0x000000010f7024c3 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.218 + 179"
2:"2   shojoProducer                       0x000000010fab2008 -[VideoCache convert:resolver:rejecter:] + 264"
3:"3   CoreFoundation                      0x00000001152eb03c __invoking___ + 140"
4:"4   CoreFoundation                      0x00000001152e84d5 -[NSInvocation invoke] + 325"
5:"5   CoreFoundation                      0x00000001152e8926 -[NSInvocation invokeWithTarget:] + 54"
6:"6   shojoProducer                       0x000000010f70452a -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2810"
7:"7   shojoProducer                       0x000000010f708c76 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 790"
8:"8   shojoProducer                       0x000000010f70878f _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 127"
9:"9   shojoProducer                       0x000000010f708709 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 25"
10:"10  libdispatch.dylib                   0x000000011793a4e1 _dispatch_call_block_and_release + 12"
11:"11  libdispatch.dylib                   0x000000011793b54b _dispatch_client_callout + 8"
12:"12  libdispatch.dylib                   0x000000011794201c _dispatch_lane_serial_drain + 720"
13:"13  libdispatch.dylib                   0x0000000117942b5f _dispatch_lane_invoke + 401"
14:"14  libdispatch.dylib                   0x000000011794b9a8 _dispatch_workloop_worker_thread + 645"
15:"15  libsystem_pthread.dylib             0x0000000117cd3fd2 _pthread_wqthread + 980"
16:"16  libsystem_pthread.dylib             0x0000000117cd3be9 start_wqthread + 13"
stack:"Error: failed to start proxy server
    at fn (/srs/new/shojoProducer/.vscode/.react/index.bundle:2181:36)
    at _callee$ (/srs/new/shojoProducer/.vscode/.react/index.bundle:178622:86)
    at tryCatch (/srs/new/shojoProducer/.vscode/.react/index.bundle:29306:19)
    at Generator.invoke [as _invoke] (/srs/new/shojoProducer/.vscode/.react/index.bundle:29481:24)
    at Generator.prototype.(anonymous function) [as next] (/srs/new/shojoProducer/.vscode/.react/index.bundle:29349:23)
    at tryCatch (/srs/new/shojoProducer/.vscode/.react/index.bundle:29306:19)
    at invoke (/srs/new/shojoProducer/.vscode/.react/index.bundle:29382:22)
    at /srs/new/shojoProducer/.vscode/.react/index.bundle:29412:13
    at tryCallTwo (/srs/new/shojoProducer/.vscode/.react/index.bundle:3269:7)
    at doResolve (/srs/new/shojoProducer/.vscode/.react/index.bundle:3433:15)"
userInfo:Object {NSLocalizedFailureReason: "Error in bind() function", NSLocalizedDescription: "Permission denied"}
NSLocalizedDescription:"Permission denied"
NSLocalizedFailureReason:"Error in bind() function"

from react-native-video-cache.

zhigang1992 avatar zhigang1992 commented on August 24, 2024

Can you try set a custom port in VideoCache.m @RupamShaw

from react-native-video-cache.

RupamShaw avatar RupamShaw commented on August 24, 2024

https://github.com/ChangbaDevs/KTVHTTPCache i can see
Usage
Start proxy.
[KTVHTTPCache proxyStart:&error];

where I should do this

from react-native-video-cache.

RupamShaw avatar RupamShaw commented on August 24, 2024

VideoCache.m

where is VideoCache.m file?

from react-native-video-cache.

zhigang1992 avatar zhigang1992 commented on August 24, 2024

ChangbaDevs/KTVHTTPCache#112 @RupamShaw

from react-native-video-cache.

RupamShaw avatar RupamShaw commented on August 24, 2024

VideoCache.m

where is VideoCache.m file?
i got file but how could i set in file custom port

#import <KTVHTTPCache/KTVHTTPCache.h>


@implementation VideoCache

RCT_EXPORT_MODULE()

RCT_EXPORT_METHOD(convert:(NSString *)url
                  resolver:(RCTPromiseResolveBlock)resolve
                  rejecter:(RCTPromiseRejectBlock)reject)
{
  if (!KTVHTTPCache.proxyIsRunning) {
    NSError *error;
    [KTVHTTPCache proxyStart:&error];
    if (error) {
      reject(@"init.error", @"failed to start proxy server", error);
      return;
    }
  }
  resolve([KTVHTTPCache proxyURLWithOriginalURL:[NSURL URLWithString:url]].absoluteString);
}


@end

please let me know where to set port

from react-native-video-cache.

RupamShaw avatar RupamShaw commented on August 24, 2024

server not started ,
but my problem solved
https://github.com/react-native-community/react-native-video/tree/master/examples/video-caching
please close this issue

from react-native-video-cache.

RupamShaw avatar RupamShaw commented on August 24, 2024

from react-native-video-cache.

Related Issues (20)

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.