cd ~/Sites
mv index.html index.html.bak
ln -s ~/Music/iTunes/iTunes\ Music/Movies .
Not via iTunes, but you can do this via Apache. I've done this, and you can access anything in iTunes via the links displayed. Except, anything that's DRM'ed can't be played. Start web sharing from Preferences/Sharing and put a soft link (an alias won't work) to your Movies folder in your Sites folder. Then go to your Mac in Safari.
To create a soft link, open Terminal and do the following:
Code:cd ~/Sites mv index.html index.html.bak ln -s ~/Music/iTunes/iTunes\ Music/Movies .
To access this, type "http://<your mac's name>/~<your account name>" in Safari. You'll get a list of the files in ~/Sites. Select Movies and you see a list of your movies. Edit: example - I would type "http://plindens-computer.local/~plinden"
This is a bit basic if you're used to rich UIs, so you could write a web page to display links to whatever you want to access in your iTunes library.
Hmm. This might be a little project of mine - an AJAX web page to parse iTunes Library.xml and display a nice UI - but album art would be a problem. I'll need to think about this.
<Directory "/Users/<your account>/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
As far as a remote app is concerned viz: WiFi.... 802.11g is hardly capable of pushing out big videos forget HD!
The Apache method I outlined above works fine for video. But the video must be iPod compatible, just as video you sync to the device must be. So HD video won't work anyway, even if the connection pipe were big enough.
Also, a native iPhone/iPod Touch app won't fly ... I'm 100% convinced Apple would reject it, so it would have to a client/server app with the server running on the Mac, with access via MobileSafari.
As for my project ... I suspected that MobileSafari wouldn't be able to handle a reasonably sized iTunes Music Library.xml file (mine is 14MB) which I confirmed with a quick test yesterday evening. I had to reset my iPhone after waiting 10 minutes for MobileSafari to parse the XML.
I have a few ideas I'm going to play about with when I have the time. If I ever get my ideas to work, I'll post the source code on MacRumors for free.
I forgot something. By default Apache won't show the soft link. You need to modify /etc/apache2/users/<your account>.conf to be like this, telling it to follow sym links:
Code:<Directory "/Users/<your account>/Sites/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
And disable/re-enable web sharing.
EDIT: Nevermind! Just had a rights issue. This is a great little trick! Thanks![]()
Boy it has been a long time so it is tough to remember what my issue was and how I solved it. I think it was just a matter of changing the rights on one of the files / folders involved so that everyone had read access... maybe on the symlink itself? When I'm back home I'll take a look and see if I can recreate my problem.
chmod a+wx ~/Music
Air Video will also do this without the movies being formatted for iTunes or the iPhone....
It is a $2.99 app though, and requires the free server app to be on your Mac.
I've not found a movie it won't play, as long as it's on a hard drive connected to my Mac, it shows up on my iPhone.
It even has a setup for video streaming over the cell network. I've tried in on 3G with not many hiccups.
No affiliation, just a happy user.![]()
is there a way to do the same (being stream to) with a laptop instead of an iphone?
My setup is a MacBook Pro (with multiple hard drives attached) streaming to iPhone.
So you are talking about going from a Mac laptop to another Mac laptop?
If that's it....just network sharing would work (whether cabled or via wifi).
Maybe I'm misunderstanding something in your explanation of how you want the video stream to work.