zfkun / node-airplay Goto Github PK
View Code? Open in Web Editor NEWApple AirPlay client library for node.js
License: MIT License
Apple AirPlay client library for node.js
License: MIT License
is there a way to stream a movie with a subtitle file?
考虑取消 file
方式,换成 stream
方式
参考 Beamer
的调用参数:
/Users/zfkun/Applications/Beamer.app/Contents/Resources/ffmpeg
--segment-length 5
--segment-offset 0
-ss 0
-i file:/Users/zfkun/Movies/That.Awkard.Moment.2014.HR-HDTV.AC3.1024X576.x264.mkv
-f mpegts
-c:v libx264
-preset ultrafast
-crf 20
-force_key_frames expr:gte(t,n_forced*5)
-pix_fmt yuv420p
-map 0:0
-s 1024x576
-c:a aac
-strict experimental
-ac 2
-ab 160k
-matrix_encoding dplii
-ar 48000
-async 1
-map 0:1
pipe:1
How would i go about retrieving the device's name? I tried device.getInfo().name
, but it is null., along with fullName
and other similar properties. device.serverInfo
has nothing useful
代码 & 架构
see #1
Hi, i'm trying to check out your library ( great work ) but it's throwing me this exception:
format:
{ filename: '/Users/fefewachs/Movies/test-parlantes-5.1.avi',
nb_streams: 2,
nb_programs: 0,
format_name: 'avi',
format_long_name: 'AVI (Audio Video Interleaved)',
start_time: '0.000000',
duration: '48.615282',
size: '15030272',
bit_rate: '2473341',
probe_score: 100,
tags: { encoder: 'Nandub v1.0rc2' } } }
parseStringSync()
is deprecated. Use parse()
instead.
video playing...
events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open '/Users/fefewachs/Documents/development/projects/node/node-example/node_modules/airplay2/out/1.ts'
I've tried changing permissions and all but nothing is working. What should I do?
I'm fairly new to Node so please bear with me.
Regards,
Federico
综上所述,这种惰性转码机制,会带来很大的问题 不能快进
,否则会根据以上情况不同程度的卡死.....
找时间重构改成独立唯一
线程
Trying to use this library i've got this from file node_modules/airplay2/node_modules/mdns/lib/dns_sd.js
393 warn notsup Unsupported engine for [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"10.4.1","npm":"6.12.0"})
394 warn notsup Not compatible with your version of node/npm: [email protected]
395 verbose notsup Not compatible with your version of node/npm: [email protected]
395 verbose notsup Required: {"node":"0.8.x || 0.10.x"}
395 verbose notsup Actual: {"npm":"6.12.0","node":"10.4.1"}
396 warn [email protected] No description
397 warn [email protected] No repository field.
398 verbose stack Error: [email protected] install: `node-gyp rebuild`
398 verbose stack Exit status 1
398 verbose stack at EventEmitter.<anonymous> (/Users/alexey/.nvm/versions/node/v10.4.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
398 verbose stack at EventEmitter.emit (events.js:182:13)
398 verbose stack at ChildProcess.<anonymous> (/Users/alexey/.nvm/versions/node/v10.4.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
398 verbose stack at ChildProcess.emit (events.js:182:13)
398 verbose stack at maybeClose (internal/child_process.js:961:16)
398 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
399 verbose pkgid [email protected]
400 verbose cwd /Users/alexey/projects/alexey/easy_cast
401 verbose Darwin 18.7.0
402 verbose argv "/Users/alexey/.nvm/versions/node/v10.4.1/bin/node" "/Users/alexey/.nvm/versions/node/v10.4.1/bin/npm" "install" "airplay2"
403 verbose node v10.4.1
404 verbose npm v6.12.0
405 error code ELIFECYCLE
406 error errno 1
407 error [email protected] install: `node-gyp rebuild`
407 error Exit status 1
408 error Failed at the [email protected] install script.
408 error This is probably not a problem with npm. There is likely additional logging output above.
409 verbose exit [ 1, true ]
Your docs only mention using video and audio. But you can also mirror the entire screen or display different content with AirPlay. As per this article: https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/WindowAndScreenGuide/UsingExternalDisplay/UsingExternalDisplay.html
Is this possible with your package? Note: This is for use on a Mac.
Hi,
do you know if there is an issue with the latest firmware that has just been released by apple (7.0.2)? I can't see my ATV anymore...
hi
你好,我想在nw上面实现支持hls,支持m3u8的播放。
node-airplay 可以吗 ?
求指导~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.