Skip to content

Commit

Permalink
Add title
Browse files Browse the repository at this point in the history
  • Loading branch information
palaviv committed Oct 29, 2016
1 parent 4482fce commit 896de47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import threading
import socket
import os

from six import b
import pychromecast
Expand Down Expand Up @@ -95,7 +96,7 @@ def main():
mc = dev.media_controller

media_url = "http://{IP}:{PORT}/{URI}".format(IP=server_ip, PORT=server.server_port, URI=file_path)
mc.play_media(media_url, 'video/mp4')
mc.play_media(media_url, 'video/mp4', title=os.path.basename(file_path))

handle_input(server_thread, dev, mc)

Expand Down

0 comments on commit 896de47

Please sign in to comment.