Git Product home page Git Product logo

macast's Introduction

slogan

Macast

visitor stars downloads plugins pypi aur build mac windows linux

中文说明

A menu bar application using mpv as DLNA Media Renderer. You can push videos, pictures or musics from your mobile phone to your computer.

Installation

  • MacOS || Windows || Debian

    Download link: Macast release latest

  • Package manager

    pip install macast
    macast-gui # or macast-cli

    Please see our wiki for more information(like aur support): #package-manager
    Linux users may have problems installing using pip. Two additional libraries that I have modified need to be installed:

    pip install git+https://github.com/xfangfang/pystray.git
    pip install git+https://github.com/xfangfang/pyperclip.git

    See this for Linux compatibility

  • Build from source

    Please refer to: Macast Development

Usage

  • For ordinary users
    After opening this app, a small icon will appear in the menubar / taskbar / desktop panel, then you can push your media files from a local DLNA client to your computer.

  • For advanced users

    1. By loading the Macast-plugins, Macast can support third-party players like IINA and PotPlayer.
      For more information, see: #how-to-use-third-party-player-plug-in
    2. You can modify the shortcut keys or configuration of the default mpv player by yourself, see: #how-to-set-personal-configurations-to-mpv
  • For developer
    You can use a few lines of code to add support for other players like IINA and PotPlayer or even add additional features, like downloading media files while playing videos.
    Tutorials and examples are shown in: Macast/wiki/Custom-Renderer.
    Fell free to submit a pull request to Macast-plugins.

FAQ

If you have any questions about this application, please check: Macast/wiki/FAQ.
If this does not solve your problem, please open a new issue to notify us, we are willing to help you solve the problem.

Screenshots

You can copy the video link after the video is casted:
copy_uri

Or select a third-party player plug-in
select_renderer

Relevant links

UPnP™ Device Architecture 1.1

UPnP™ Resources

UPnP™ ContentDirectory:1 service

UPnP™ MediaRenderer:1 device

UPnP™ AVTransport:1 service

UPnP™ RenderingControl:1 service

python-upnp-ssdp-example

macast's People

Contributors

albanobattistella avatar coolkiid avatar haifeng97 avatar heidiwenger avatar whiredplanck avatar xfangfang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

macast's Issues

[Question] Archlinux Gnome 上的托盘问题

Versions

  • System version: Archlinux with Gnome 4 (wayland)
  • Processor architecture: x64
  • APP version: git

Problem

感谢作者, 经过测试在我的设备上正常工作

唯一美中不足的就是没有看到托盘显示(看了您的视频来的, 不知道是否为bug)

[BUG] 腾讯视频无法搜索到

Versions

  • System: macOS 11
  • System version: 11.5.2
  • Processor architecture: arm
  • APP version: v0.5

Bug recurrence

腾讯视频无法搜索到

Additional information

ios15,腾讯视频,iPhone11,
不知道是腾讯限制还是什么问题,腾讯视频一直无法搜索到。在爱奇艺和b站都是正常的。
补充下:在mac mini m1上使用作者的方法编译的程序

Log

[BUG] win0

Versions

  • System: (eg:MacOS)
  • System version: (eg:11.4)
  • Processor architecture: (eg:X86)
  • APP version: (eg: v0.2)

Bug recurrence

(How to trigger this bug)

Additional information

(More description of this bug)

Log

Starting Macast from terminal to get logs.

MacOS

run this in your terminal:

/Applications/Macast.app/Contents/MacOS/Macast

Windows

download debug version of this application: Download link

Linux

python Macast.py

PasteBoard

# then paste your log here

[NEW FEATURE] We need a new icon

The current icon is undoubtedly very ugly. I wish someone who is interested can create a new icon for this app.
Please click the emoji 👍 in the lower left corner to support to your favorite design, or send your design in a similar format.

现在的图标非常丑,希望有感兴趣的朋友可以为Macast创造一个新图标。
请点击左下角的 表情符号👍 支持您喜爱的设计,或者以类似格式发送您的设计。

[BUG] Windows系统下无法投屏

Versions

  • System: Windows 11
  • System version: 22000.160
  • Processor architecture: amd64
  • APP version: 0.5

Bug recurrence

首次打开之后允许了防火墙,但是仍旧无法被其他设备的投屏功能找到。同一局域网下的另一台m1 mba就可以正常投屏

Additional information

(More description of this bug)

Log

Starting Macast from terminal to get logs.

MacOS

run this in your terminal:

/Applications/Macast.app/Contents/MacOS/Macast

Windows

 LOZAP@AdamsSurface  ~  Downloads  Programs 
❯ C:\Users\LOZAP\Downloads\Programs\Macast-v0.5-debug.exe
Macast Loading Default Language en_US
ERROR:Render:MPV started
DEBUG:Macast:mpv_start
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
DEBUG:Macast:tag_name: v0.5
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
ERROR:Render:mpv ipc socket start connect
INFO:Render:{'event': 'property-change', 'id': 1, 'name': 'volume', 'data': 100.0}
INFO:Render:{'event': 'property-change', 'id': 3, 'name': 'pause', 'data': False}
ERROR:SSDPServer:not enough values to unpack (expected 2, got 1)
ERROR:Render:stoping mpv
ERROR:Render:mpv ipc stopped
ERROR:Render:MPV stopped
ERROR:main:Cherrypy stopped

 LOZAP@AdamsSurface  ~  Downloads  Programs 
❯ C:\Users\LOZAP\Downloads\Programs\Macast-v0.5-debug.exe
Macast Loading Default Language en_US
MPV started
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
DEBUG:Macast:tag_name: v0.5
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
ERROR:Render:mpv ipc socket start connect
ERROR:Render:mpv ipc socket reconnecting
ERROR:Render:mpv ipc socket start connect
INFO:Render:{'event': 'property-change', 'id': 1, 'name': 'volume', 'data': 100.0}
INFO:Render:{'event': 'property-change', 'id': 3, 'name': 'pause', 'data': False}
ERROR:Render:stoping mpv
ERROR:Render:mpv ipc stopped
ERROR:Render:MPV stopped
ERROR:SSDPServer:not enough values to unpack (expected 2, got 1)

Linux

python Macast.py

PasteBoard

# then paste your log here

[NEW FEATURE] support for airplay

New feature

(type your idea here)
什么时候能够支持airplay1或者airplay2,那样windows htpc就完美了

Additional context

(Add any other context or screenshots about the feature request here.)

[BUG] win7搜不到设备

Versions

  • System: (eg:MacOS) win7
  • System version: (eg:11.4) 旗舰版sp1
  • Processor architecture: (eg:X86) x64
  • APP version: (eg: v0.2) 0.5

Bug recurrence

win7笔记本, 电信宽带......下载后运行正常出现托盘图标, 没有闪退. 用安卓手机上的"v影"软件测试, 搜不到设备. 而投屏到安卓TV正常.
安卓浏览器访问电脑: http:192.168.1.5:1068, 看到hello world None
改用debug版本, 如图
https://files.catbox.moe/9tt4w8.jpg
然后等到出现托盘图标, 这下可以搜索到设备了, 然后尝试投屏, 托盘图标弹出小提示: load failed:
https://files.catbox.moe/0m5tic.jpg

Additional information

(More description of this bug)

Log

Starting Macast from terminal to get logs.

MacOS

run this in your terminal:

/Applications/Macast.app/Contents/MacOS/Macast

Windows

download debug version of this application: Download link

Linux

python Macast.py

PasteBoard

# then paste your log here

[BUG] 手机连接PC热点情况下无法搜索到设备

Versions

  • System: Win11
  • System version: 21H2(22000.184)
  • Processor architecture: x64
  • APP version: v0.61

Bug recurrence

打开Windows热点,手机连接热点网络

Additional information

笔记本创建WiFi热点由于热点IP地址与本地实机IP地址不一致,app使用实机IP而手机连接则为热点IP,IP不一致导致的无法搜索到设备的问题

[NEW FEATURE] Type your title here

New feature

How to modify the default video player

define

I am noticed that there is a video player named mpv.
What i can do if i want to use potplayer as my default video player?

[BUG] Windows下无法正常启动(Unable to start on Windows)

Versions

  • System: Windows
  • System version: 21H1 (19043)
  • Processor architecture: x86_74
  • APP version: v0.5

Bug recurrence

Just start it.

Additional information

I have Python 3.9.2 (accessible via python) on this machine, maybe it is related?

Log

PasteBoard

Macast Loading Language: zh_CN
MPV started
ERROR:SSDPServer:not enough values to unpack (expected 2, got 1)
ERROR:Render:stoping mpv
ERROR:Render:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:Render:cannot send command quit to mpv
ERROR:Render:stoping mpv
ERROR:Render:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:Render:cannot send command quit to mpv
ERROR:Render:mpv ipc socket start connect
INFO:Render:{'event': 'property-change', 'id': 1, 'name': 'volume', 'data': 100.0}
INFO:Render:{'event': 'property-change', 'id': 3, 'name': 'pause', 'data': False}
ERROR:Render:mpv ipc stopped
ERROR:Render:MPV stopped

[Question] 启动失败

Versions

  • System version: Windows 10 21H1 19043.1165
  • Processor architecture: X86
  • APP version: V0.5-debug

Problem

无法投屏,debug日志好像报错了?
微信截图_20210906215408

(your problem description here)

macOS Catalina 10.15.7 启动失败

默认 08:37:15.038584+0800 Dock LAUNCHING:0x0-0xe30e3 Macast foreground=0 bringForward=0 seed=1003 userActivityCount=0
默认 08:37:15.046447+0800 loginwindow -[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : Macast
默认 08:37:15.047483+0800 runningboardd Resolved pid 5741 to [executable<Macast(501)>:5741]
默认 08:37:15.052589+0800 runningboardd [executable<Macast(501)>:5741] This process will not be managed.
默认 08:37:15.052651+0800 runningboardd Now tracking process: [executable<Macast(501)>:5741]
默认 08:37:15.053533+0800 runningboardd Acquiring assertion targeting executable<Macast(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:131] with description <RBSAssertionDescriptor; uielement:5741; ID: 394-131-1398; target: 5741> attributes = {
<RBSDomainAttribute: 0x7fb9a6d28eb0; domain: com.apple.launchservicesd; name: RoleUserInteractive; sourceEnvironment: 0x0>;
}
默认 08:37:15.053725+0800 runningboardd Assertion 394-131-1398 (target:executable<Macast(501)>) will be created as active
默认 08:37:15.054653+0800 runningboardd [executable<Macast(501)>:5741] Ignoring jetsam update because this process is not memory-managed
默认 08:37:15.054841+0800 runningboardd [executable<Macast(501)>:5741] Ignoring resume because this process is not lifecycle managed
默认 08:37:15.054603+0800 runningboardd Acquiring assertion targeting executable<Macast(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:131] with description <RBSAssertionDescriptor; uielement:5741; ID: 394-131-1399; target: 5741> attributes = {
<RBSDomainAttribute: 0x7fb9a9308790; domain: com.apple.launchservicesd; name: RoleUserInteractive; sourceEnvironment: 0x0>;
}
默认 08:37:15.054954+0800 runningboardd [executable<Macast(501)>:5741] Set darwin role to: UserInteractive
默认 08:37:15.055075+0800 runningboardd [executable<Macast(501)>:5741] Ignoring GPU update because this process is not GPU managed
默认 08:37:15.055147+0800 runningboardd Assertion 394-131-1399 (target:executable<Macast(501)>) will be created as active
默认 08:37:15.055305+0800 runningboardd Finished acquiring assertion 394-131-1398 (target:executable<Macast(501)>)
默认 08:37:15.056363+0800 runningboardd Finished acquiring assertion 394-131-1399 (target:executable<Macast(501)>)
默认 08:37:15.056385+0800 runningboardd Invalidating assertion 394-131-1398 (target:executable<Macast(501)>) from originator 131
默认 08:37:15.112395+0800 Macast FRONTLOGGING: version 1
默认 08:37:15.112437+0800 Macast Registering, pid=5741
默认 08:37:15.113140+0800 Macast CHECKIN: pid=5741
错误 08:37:15.118426+0800 tccd Failed to copy signing info for 5741, responsible for file:///Applications/Macast.app/Contents/MacOS/Macast: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
默认 08:37:15.122836+0800 Macast CHECKEDIN: pid=5741 asn=0x0-0xe30e3 foreground=0
默认 08:37:15.122548+0800 launchservicesd CHECKIN:0x0-0xe30e3 5741 org.pythonmac.unspecified.Macast
默认 08:37:15.123708+0800 loginwindow -[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : Macast
默认 08:37:15.123460+0800 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier org.pythonmac.unspecified.Macast, type: 0: 0x7ff8312097b0 at /Applications/Macast.app
默认 08:37:15.124938+0800 Macast Registered, pid=5741 ASN=0x0,0xe30e3
默认 08:37:15.125097+0800 Macast Registered, pid=5741 cgConnectionID=62403
默认 08:37:15.126488+0800 Macast BringForward: pid=5741 asn=0x0-0xe30e3 bringForward=0 foreground=0 uiElement=1 launchedByLS=1 modifiersCount=1 allDisabled=0
默认 08:37:15.126554+0800 Macast BringFrontModifier: pid=5741 asn=0x0-0xe30e3 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
默认 08:37:15.127088+0800 Macast SignalReady: pid=5741 asn=0x0-0xe30e3
默认 08:37:15.128106+0800 Macast SIGNAL: pid=5741 asn=0x0x-0x930019
默认 08:37:17.217293+0800 Macast OSErr AERemoveEventHandler(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean)(aevt,oapp handler=0x1000fffc0 isSys=NO) err=0/noErr
默认 08:37:17.217363+0800 Macast OSErr AERemoveEventHandler(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean)(aevt,odoc handler=0x1000fff90 isSys=NO) err=0/noErr
默认 08:37:17.217413+0800 Macast OSErr AERemoveEventHandler(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean)(GURL,GURL handler=0x1000fff60 isSys=NO) err=0/noErr
默认 08:37:17.311872+0800 Macast Current system appearance, (HLTB: 1), (SLS: 0)
默认 08:37:17.319216+0800 Macast Post-registration system appearance: (HLTB: 1)
默认 08:37:17.326909+0800 distnoted register name: com.apple.xctest.FakeForceTouchDevice object: org.pythonmac.unspecified.Macast token: f4280 pid: 5741
默认 08:37:17.329972+0800 Macast SetFrontProcess: asn=0x0-0xe30e3 options=1
默认 08:37:17.330605+0800 Macast Received configuration update from daemon (initial)
默认 08:37:17.331079+0800 runningboardd Acquiring assertion targeting executable<Macast(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:131] with description <RBSAssertionDescriptor; frontmost:5741; ID: 394-131-1400; target: 5741> attributes = {
<RBSDomainAttribute: 0x7fb9a900d210; domain: com.apple.launchservicesd; name: RoleUserInteractiveFocal; sourceEnvironment: 0x0>;
}
默认 08:37:17.331232+0800 runningboardd Assertion 394-131-1400 (target:executable<Macast(501)>) will be created as active
默认 08:37:17.333499+0800 Macast SetFrontProcess: asn=0x0-0xe30e3 options=0
默认 08:37:17.333512+0800 runningboardd Finished acquiring assertion 394-131-1400 (target:executable<Macast(501)>)
默认 08:37:17.334026+0800 runningboardd [executable<Macast(501)>:5741] Ignoring jetsam update because this process is not memory-managed
默认 08:37:17.334512+0800 runningboardd [executable<Macast(501)>:5741] Set darwin role to: UserInteractiveFocal
默认 08:37:17.335212+0800 runningboardd [executable<Macast(501)>:5741] Ignoring GPU update because this process is not GPU managed
默认 08:37:17.339320+0800 Macast NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 1
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600002c06500
(
"<NSAquaAppearance: 0x600002c06300>",
"<NSSystemAppearance: 0x600002c06380>"
)>
默认 08:37:17.352745+0800 distnoted register name: com.apple.nsquiet_safe_quit_give_reason object: org.pythonmac.unspecified.Macast token: f428c pid: 5741
默认 08:37:17.418541+0800 hidd Connection added: IOHIDEventSystemConnection uuid:B5DC2EC5-BA95-4703-BDA8-E80774850013 pid:5741 process:Macast type:Passive entitlements:0x0 caller:HIToolbox: ___GetIOHIDEventSystemClient_block_invoke + 26 attributes:(null) state:0x0 events:0 mask:0x0
默认 08:37:19.962233+0800 hidd Connection removed: IOHIDEventSystemConnection uuid:B5DC2EC5-BA95-4703-BDA8-E80774850013 pid:5741 process:Macast type:Passive entitlements:0x0 caller:HIToolbox: ___GetIOHIDEventSystemClient_block_invoke + 26 attributes:(null) state:0x1 events:0 mask:0x0
默认 08:37:19.965898+0800 runningboardd [executable<Macast(501)>:5741] Death sentinel fired!
默认 08:37:19.968040+0800 runningboardd Invalidating assertion 394-131-1400 (target:executable<Macast(501)>) from originator 131
默认 08:37:19.973129+0800 loginwindow -[PersistentAppsSupport applicationQuit:] | for app:Macast, _appTrackingState = 2
默认 08:37:19.974764+0800 runningboardd Invalidating assertion 394-131-1399 (target:executable<Macast(501)>) from originator 131
默认 08:37:20.070996+0800 runningboardd Removing process: [executable<Macast(501)>:5741]
默认 08:37:20.071561+0800 runningboardd Removing assertions for terminated process: [executable<Macast(501)>:5741]
错误 08:37:20.087471+0800 runningboardd RBSStateCapture remove item called for untracked item 394-131-1400 (target:executable<Macast(501)>)
错误 08:37:20.087508+0800 runningboardd RBSStateCapture remove item called for untracked item 394-131-1399 (target:executable<Macast(501)>)
默认 08:37:49.771044+0800 Dock LAUNCHING:0x0-0xe40e4 Macast foreground=0 bringForward=0 seed=1005 userActivityCount=0
默认 08:37:49.780746+0800 loginwindow -[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : Macast
默认 08:37:49.783505+0800 runningboardd Resolved pid 5745 to [executable<Macast(501)>:5745]
默认 08:37:49.785924+0800 runningboardd [executable<Macast(501)>:5745] This process will not be managed.
默认 08:37:49.785964+0800 runningboardd Now tracking process: [executable<Macast(501)>:5745]
默认 08:37:49.786633+0800 runningboardd Acquiring assertion targeting executable<Macast(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:131] with description <RBSAssertionDescriptor; uielement:5745; ID: 394-131-1402; target: 5745> attributes = {
<RBSDomainAttribute: 0x7fb9a93183b0; domain: com.apple.launchservicesd; name: RoleUserInteractive; sourceEnvironment: 0x0>;
}
默认 08:37:49.786801+0800 runningboardd Assertion 394-131-1402 (target:executable<Macast(501)>) will be created as active
默认 08:37:49.787462+0800 runningboardd [executable<Macast(501)>:5745] Ignoring jetsam update because this process is not memory-managed
默认 08:37:49.787676+0800 runningboardd Acquiring assertion targeting executable<Macast(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:131] with description <RBSAssertionDescriptor; uielement:5745; ID: 394-131-1403; target: 5745> attributes = {
<RBSDomainAttribute: 0x7fb9a920ad10; domain: com.apple.launchservicesd; name: RoleUserInteractive; sourceEnvironment: 0x0>;
}
默认 08:37:49.787611+0800 runningboardd [executable<Macast(501)>:5745] Ignoring resume because this process is not lifecycle managed
默认 08:37:49.787847+0800 runningboardd [executable<Macast(501)>:5745] Set darwin role to: UserInteractive
默认 08:37:49.787883+0800 runningboardd Assertion 394-131-1403 (target:executable<Macast(501)>) will be created as active
默认 08:37:49.787955+0800 runningboardd [executable<Macast(501)>:5745] Ignoring GPU update because this process is not GPU managed
默认 08:37:49.788048+0800 runningboardd Finished acquiring assertion 394-131-1402 (target:executable<Macast(501)>)
默认 08:37:49.788913+0800 runningboardd Finished acquiring assertion 394-131-1403 (target:executable<Macast(501)>)
默认 08:37:49.788921+0800 runningboardd Invalidating assertion 394-131-1402 (target:executable<Macast(501)>) from originator 131
默认 08:37:49.858886+0800 Macast FRONTLOGGING: version 1
默认 08:37:49.858938+0800 Macast Registering, pid=5745
默认 08:37:49.859646+0800 Macast CHECKIN: pid=5745

[BUG] Ubuntu failed to launch, do I use a wrong Python version? Ubuntu无法启动,是Python版本问题吗?

Versions

  • System: Ubuntu
  • System version: 20.04 LTS
  • Processor architecture: amd64
  • APP version: 0.5

Bug recurrence

启动失败,Terminal报错。

Failed to launch, and print some lines in terminal.

Additional information

使用deb包安装的此软件的0.5版本,发现启动的时候汇报错,所以下载了源码,在启动的时候发现有一些依赖包没有安装上,包括cherrypy, pystray。在pip安装好所有的依赖包之后成功启动,但是使用Terminal启动依然会报错,Terminal使用的Python版本与我自己编译时使用的版本相同。

I installed the version 0.5 via .deb file, and it failed to launch while I started it. Then I downloaded the source code to build. Find out there are some Python dependencies missing including cherrypy, pystray, ect. It worked after I fixed the dependency error, but I still can't launch it from the installation APP.

Log

Starting Macast from terminal to get logs.

MacOS

run this in your terminal:

/Applications/Macast.app/Contents/MacOS/Macast

Windows

download debug version of this application: Download link

Linux

python Macast.py

PasteBoard

Traceback (most recent call last):
  File "Macast.py", line 14, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "macast/__init__.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "macast/gui.py", line 15, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "pystray/__init__.py", line 48, in <module>
  File "pystray/__init__.py", line 40, in backend
  File "importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
  File "pystray/_appindicator.py", line 22, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AppIndicator3 not available
[9915] Failed to execute script 'Macast' due to unhandled exception!

什么时候加入安卓版呀

New feature

有开发andriod版本的想法吗?这样一些旧手机就可以用了,一些电视盒子带广告,也很难用

Additional context

(Add any other context or screenshots about the feature request here.)

[NEW FEATURE] 在我打包了archlinux版本之后, 想让作者改进的地方

New feature

  • 配置文件 macast_setting.json 的路径应位于 ~/.config/macast (规范)

  • 可以抛弃 py2apppyinstaller 的打包方式, 直接上架 pip 源中 (方便 brewpacman 之类的后期打包)

Additional context

感谢作者的无私奉献 !

这是个人在打包该项目的 aur 时想到的一些改进, 希望采纳!

希望添加一个自定义播放器大小选项

New feature

虽然可以手动调节播放器到合适的窗口大小,但是在投射下一个视频时又会恢复默认选择的窗口大小,希望在这五个选项(小、中、大、自动、全屏)中添加一个自定义大小的选项

Additional context

(Add any other context or screenshots about the feature request here.)
截屏2021-08-21 17 42 53

[NEW FEATURE] Support for audio DLAN playback

New feature

When using the DLAN function of the music player (e.g. NetEase Cloud Music), no content will be displayed in the foreground, and it will be played in the background. It is recommended to add visual content in the foreground.

[NEW FEATURE] Request Android support

New feature

Support Android TV/Phone

Additional context

众所周知,不是所有安卓设备都是DLNA发射端,还有安卓盒子需要作为DLNA的接收端,目前的主流方案都带有大量广告,非常影响使用

[NEW FEATURE] 播放器置顶取消和端口优化

New feature

  1. 播放器置顶开关
  2. 开机自启选项
    3. 倍速播放功能支持
  3. 提供简单的内置使用说明

Additional context

1)我发现不是play版b站不能投屏,而是不能投缓存的视频,只能投在线的视频
2)取消播放器置顶真的挺重要的了,因为切其他应用的时候它也一直置顶得手动把它最小化,有点影响使用
3)搜不到的情况多数时候可能是端口被占用,能否优化一下呢?还有如果实在暂时没有改善方法或许加个开机启动能暂时变向解决?
4)我发现投送的视频
i. 在b站因为被整个屏蔽掉了播放器页面,所以无法在手机端进行视频倍速播放Screenshot_20210825-135753.png
ii. bubbleUPnP播放也不支持视频倍速播放
iii. 投屏的MPV客户端也没有视频倍速播放功能
iv. 最好能提供投屏播放器MPV的快捷键说明,因为没有设置UI,很多人更常用的播放器可能是potplayer这类,导致误以为投屏播放器缺失大部分功能就像我原先以为的第三点一样(毕竟面向用户不可能全是技术出身,还是希望能尽可能用户友好些)

[BUG] Unhandled exception in script

Versions

  • System: Win11
  • System version: 21H2(22000.184)
  • Processor architecture: x64
  • APP version: v0.61

Bug recurrence

running the app on the win11

Additional information

image

Log

Starting Macast from terminal to get logs.

Windows

download debug version of this application: Download link

PasteBoard

# then paste your log here

[BUG] 和emby配合无法控制

Versions

  • System: (Ubuntu)
  • System version: (21.04)
  • Processor architecture: (amd64)
  • APP version: (0.6.1 deb包)

Bug recurrence

使用安卓emby安卓客户端连接,emby服务端版本4.6.4,客户端版本3.1.63

Additional information

点击播放后,不会自动出现控制菜单,需要手动,
手动进入控制后,音量,停止可用,进度控制无效,
暂停可用但是无法恢复,暂停后再点暂停按钮会断开,需要重连

Log

error看到有两行,
全部日志

ERROR:MPVRenderer:decode error 'reason'
ERROR:MPVRenderer:decode error ['{"event":"tracks-changed"}', '{"event":"end-file"}']

When will airplay be supported

  1. If only we could support airplay?
  2. Repeatedly open the software, hoping to add a judgment, otherwise n programs can be opened, so the experience is not good.

It won't install on Ubuntu

First of all, thank you for making this project. I am on Ubuntu 20.04 platform. I tried to install it but it fails to install pyobj library since it's platform specific ronaldoussoren/pyobjc#291
Is there a way to install it on Ubuntu?

[BUG] 无法退出

Versions

  • System: Windows 10 Pro 21H1 19043.1165
  • APP version: Macast v0.5

Bug recurrence

任务栏右键,选择“停止接受投屏”和“退出”后图标都在并且无法再右键(右键无反应)任务管理器显示有两个进程在后台

Log

Macast Loading Language: zh_CN
MPV started
ERROR:Render:stoping mpv
ERROR:Render:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:Render:cannot send command quit to mpv
ERROR:Render:stoping mpv
ERROR:Render:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:Render:cannot send command quit to mpv
ERROR:Render:mpv ipc socket start connect
INFO:Render:{'event': 'property-change', 'id': 1, 'name': 'volume', 'data': 100.0}
INFO:Render:{'event': 'property-change', 'id': 3, 'name': 'pause', 'data': False}
DEBUG:Macast:tag_name: v0.5
ERROR:Render:mpv ipc stopped
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv

[BUG] Failed to copy video URI under deepin 20

Versions

  • System: (eg:MacOS) Deepin Linux
  • System version: (eg:11.4) 20.2.3 (based on Debian 10.10)
  • Processor architecture: (eg:X86) x86_64
  • APP version: (eg: v0.2) v0.5 (2a6e8db)

Bug recurrence

(How to trigger this bug)
Click "Copy Video URI" but cannot get it from clipboard

Additional information

(More description of this bug)
Use GTK as pystray backend export PYSTRAY_BACKEND=gtk

Log

Starting Macast from terminal to get logs.

MacOS

run this in your terminal:

/Applications/Macast.app/Contents/MacOS/Macast

Windows

download debug version of this application: Download link

Linux

python Macast.py

PasteBoard

# then paste your log here
Traceback (most recent call last):
  File "/home/zanyrain/.local/lib/python3.7/site-packages/pystray/_base.py", line 267, in inner
    callback(self)
  File "/home/zanyrain/.local/lib/python3.7/site-packages/pystray/_base.py", line 368, in __call__
    return self._action(icon, self)
  File "/home/zanyrain/Macast/macast/gui.py", line 93, in _pystrayCallback
    self.callback(self)
  File "Macast.py", line 308, in <lambda>
    callback=lambda _: pyperclip.copy(uri))
  File "/home/zanyrain/.local/lib/python3.7/site-packages/pyperclip/__init__.py", line 158, in copy_gtk
    cb = gtk.Clipboard()
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 72, in __getattr__
    raise AttributeError(_static_binding_error)
AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

[NEW FEATURE] Hello, can you add AirPlay support?

您好,请问是否考虑支持Airplay(隔空播放)?

New feature

(type your idea here)
因为iOS系统很多app只支持AirPlay,我以前在windows桌面端一直使用kodi作为AirPlay接收端,但是kodi对AirPlay的支持只到iOS9。希望能增加AirPlay支持。感谢!

[Question] 无法使用

Versions

  • System version: Windows 10 Pro 21H1 19043.1165
  • APP version:移动端哔哩哔哩 网易云 MIUI相册

Problem

手机直接找不到,电脑的其他DLAN工具正常
手机访问不了1068
防火墙已排除
路由器小米4A千兆版
电脑的媒体流选项中可以找到酷狗和Windows Media Player的播放器但并找不到Macast

日志如下
Macast Loading Language: zh_CN
MPV started
ERROR:Render:stoping mpv
ERROR:Render:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:Render:cannot send command quit to mpv
ERROR:Render:stoping mpv
ERROR:Render:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:Render:cannot send command quit to mpv
ERROR:Render:mpv ipc socket start connect
INFO:Render:{'event': 'property-change', 'id': 1, 'name': 'volume', 'data': 100.0}
INFO:Render:{'event': 'property-change', 'id': 3, 'name': 'pause', 'data': False}
DEBUG:Macast:tag_name: v0.5
ERROR:Render:mpv ipc stopped
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv
ERROR:Render:sendCommand: handle is closed
ERROR:Render:cannot send command quit to mpv

[BUG] Ubuntu20.04 安装成功 点击不运行

Traceback (most recent call last):
File "Macast.py", line 14, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
File "macast/init.py", line 8, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
File "macast/gui.py", line 15, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
File "pystray/init.py", line 48, in
File "pystray/init.py", line 40, in backend
File "importlib/init.py", line 127, in import_module
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module
File "pystray/_appindicator.py", line 22, in
File "gi/init.py", line 129, in require_version
ValueError: Namespace AppIndicator3 not available
[25791] Failed to execute script 'Macast' due to unhandled exception!

[Question]How to modify the default video player

Versions

  • System version: windows
  • Processor architecture: (eg:X86)
  • APP version: (eg: v0.2)

Problem

How to modify the default video player

define

I am noticed that there is a video player named mpv.
What i can do if i want to use potplayer as my default video player?

腾讯视频貌似无法搜索到

ios15,腾讯视频,iPhone11,不知道是腾讯限制还是什么问题,腾讯视频一直无法搜索到。在爱奇艺和b站都是正常的。补充下:在mac mini m1上使用作者的方法编译的程序

Sent from PPHub

[IINA支持]推荐播放器加入对IINA的支持

IINA是macOS系统上一个很好用的视频播放器,支持各种文件以及流媒体播放,如果能够支持投屏调用IINA打开也可以更方便地使用macOS系统提供的小窗播放功能(自动吸附边角,不遮挡推送等)

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.