Fling icon indicating copy to clipboard operation
Fling copied to clipboard

Unable to drag & drop under mac

Open atali opened this issue 10 years ago • 14 comments

$ java -jar target/Fling-0.0.1-SNAPSHOT-jar-with-dependencies.jar Fling: Fling version 0.6 Fling: Mac OS X Fling: VLC available Fling: set to system default LaF Fling: createAndShowGUI FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FlingFrame: Started web server on port 8080 Sep 28, 2013 12:17:22 AM com.entertailion.java.fling.Log i INFO: BroadcastDiscoveryClient: Starting client on address /239.255.255.250 Sep 28, 2013 12:17:22 AM com.entertailion.java.fling.Log i INFO: BroadcastDiscoveryClient: Broadcast client thread starting. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. FileDrop: Hierarchy changed. FileDrop: Drop target added to component. Sep 28 00:17:22 pc18.home java[15169] <Error>: CGContextGetCTM: invalid context 0x0 Sep 28 00:17:22 pc18.home java[15169] <Error>: CGContextSetBaseCTM: invalid context 0x0 Sep 28 00:17:22 pc18.home java[15169] <Error>: CGContextGetCTM: invalid context 0x0 Sep 28 00:17:22 pc18.home java[15169] <Error>: CGContextSetBaseCTM: invalid context 0x0 BroadcastDiscoveryClient: response=HTTP/1.1 200 OK CACHE-CONTROL: max-age=1800 DATE: Fri, 27 Sep 2013 22:17:29 GMT EXT: LOCATION: http://192.168.0.99:8008/ssdp/device-desc.xml OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01 01-NLS: 7c818360-1dd2-11b2-b56c-984d36bccc82 SERVER: Linux/3.8.13, UPnP/1.0, Portable SDK for UPnP devices/1.6.18 X-User-Agent: redsonic ST: urn:dial-multiscreen-org:service:dial:1 USN: uuid:c8b9ed1f-6133-7b6e-72fc-f4b2f6175466::urn:dial-multiscreen-org:service:dial:1 BOOTID.UPNP.ORG: 97 CONFIGID.UPNP.ORG: 1

BroadcastDiscoveryClient: tokens.length=13 FlingFrame: location=http://192.168.0.99:8008/ssdp/device-desc.xml FlingFrame: appsUrl=http://192.168.0.99:8008/apps/ FlingFrame: modelName=Eureka Dongle FlingFrame: ChromeCast device found: 192.168.0.99 Sep 28, 2013 12:17:37 AM com.entertailion.java.fling.Log i INFO: BroadcastDiscoveryClient: Exiting client loop. FlingFrame: size=1 FileDrop: dragEnter event. FileDrop: normal border saved. FileDrop: drag border set. FileDrop: event accepted. FileDrop: drop event. FileDrop: file list accepted. DragHereIcon: /Volumes/video/Margin.Call.avi FlingFrame: sendMediaUrl=/Volumes/video/myvideo.avi FlingFrame: Available port for VLC: 8081 FlingFrame: prefix=192. FlingFrame: interface=vboxnet0 FlingFrame: address=/192.168.56.1 FlingFrame: networkAddress=/192.168.56.1 FlingFrame: url=http://192.168.56.1:8081/cast.webm RampClient: device=http://192.168.0.99:8008 RampClient: apps url=http://192.168.0.99:8008/apps/ RampClient: get response code=204 RampClient: get response code=404 RampClient: get response= FileDrop: drop complete. FileDrop: normal border restored.

I do not what's it going on when I drag & drop my movie file ?

atali avatar Sep 27 '13 22:09 atali

The virtual network interface 192.168.56.1 is confusing the current logic for picking the network interface to communicate with your Chromecast device. Try shutting down that interface.

NoRulesJustFeels avatar Sep 27 '13 23:09 NoRulesJustFeels

I am having a similar problem. But for me I get a 200 response from the cast device and the screen blinks and goes back to the "ready to cast" screen. Here is my console output. Any help would be appreciated.

Fling: Fling version 0.6
Fling: Mac OS X
Fling: VLC available
Fling: set to system default LaF
Fling: createAndShowGUI
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FlingFrame: Started web server on port 8080
Sep 27, 2013 7:29:21 PM com.entertailion.java.fling.Log i
INFO: BroadcastDiscoveryClient: Starting client on address /239.255.255.250
Sep 27, 2013 7:29:21 PM com.entertailion.java.fling.Log i
INFO: BroadcastDiscoveryClient: Broadcast client thread starting.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
BroadcastDiscoveryClient: response=HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Sat, 28 Sep 2013 02:29:22 GMT
EXT:
LOCATION: http://192.168.10.131:8008/ssdp/device-desc.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: dda35f2c-1dd1-11b2-a419-ed2c1e0bd5f5
SERVER: Linux/3.8.13, UPnP/1.0, Portable SDK for UPnP devices/1.6.18
X-User-Agent: redsonic
ST: urn:dial-multiscreen-org:service:dial:1
USN: uuid:a4f3e0f0-42b1-0549-a5c3-8ed5f8cb982b::urn:dial-multiscreen-org:service:dial:1
BOOTID.UPNP.ORG: 45
CONFIGID.UPNP.ORG: 1


BroadcastDiscoveryClient: tokens.length=13
FlingFrame: location=http://192.168.10.131:8008/ssdp/device-desc.xml
FlingFrame: appsUrl=http://192.168.10.131:8008/apps/
FlingFrame: modelName=Eureka Dongle
FlingFrame: ChromeCast device found: 192.168.10.131
Sep 27, 2013 7:29:36 PM com.entertailion.java.fling.Log i
INFO: BroadcastDiscoveryClient: Exiting client loop.
FlingFrame: size=1
FileDrop: dragEnter event.
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: dragExit event.
FileDrop: normal border restored.
FileDrop: dragEnter event.
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: drop event.
FileDrop: file list accepted.
DragHereIcon: /nfs_mounts/media/videos/movies/Tamil/Vel (2007).mp4
FlingFrame: sendMediaUrl=/nfs_mounts/media/videos/movies/Tamil/Vel (2007).mp4
FlingFrame: prefix=192.
FlingFrame: interface=en1
FlingFrame: address=/fe80:0:0:0:1240:f3ff:feb1:485e%4
FlingFrame: address=/192.168.10.139
FlingFrame: networkAddress=/192.168.10.139
RampClient: device=http://192.168.10.131:8008
RampClient: apps url=http://192.168.10.131:8008/apps/
RampClient: get response code=200
RampClient: lastUrl=http://192.168.10.131:8008/apps/00000000-0000-0000-0000-000000000000
RampClient: get response=<?xml version="1.0" encoding="UTF-8"?>
<service xmlns="urn:dial-multiscreen-org:schemas:dial">
  <name>00000000-0000-0000-0000-000000000000</name>
  <options allowStop="true"/>
  <state>running</state>
  <link rel="run" href="web-21"/>
  <servicedata xmlns="urn:chrome.google.com:cast">
    <connectionSvcURL>http://192.168.10.131:8008/connection/00000000-0000-0000-0000-000000000000</connectionSvcURL>
    <protocols>
      <protocol>com.google.chromecast.home</protocol>
    </protocols>
  </servicedata>
</service>

RampClient: Content-Type=application/xml
RampClient: Content-Length=531
RampClient: delete response code=200
RampClient: delete response=
RampClient: get response code=404
RampClient: get response=
FileDrop: drop complete.
FileDrop: normal border restored.
FileDrop: dragEnter event.
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: dragExit event.
FileDrop: normal border restored.

arangamani avatar Sep 28 '13 02:09 arangamani

You didn't set your app Id.

NoRulesJustFeels avatar Sep 28 '13 02:09 NoRulesJustFeels

It is a newbie question. I don't seem to find a way to generate an app ID by reading the README.md. Can you direct me to a documentation which will help me generate the app ID?

arangamani avatar Sep 28 '13 02:09 arangamani

https://developers.google.com/cast/whitelisting#whitelist-receiver

NoRulesJustFeels avatar Sep 28 '13 02:09 NoRulesJustFeels

I just figured that out and looking into finding the receiver URLs that I need to send.

arangamani avatar Sep 28 '13 02:09 arangamani

Any clue on how to get the receiver URL?

arangamani avatar Sep 28 '13 03:09 arangamani

You have to host a copy of the receiver index.html file on your own server and then send that URL to Google for whitelisting the device and get the app id.

NoRulesJustFeels avatar Sep 28 '13 03:09 NoRulesJustFeels

Got it. Thank you very much for your assistance.

arangamani avatar Sep 28 '13 03:09 arangamani

Now I got my app ID from Google. I followed the instructions and placed my app ID in the code as well as in the html file. Whenever I drag and drop a video, the Chromecase enters the "brain freeze" screen. I tried all possible video formats and no luck. Fling receives a "running" response and a "stopped" response right away.

arangamani avatar Sep 29 '13 06:09 arangamani

Provide the debug output by running Fling from the command line: java -jar fling.jar

NoRulesJustFeels avatar Sep 29 '13 15:09 NoRulesJustFeels

I've tried either recompile Fling or use one specified at README page, however, I still get 404 response. Moreover, I cannot access :9222 port on my chromecast, according to nmap there is only one open port (8008) on my chromecast. I've already rebooted the chromecast at least 5 times. Please help me.

Here is log:

$ java -jar fling.jar 4c2249cd-eada-4409-b335-xxxxxxxxxxxx
Fling: Fling version 0.6
Fling: Linux
Fling: VLC available
Fling: App ID: 4c2249cd-eada-4409-b335-xxxxxxxxxxxx
Fling: set to system default LaF
Fling: createAndShowGUI
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FlingFrame: Started web server on port 8080
Nov 16, 2013 5:09:33 PM com.entertailion.java.fling.Log i
INFO: BroadcastDiscoveryClient: Starting client on address /239.255.255.250
Nov 16, 2013 5:09:33 PM com.entertailion.java.fling.Log i
INFO: BroadcastDiscoveryClient: Broadcast client thread starting.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
BroadcastDiscoveryClient: response=HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Sun, 17 Nov 2013 01:09:37 GMT
EXT:
LOCATION: http://192.168.0.9:8008/ssdp/device-desc.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 8de3ad74-1dd2-11b2-92e2-9a216802f9f3
SERVER: Linux/3.8.13, UPnP/1.0, Portable SDK for UPnP devices/1.6.18
X-User-Agent: redsonic
ST: urn:dial-multiscreen-org:service:dial:1
USN: uuid:9aba88bc-2502-777a-5bfe-6b73eca37eab::urn:dial-multiscreen-org:service:dial:1
BOOTID.UPNP.ORG: 4
CONFIGID.UPNP.ORG: 2

BroadcastDiscoveryClient: tokens.length=13
FlingFrame: location=http://192.168.0.9:8008/ssdp/device-desc.xml
FlingFrame: appsUrl=http://192.168.0.9:8008/apps/
FlingFrame: modelName=Eureka Dongle
FlingFrame: ChromeCast device found: 192.168.0.9
Nov 16, 2013 5:09:48 PM com.entertailion.java.fling.Log i
INFO: BroadcastDiscoveryClient: Exiting client loop.
FlingFrame: size=1

FileDrop: dragEnter event.
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: dragEnter event.
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: drop event.
FileDrop: reader accepted.
DragHereIcon: /home/frol/Dropbox/Public/insomnia.mp4
FlingFrame: sendMediaUrl=/home/frol/Dropbox/Public/insomnia.mp4
FlingFrame: prefix=192.
FlingFrame: interface=tun0
FlingFrame: address=/172.18.34.118
FlingFrame: interface=vmnet8
FlingFrame: address=/fe80:0:0:0:250:56ff:fec0:8%5
FlingFrame: address=/10.0.0.1
FlingFrame: interface=vmnet1
FlingFrame: address=/fe80:0:0:0:250:56ff:fec0:1%4
FlingFrame: address=/10.0.0.2
FlingFrame: interface=wlan0
FlingFrame: address=/fe80:0:0:0:7add:8ff:fec8:7235%3
FlingFrame: address=/192.168.0.8
FlingFrame: networkAddress=/192.168.0.8
RampClient: device=http://192.168.0.9:8008
RampClient: apps url=http://192.168.0.9:8008/apps/

RampClient: get response code=200
RampClient: lastUrl=http://192.168.0.9:8008/apps/00000000-0000-0000-0000-000000000000
RampClient: get response=<?xml version="1.0" encoding="UTF-8"?>
<service xmlns="urn:dial-multiscreen-org:schemas:dial">
  <name>00000000-0000-0000-0000-000000000000</name>
  <options allowStop="true"/>
  <state>running</state>
  <link rel="run" href="web-5"/>
  <servicedata xmlns="urn:chrome.google.com:cast">
  </servicedata>
</service>

RampClient: Content-Type=application/xml
RampClient: Content-Length=323
RampClient: delete response code=200
RampClient: delete response=
RampClient: get response code=404
RampClient: get response=
FileDrop: drop complete.
FileDrop: normal border restored.

frol avatar Nov 17 '13 01:11 frol

If you can't get to port 9222 the the device isn't configured correctly. Make sure you have enabled sending the serial number to Google.

NoRulesJustFeels avatar Nov 17 '13 15:11 NoRulesJustFeels

@entertailion Yes, that was a clue... Actually, this issue forced myself to create http://chromecast.prostoksi.com...

frol avatar Nov 17 '13 17:11 frol