Comments (10)
Try console log the error , there should be a detailed error object nested
from react-native-video-cache.
Closing now, feel free to reopen this once you have these errors
from react-native-video-cache.
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.
Can you try set a custom port in VideoCache.m @RupamShaw
from react-native-video-cache.
https://github.com/ChangbaDevs/KTVHTTPCache i can see
Usage
Start proxy.
[KTVHTTPCache proxyStart:&error];
where I should do this
from react-native-video-cache.
VideoCache.m
where is VideoCache.m file?
from react-native-video-cache.
ChangbaDevs/KTVHTTPCache#112 @RupamShaw
from react-native-video-cache.
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.
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.
from react-native-video-cache.
Related Issues (20)
- too many requests to the backend server for the first time request. HOT 1
- RN 0.65 Android Build fails due to jcenter deprecation HOT 4
- Too many open files HOT 2
- Is it working with gradle 7? HOT 1
- Android: How to verify
- Build failed when used with SDK 33 HOT 1
- The Video URL doesn't change on Android Release mode #14 HOT 4
- get the cached videos path
- danikula/AndroidVideoCache is not available HOT 5
- expo supports? HOT 2
- When app close or re-open will video cache removed?
- Cant add react-native-video-cache to project. HOT 2
- Build failing with React Native >= 0.72 and Gradle 8.0 | Could not set unknown property 'classifier' HOT 3
- App crashes when video I use the cache library HOT 6
- In release APK android this caching not working HOT 11
- [iOS] Linker command failed with exit code 1
- Could not find com.danikula:videocache:2.7.1. HOT 6
- Video is not caching HOT 2
- Cache not working on Chromecast/AndroidTV
- Regression on iOS "avfoundationerrordomain"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-video-cache.