Related
Hi all,
I know how to make an app default for launching certain types of files, but my problem goes deeper:
From the day one I switched to Android from WinMo, I have to define the default player for movies over and over again:
I have tried all the mayor players from the market, but the problem is still there:
I use a Ghost commander for launching the movie (.avi, for example).
The first time I have to choose the player (MX player for example).
The next time I start the movie with the SAME extension (.avi), it is OK - the MX starts it by default.
But if I try to open the movie with some other extension (.flv - for example, is a pain in the a$$, because android offers me all the programs installed to choose from, and I have to scroll way down to MX...) - I have to define the player again.
Now, when I want to open the .avi file again - I have to choose the default app again...
The default app is deleted when I connect the phone to PC to read/write files form PC. - As soon as I disconnect the SGS from PC, and try to launch any movie - I have to set the default app again...
This drives me crazy,
I have tried a few different roms (Darky, Ficeto,... and now SURFACE),
On stock rom, Froyo, Ginger (now on 2.3.4),
And it was always the same.
Am I the only one? I haven't found anyone else complain about this?
Thanks in advance for the reply,
Cheers
I've never had that problem myself. After I've set the permissions it usually sticks... Sorry I couldn't help.
Yes, it should, as for the launcher for example, or the dialer - when I install the new launcher, it asks me once which one to use, and offer me to set as default.
Once I set the default launcher, I never have to do it again untill I install the another one. Then, I am asked again to choose one/ set default and it sticks.
The same for phone app and all the others, but it never work for movie with different extension. Every time I choose the different format, I have to set the default for all of them again...
Anybody?
Any idea?
p0peye said:
Yes, it should, as for the launcher for example, or the dialer - when I install the new launcher, it asks me once which one to use, and offer me to set as default.
Once I set the default launcher, I never have to do it again untill I install the another one. Then, I am asked again to choose one/ set default and it sticks.
The same for phone app and all the others, but it never work for movie with different extension. Every time I choose the different format, I have to set the default for all of them again...
Anybody?
Any idea?
Click to expand...
Click to collapse
It's because technically its asking for a default action for a yet undefined file type,
Sent from my PG86100 using Tapatalk
For example, if you have two movie players, you can play an avi and set it to default to something, I it when you stream something it interprets that as a different action which needs to be defaulted also, hope this makes since in a way
Sent from my PG86100 using Tapatalk
ktrotter11 said:
It's because technically its asking for a default action for a yet undefined file type,
Click to expand...
Click to collapse
But I am not:
- I start the AVI file for the first time - it asks for a default player. I define it.
The next time I start AVI file - it starts automatically with the chosen player.
- I start - for the first time a different movie file type - for example: FLV (this is - for me - most annoying type, as my phone don't recognize it as a movie type, and offers me all kind of programs to open it with: contacts, drm content launcher, edit access point, ezPDF reader, FDN list, calendar import, market, messaging, music, package installer, phone, settings...)
I have to define a player. I define it. The next time I play the FLV file (but not changing the file type!) it plays ok.
- I want to start again the AVI file - it ask for the default player again.
This shouldn't happen. It should remember the defined player.
These movie extension types are just an example - it is the same with all the movie files I choose to open, when I am switching to another extension...
Anybody an idea?
Thanks in advance,
cheers
Based on what I've seen today it still has no:
- system dictionary for definition lookup(only for predictive text). The Kindle App does nothing when I press & hold on a word, unlike on my iOS device.
- hi-speed media scrubber for music. you know the little round knob on the progress bar that allows you to move the time index to any point in a song or video.
- unified search aka Local Search(apps, music, videos, contacts, emails)
The music app is pretty bad. I had several attempts to build a proper one, but the developer can not interact with the music library, other than playing existing playlists or songs.
You can't make custom playlists(actually you can, but it very, very, VERY complicated and prone to error and simply does not worth the shot), change the order of music inside the list and stuff like that for a third party app, and that sucks.
There are no new APIs for XNA (which is used to access the songs in the phone) so there is no way of making one.
If there is something I can say it is not right on WP, that's the music app.
mcosmin222 said:
The music app is pretty bad. I had several attempts to build a proper one, but the developer can not interact with the music library, other than playing existing playlists or songs.
You can't make custom playlists(actually you can, but it very, very, VERY complicated and prone to error and simply does not worth the shot), change the order of music inside the list and stuff like that for a third party app, and that sucks.
There are no new APIs for XNA (which is used to access the songs in the phone) so there is no way of making one.
If there is something I can say it is not right on WP, that's the music app.
Click to expand...
Click to collapse
Does that imply that there´s the same limitation for video? ...and ...as a result of that a videoplayer with support for more codecs is very unlikely to ever happen?
TarKin said:
Does that imply that there´s the same limitation for video? ...and ...as a result of that a videoplayer with support for more codecs is very unlikely to ever happen?
Click to expand...
Click to collapse
The File-Assosciation feature in WP8 works like this. Your App can define certain file endings (e.g. .mkv) which it can handle. If those are found on a SD-Card or downloaded the according registered App is then started for those files. The App can then do whatever it is it does as long as it keeps to reading the file (the original can't be manipulated although the app could copy it into it's isolated storage and manipulate it their). But there is one Caveat - there are several file extensions that are reserved for the OS which means that 3rd party Apps can't register for them. One of them is .mp3. Avi is another one of those (you can look them up in MSDN).
.mkv on the other hand is an extension that Windows Phone itself does not know so people could build Apps that would be able to consume them. Given that we now have Native Code capabilities writing a decoder or recompiling one written for another platform is possible, though it remains to be seen wether anyone will put the effort into it.
StevieBallz said:
The File-Assosciation feature in WP8 works like this. Your App can define certain file endings (e.g. .mkv) which it can handle. If those are found on a SD-Card or downloaded the according registered App is then started for those files. The App can then do whatever it is it does as long as it keeps to reading the file (the original can't be manipulated although the app could copy it into it's isolated storage and manipulate it their). But there is one Caveat - there are several file extensions that are reserved for the OS which means that 3rd party Apps can't register for them. One of them is .mp3. Avi is another one of those (you can look them up in MSDN).
.mkv on the other hand is an extension that Windows Phone itself does not know so people could build Apps that would be able to consume them. Given that we now have Native Code capabilities writing a decoder or recompiling one written for another platform is possible, though it remains to be seen wether anyone will put the effort into it.
Click to expand...
Click to collapse
ok. i was mainly into psp dev. before, and never had a winphone in my hands so far.
but if you say that´s possible, then i´ll go for the lumia920, reg. for a dev account and see what i can do
StevieBallz said:
The File-Assosciation feature in WP8 works like this. Your App can define certain file endings (e.g. .mkv) which it can handle. If those are found on a SD-Card or downloaded the according registered App is then started for those files. The App can then do whatever it is it does as long as it keeps to reading the file (the original can't be manipulated although the app could copy it into it's isolated storage and manipulate it their). But there is one Caveat - there are several file extensions that are reserved for the OS which means that 3rd party Apps can't register for them. One of them is .mp3. Avi is another one of those (you can look them up in MSDN).
.mkv on the other hand is an extension that Windows Phone itself does not know so people could build Apps that would be able to consume them. Given that we now have Native Code capabilities writing a decoder or recompiling one written for another platform is possible, though it remains to be seen wether anyone will put the effort into it.
Click to expand...
Click to collapse
I haven't had the chance to look over what the native code can do and what it can't do, but it is to be expected that it will have limitations, just like C# has.
You can render images (obviously) and output them using Direct3D which is pretty much what e.g. VLC does on the Desktop. You have complete read access to files on the SD-Card for your registered filetypes. MKV could be registered, MP3 or AVI could not (because they are in use by the system already).
But of course you would not be able to offload processing to the dedicated decoding units like with the built-in Codecs, which will mean more processor utilization and worse battery life. Still as a programmer I don't see too many actual road blocks (but it's a bumpy road to do this to be sure).
@TarKin: before you drop the money perhaps it would be best to start looking into the SDK. I'm not an expert in Multimedia-programming by any measure so you might be able to spot problems in there beforehand.
If you're still going for a L920 with these uncertainties for your use-case: welcome to the family, I'm anxiously awaiting mine.
I was just wondering if anyone could give everyone(myself included) some tips/pointers/recommendations and maybe your own templates that you've used or would use for these extra Dev options in my picture I've included...If anyone can help with all of the options (Label #1) and/or just the bottom set of options (Label #2) that'd be awesome!! The bottom set(#2) is really making me curious about being able to stream local videos from our PC without any extra help from 3rd party sources/plugins/python-related sources. If you can contribute to this, please feel free! Thanks!
jsdecker10 said:
I was just wondering if anyone could give everyone(myself included) some tips/pointers/recommendations and maybe your own templates that you've used or would use for these extra Dev options in my picture I've included...If anyone can help with all of the options (Label #1) and/or just the bottom set of options (Label #2) that'd be awesome!! The bottom set(#2) is really making me curious about being able to stream local videos from our PC without any extra help from 3rd party sources/plugins/python-related sources. If you can contribute to this, please feel free! Thanks!
Click to expand...
Click to collapse
As for stream local videos, there is already a solution, it been posted before but not explicitly EpicVS used this to make his python script.
For this method you will Only need one additional thing is Mongoose (if you want to stream local files, otherwise you can stream any HTML5 video that is already posted online), you don't need any Python thing.
1)
This is the Backup files/scripts from (googlecast.github.io/cast-chrome/ which is no longer available) http://forum.xda-developers.com/attachment.php?attachmentid=2175295&d=1376004871. Unzip The file to your local drive. I just put it on my desktop
2) WhiteList your Chrome (This step is from Google Them-self)
To permit your Chrome sender application to use the SDK, you must register the application's domain in the Google Cast extension for Chrome.
Be sure you are running Chrome version 28 or later.
If you haven't restarted Chrome in a while you may be running an older version; restarting will update Chrome automatically.
In the Chrome address field, enter chrome://extensions, and check the Developer mode checkbox to enable developer mode.
Install the Chrome extension for Google Cast.
On the Cast extension icon in the browser's upper right corner (next to the address field), right-click and select Options.
The Google Cast extension options page opens in a new tab.
On the blue Cast icon, in the page's upper left corner, click four (4) times.
The Developer Settings appear.
In the Cast SDK additional domains field, enter your application's domain, for example, "www.mydomain.com" and click Add.
Click to expand...
Click to collapse
So the trick is in the SDK additional domains field put: localhost then click add
3) Now go find the folder from step 1. Download this https://code.google.com/p/mongoose/downloads/detail?name=mongoose-3.8.exe and put the mongoose exe in the same folder as step 1
4) Launch Mongoose. (Mongoose will reside in the Taskbar near the clock)
5) Open your chrome browser and type in the address bar localhost:8080. In my case I changed the Mongoose option to port 80. So I only have to type localhost
6) You should be greeted with a webpage now. If you read this post http://forum.xda-developers.com/showthread.php?t=2386604, you should get an idea how this webpage supposed to work.
So the Trick to the original website that Google took down is the Play HTML5 video option. (They took it down so now we have to simulate a webserver to get it back. But there is a benefit NOW. Since you now have an HTML webserver, you can host a local video file.
In my case I move an MP4 movie file or any chromeast compatible video such as MKV into the folder in Step1. And the simple thing to stream that file is in the HTML5 box trick. Now just enter the address "http://yourLocalipAddress:yourmongooseportnumber/yourmoviefile.mkv. So for example mine is http://192.168.1.106/StarTrekSample.mkv since my port is 80, I don't have to put in a port number, it stream great full resolution and everything NO slow down even on a G network
--------------------------------------------------
Optional:
You can convert stuff pretty fast using MkvToMp4_0.223 it is free. (Note: not all MKV or other files required conversion, some MKV sound doesn't work, this program will fix that)
Also I made an improvement to the HTML code that will let you fast forward. In the index.html (you can also rename it anything, I rename my to cast.html so I can view all the file in the HTML folder, including the movie file, so I can just copy the URL and just type in the IP address)
For the fast forward thing:
1) open the index.htm (you can open it just using notepad, nothing fancy)
2) search for <video id="video" src="" autoplay="autoplay"></video>
3) you will see 2 instants of that code, just replace it with: <video id="video" src="" autoplay="autoplay" controls></video>
This will put a control bar underneath the video screen on your computer so you can fast forward (this only work ONCE before you cast it to your TV). You may have to clear the browser cache before this show up
Also sometime the video will not play in the browser windows, but if you cast it to the TV anyway it sometime take up to 30 secs to 45 secs then it will play. This especially true if you stream a video from an online source.
GreenDroidX said:
As for stream local videos, there is already a solution, it been posted before but not explicitly EpicVS used this to make his python script.
For this method you will Only need one additional thing is Mongoose (if you want to stream local files, otherwise you can stream any HTML5 video that is already posted online), you don't need any Python thing.
1)
This is the Backup files/scripts from (googlecast.github.io/cast-chrome/ which is no longer available) http://forum.xda-developers.com/attachment.php?attachmentid=2175295&d=1376004871. Unzip The file to your local drive. I just put it on my desktop
2) WhiteList your Chrome (This step is from Google Them-self)
So the trick is in the SDK additional domains field put: localhost then click add
3) Now go find the folder from step 1. Download this https://code.google.com/p/mongoose/downloads/detail?name=mongoose-3.8.exe and put the mongoose exe in the same folder as step 1
4) Launch Mongoose. (Mongoose will reside in the Taskbar near the clock)
5) Open your chrome browser and type in the address bar localhost:8080. In my case I changed the Mongoose option to port 80. So I only have to type localhost
6) You should be greeted with a webpage now. If you read this post http://forum.xda-developers.com/showthread.php?t=2386604, you should get an idea how this webpage supposed to work.
So the Trick to the original website that Google took down is the Play HTML5 video option. (They took it down so now we have to simulate a webserver to get it back. But there is a benefit NOW. Since you now have an HTML webserver, you can host a local video file.
In my case I move an MP4 movie file or any chromeast compatible video such as MKV into the folder in Step1. And the simple thing to stream that file is in the HTML5 box trick. Now just enter the address "http://yourLocalipAddress:yourmongooseportnumber/yourmoviefile.mkv. So for example mine is http://192.168.1.106/StarTrekSample.mkv since my port is 80, I don't have to put in a port number, it stream great full resolution and everything NO slow down even on a G network
Click to expand...
Click to collapse
Thank you for taking the time to type up all of this valuable info...it works great! Most of my videos are wide screen 720p format. My only gripe so far is that unless I download a video that's in full screen format(not letter-box), it puts it at the top of the screen with a black bar at the bottom of the screen. This can be remedied by just sending a full screen formatted video to the chromecast. It works this way consistent with every single 720p widescreen video I've got. Do you think that if I tried a 1080p video, that it would take up the whole screen? Or at least have the black bar on both the top and bottom of the screen? Just seeing the black bar at the bottom is just quite an annoyance more than anything...I've looked around in my settings on my tv(Sony 51") and can't find anything that'll either make the video take up the entire screen or have the black bars on both the top and bottom of the videos...grrrr
GreenDroidX said:
As for stream local videos, there is already a solution, it been posted before but not explicitly EpicVS used this to make his python script.
For this method you will Only need one additional thing is Mongoose (if you want to stream local files, otherwise you can stream any HTML5 video that is already posted online), you don't need any Python thing.
1)
This is the Backup files/scripts from (googlecast.github.io/cast-chrome/ which is no longer available) http://forum.xda-developers.com/attachment.php?attachmentid=2175295&d=1376004871. Unzip The file to your local drive. I just put it on my desktop
2) WhiteList your Chrome (This step is from Google Them-self)
So the trick is in the SDK additional domains field put: localhost then click add
3) Now go find the folder from step 1. Download this https://code.google.com/p/mongoose/downloads/detail?name=mongoose-3.8.exe and put the mongoose exe in the same folder as step 1
4) Launch Mongoose. (Mongoose will reside in the Taskbar near the clock)
5) Open your chrome browser and type in the address bar localhost:8080. In my case I changed the Mongoose option to port 80. So I only have to type localhost
6) You should be greeted with a webpage now. If you read this post http://forum.xda-developers.com/showthread.php?t=2386604, you should get an idea how this webpage supposed to work.
So the Trick to the original website that Google took down is the Play HTML5 video option. (They took it down so now we have to simulate a webserver to get it back. But there is a benefit NOW. Since you now have an HTML webserver, you can host a local video file.
In my case I move an MP4 movie file or any chromeast compatible video such as MKV into the folder in Step1. And the simple thing to stream that file is in the HTML5 box trick. Now just enter the address "http://yourLocalipAddress:yourmongooseportnumber/yourmoviefile.mkv. So for example mine is http://192.168.1.106/StarTrekSample.mkv since my port is 80, I don't have to put in a port number, it stream great full resolution and everything NO slow down even on a G network
Click to expand...
Click to collapse
Have you tried a divx file just to see what happens? "like a downloaded movie" Not a TV show as they are always encoded in mp4 which is streamable by chrome ext default.
This will stream all video at Native resolution, it will def do 1080p, your network won't have too much problem with it. As for file format this is from Google:
Video codecs: H.264 High Profile Level 4.1, 4.2 and 5, VP8
Audio decoding: HE-AAC, LC-AAC, CELT/OPUS, MP3
Containers: MP4/CENC, WebM, MPEG-DASH, SmoothStreaming
Level 1 DRM support: Widevine, Playready
Click to expand...
Click to collapse
You can convert stuff pretty fast using MkvToMp4_0.223 it is free. (Note: not all MKV or other files required conversion, some MKV sound doesn't work, this program will fix that)
Also I made an improvement to the HTML code that will let you fast forward. In the index.html (you can also rename it anything, I rename my to cast.html so I can view all the file in the HTML folder, including the movie file, so I can just copy the URL and just type in the IP address)
For the fast forward thing:
1) open the index.htm (you can open it just using notepad, nothing fancy)
2) search for <video id="video" src="" autoplay="autoplay"></video>
3) you will see 2 instants of that code, just replace it with: <video id="video" src="" autoplay="autoplay" controls></video>
This will put a control bar underneath the video screen on your computer so you can fast forward (this only work ONCE before you cast it to your TV). You may have to clear the browser cache before this show up
Also sometime the video will not play in the browser windows, but if you cast it to the TV anyway it sometime take up to 30 secs to 45 secs then it will play. This especially true if you stream a video from an online source.
GreenDroidX said:
As for stream local videos, there is already a solution, it been posted before but not explicitly EpicVS used this to make his python script.
For this method you will Only need one additional thing is Mongoose (if you want to stream local files, otherwise you can stream any HTML5 video that is already posted online), you don't need any Python thing.
1)
This is the Backup files/scripts from (googlecast.github.io/cast-chrome/ which is no longer available) http://forum.xda-developers.com/attachment.php?attachmentid=2175295&d=1376004871. Unzip The file to your local drive. I just put it on my desktop
2) WhiteList your Chrome (This step is from Google Them-self)
So the trick is in the SDK additional domains field put: localhost then click add
3) Now go find the folder from step 1. Download this https://code.google.com/p/mongoose/downloads/detail?name=mongoose-3.8.exe and put the mongoose exe in the same folder as step 1
4) Launch Mongoose. (Mongoose will reside in the Taskbar near the clock)
5) Open your chrome browser and type in the address bar localhost:8080. In my case I changed the Mongoose option to port 80. So I only have to type localhost
6) You should be greeted with a webpage now. If you read this post http://forum.xda-developers.com/showthread.php?t=2386604, you should get an idea how this webpage supposed to work.
So the Trick to the original website that Google took down is the Play HTML5 video option. (They took it down so now we have to simulate a webserver to get it back. But there is a benefit NOW. Since you now have an HTML webserver, you can host a local video file.
In my case I move an MP4 movie file or any chromeast compatible video such as MKV into the folder in Step1. And the simple thing to stream that file is in the HTML5 box trick. Now just enter the address "http://yourLocalipAddress:yourmongooseportnumber/yourmoviefile.mkv. So for example mine is http://192.168.1.106/StarTrekSample.mkv since my port is 80, I don't have to put in a port number, it stream great full resolution and everything NO slow down even on a G network
Click to expand...
Click to collapse
I did exactly as described above using winodws 8.The video plays locally , but when click on chromecast it goes to the TV and I get a blank screen. I get the following error while trying to cast the video. Can you please help me resolve this ...Thanks
Error:
{"eventSequenceId":1,"activityId":"9jpopqye07td","state":2,"contentId":"http://localhost/Burfi.mp4","title":"http://localhost/Burfi.mp4","imageUrl":null,"timeProgress":true,"position":5.507666,"duration":0,"volume":0.8,"muted":false,"contentInfo":null,"mediaTracks":[],"error":null,"hasPause":true}
Thanks once again
rajnallan said:
I did exactly as described above using winodws 8.The video plays locally , but when click on chromecast it goes to the TV and I get a blank screen. I get the following error while trying to cast the video. Can you please help me resolve this ...Thanks
Error:
{"eventSequenceId":1,"activityId":"9jpopqye07td","state":2,"contentId":"http://localhost/Burfi.mp4","title":"http://localhost/Burfi.mp4","imageUrl":null,"timeProgress":true,"position":5.507666,"duration":0,"volume":0.8,"muted":false,"contentInfo":null,"mediaTracks":[],"error":null,"hasPause":true}
Thanks once again
Click to expand...
Click to collapse
your thing is the localhost you need to translate that to your local ip address (you can probably find that in the network center of windows 8, I am still refusing to upgrade to windows 8, so I am on win 7) or simply access your router
For example mine local IP address is 192.168.1.153, to get the video to play you need to put this as your url
http://localhost/Burfi.mp4 -> http://192.168.1.153/Burfi.mp4 (so this way when the URL go to chromecast it know what the heck localhost is)
Oh by the way, that msg is always there. It is sort of a debug msg left in by the original coder, I am guessing it was the Google Team that did it.
GreenDroidX said:
your thing is the localhost you need to translate that to your local ip address (you can probably find that in the network center of windows 8, I am still refusing to upgrade to windows 8, so I am on win 7) or simply access your router
For example mine local IP address is 192.168.1.153, to get the video to play you need to put this as your url
http://localhost/Burfi.mp4 -> http://192.168.1.153/Burfi.mp4 (so this way when the URL go to chromecast it know what the heck localhost is)
Oh by the way, that msg is always there. It is sort of a debug msg left in by the original coder, I am guessing it was the Google Team that did it.
Click to expand...
Click to collapse
Thanks for your response. I did try the url as you suggested. But the video plays on the computer. But when I try to cast in to TV I get a blank screen on TV. Waited for more than two minutes. May be somewhere I am doing something wrong.
Just to add when I checked on the chromecast icon in Chrome browser it shows the movie as running on chromecast but nothing on TV.
rajnallan said:
Thanks for your response. I did try the url as you suggested. But the video plays on the computer. But when I try to cast in to TV I get a blank screen on TV. Waited for more than two minutes. May be somewhere I am doing something wrong.
Just to add when I checked on the chromecast icon in Chrome browser it shows the movie as running on chromecast but nothing on TV.
Click to expand...
Click to collapse
Strange, well first use another computer with chrome that is on the same network. Try to enter that url into the browser, if that play then the file could be seen. If not then you have a network problem.
Second try to enter a url of a video that is already online. Like the http://media.w3.org/2010/05/sintel/trailer.mp4 see if that will cast. Just to see if chromecast have a problem
Sent from my Nexus 7 using Tapatalk 4
GreenDroidX said:
Strange, well first use another computer with chrome that is on the same network. Try to enter that url into the browser, if that play then the file could be seen. If not then you have a network problem.
Second try to enter a url of a video that is already online. Like the http://media.w3.org/2010/05/sintel/trailer.mp4 see if that will cast. Just to see if chromecast have a problem
Sent from my Nexus 7 using Tapatalk 4
Click to expand...
Click to collapse
I did try the url of a video http://media.w3.org/2010/05/sintel/trailer.mp4 and it works. Chromecast is definitely OK. I can see the movie with the url like the one specified by you play on the computer but when I cast it I see the message on the chromecast icon on the chrome browser showing the movie is running but the tv which switches to the Chromecast hdmi port shows blank on the TV. May be I will try on my daughter's computer...
rajnallan said:
I did try the url of a video http://media.w3.org/2010/05/sintel/trailer.mp4 and it works. Chromecast is definitely OK. I can see the movie with the url like the one specified by you play on the computer but when I cast it I see the message on the chromecast icon on the chrome browser showing the movie is running but the tv which switches to the Chromecast hdmi port shows blank on the TV. May be I will try on my daughter's computer...
Click to expand...
Click to collapse
Also firewall can be a problem too good luck. Also try different files
rajnallan said:
I did exactly as described above using winodws 8.The video plays locally , but when click on chromecast it goes to the TV and I get a blank screen. I get the following error while trying to cast the video. Can you please help me resolve this ...Thanks
Error:
{"eventSequenceId":1,"activityId":"9jpopqye07td","state":2,"contentId":"http://localhost/Burfi.mp4","title":"http://localhost/Burfi.mp4","imageUrl":null,"timeProgress":true,"position":5.507666,"duration":0,"volume":0.8,"muted":false,"contentInfo":null,"mediaTracks":[],"error":null,"hasPause":true}
Thanks once again
Click to expand...
Click to collapse
I'm not sure if you've figured out your problem yet or not, but just by looking at your post, it looks to me like you have input the wrong "Address" information before the filename. You need to include the port# right after your internal ip address. Such as... http://192.168.1.101:8080/drinkingbuddies.mp4 . You can re-read his instructions below..These are the instructions he outlined above, but I just typed them out in my own words...just don't forget to include the port in the address and you should be good to go!!
1. Rename your video file to something easy like for example... "Chrome.Cast.720p.H.264.2013.WideScreen.Cam.xda-Devs-Rockz.mp4" to something a little easier to remember and easier to type back in such as "chromecast720p.mp4" or simply "cc.mp4" --just for simplicity sake...name it whatever you wanna!
2.. Make sure the .mp4, .mkv, or whatever Chromecast supported video file, has been moved into the same folder/directory as the "mongoose-3.8.exe" , "cast.py" , "angular.min.js" , "index.html" , "demo_app.js" files. I think there's a couple more files in that folder, but you get my drift...
3 Run(double-click) the mongoose-3.8.exe file in that folder. It should start running in the background without any visual GUI popping up in your face. You really don't have to change any settings in mongoose, but if you want to change the port# you can. if you leave all settings the same, I believe the default port# is set to Port# 8080.
4. Locate your INTERNAL IP ADDRESS. This is the IP Address that your router assigns each individual pc/phone/tablet/Chromecast, etc... Mine happens to be 192.168.1.101 . Yours will more than likely be something different than mine, but it will probably be something between the range of: 192.168.1.100 - 192.168.1.149
5. This is assuming you just double-clicked on mongoose-3.8.exe & did't change ANY settings from within the mongoose server... Open up a tab in Chrome and in the address bar you wanna type this exactly, but without the quotes ---> "localhost:8080"
6. That'll open up the simplified Chromecast testing page...at least if you did everything right so far it should open that page... from this page, click that first little drop down box at the top of the page and select the HTML5 option.
7. In the filename input box that pops up below it, you wanna type "http://yourLOCALipaddresshere:8080/videofilename.extension" . Mine for example, happens to be http://192.168.1.101:8080/drinkingbuddies.mp4
8. Assuming you did everything so far exactly as we've told you, your video should start playing in the tab.
9. Right below your video, you want to click and select your chromecast... after choosing your chromecast, the video from within your chrome browser will more than likely either go blank or it will just look like it's paused. Don't worry though. From my understanding, that's totally normal...
10. Ok, cool...now if everything has been done correctly, you should be able to see the movie playing on your TV. This may take up to a minute to show up on your tv in some instances, due to your router, pc,network traffic, etc...
These steps that I outlined are pretty much the same thing as in earlier posts, just put into my own words. It works just fine for me, I'm just still getting the black bar across the bottom of the TV, unless i change the movie to a full-screen movie. Full-screen movies seem to work just fine and of course, they take up the entire screen. I for some reason still can't get ANY widescreen videos to display properly...there's always a black bar at the bottom and NO black bar at the top. It's like they're "Half-ass wide-screen" format. lol
I get the same error message but the video plays fine. I guess he's got a different problem. I noticed that you need to manually stop the current video in the browser window so chromecast goes to "ready to cast" screen before you can start a new video.
First of all, hello to everybody. I have just joined xdaDevelopers.
To business now..
I recently bought my first Windows Phone (Nokia Lumia 520). One of the reasons for getting it was for developing my own WP8 apps.
I would like to start with a music player app - one that can play mp3 files from phone memory and SD card; arrange songs according to name, albums and artists; create playlists; have capabilties of fast foward and rewind (seeking); and recognise album arts.
What do I need to know before I can start building it?
I have zero experience in app development; I am a web designer.
I noticed that there are very few "polished" music players (which function properly as well as have a nice UI) in the WP store. Any particular reason for that (other than the platform being relatively new)?
I created this post mainly because the lack of quality music players appeared a bit strange to me. I have heard that a particular file type can be accessed by only one app (please correct me if I am wrong). So does it mean that one has to somehow uninstall the default music player in order to use the newly downloaded one?
For instance, I have "Adobe Reader" which can read PDFs from my MicroSD card. But the "PDF Reader" app (which I installed just yesterday) cannot even find them! So I had to uninstall the latter.
So I wanted to know if there was something about WP8 that doesn't allow such things - if these "security measures", which render apps like file managers less useful, are also responsible for the lack of music players in this otherwise very fantastic platform.
Please note that I come from Android, and am very new to Windows Phone platform. So kindly point out if there's something incorrect about my assumptions.
Thanks and regards.
Hi,
Welcome to Windows Phone. The Lumia 520 is a great choice in my humble opinion. In regards to why there are so few music apps, there are probably several reasons. One such is the fact, that the easiest way to make one is to integrate with the built-in music features, which however limits you in several ways, like not being able to add more file types, not being able to customize the experience too much, playlisting is limit as far as I know, which basically puts you in the position, that the only actual improvement you can do upon that is implementing a new streaming service. The other route is to implement your own music player, but then you're going to have issues making it work in the background (not to mention, that implementing a music player isn't entirely simple).
gdebojyoti said:
What do I need to know before I can start building it?
Click to expand...
Click to collapse
1. Make sure you have hardware for it. I recommend a minimum of Windows 8 Pro 64bit, but you can find instructions for Windows 7 on this forum as well. You'll need VT-x support on your CPU, plenty of RAM.
2. Download and install the WP8 SDK.
3. Once you open Visual Studio, you can start by creating a new project, you'll need a UI project (I recommend Windows Phone App or HTML5 App templates) and a music playback project (WP Audio Playback Agent -OR- WP Audio Streaming Agent).
4. For tutorials on how to get started I usually go to Pluralsight.com, because I have a subscription there, and they're plain awesome, but I'm sure there are a bunch of other sources as well, which are for free.
gdebojyoti said:
For instance, I have "Adobe Reader" which can read PDFs from my MicroSD card. But the "PDF Reader" app (which I installed just yesterday) cannot even find them! So I had to uninstall the latter.
Click to expand...
Click to collapse
If you have both Adobe Reader and PDF Reader installed, once you tap on a PDF file (say after downloading one in IE) an option should appear for you to select which app you wanna open it with.
gdebojyoti said:
So I wanted to know if there was something about WP8 that doesn't allow such things - if these "security measures", which render apps like file managers less useful, are also responsible for the lack of music players in this otherwise very fantastic platform.
Click to expand...
Click to collapse
You can install and use as many audio/music apps you like, but obviously only one can have the background music feature used at one time. (You can only have one music playing in the background).
Also:
"Developers must pay an annual subscription fee of $99, (this, according to Todd Brix, the General Manager for Windows Phone Apps and Store team, is currently on an ongoing promotion at $19) to become an App Hub member and submit apps to the Windows Phone Store. There's no limit on the number of free submissions for paid apps. There's a limit of 100 free submissions for free apps; thereafter, there's a fee of $19.99 per submission for free apps." - Wikipedia
Hope I helped, and happy coding!
:fingers-crossed:
@TheGoldrocker: Thank you for your reply. It did clear up quite a few things.
As of now, I am okay with "integrating with the built-in music features" as you said.
What I want to do is modify the UI and UX a bit. Some of the features can be as follows -
1. Introducing a scroll bar;
2. Option to get rid of the grouping system by name;
3. Control over the font size;
4. Allowing the currently playing song to continue if I select the song (currently it starts playing from the beginning);
5. Enabling the seeking feature (tapping the timeline of the song so as to play from that point of time);
6. Having a tile feature in the start screen with options to pause, change song, etc (number of options would depend upon the length of the song);
7. Showing the album art of the currently playing song in the tile;
8. Having an animated background in the app (just a wide photo which slowly slides from left to right).
Am I allowed to do the above?
You're welcome.
"Integrating with the built-in music features" doesn't mean you get to rewrite the UI/functionality of the current Music+Videos app. What it means is, you get to use the built-in classes for simplifying music playback in your new app. You'll still have to build up a new UI around your classes, you'll also have to write quite a few lines of code for the playback functionality (but obviously way less than if you tried to write your own music player from scratch).
Now sadly I cannot answer all of your questions with absolute certainty, because I haven't tried writing a music player yet, but I'll give them a shot.
I numbered your list:
gdebojyoti said:
1. Introducing a scroll bar;
2. Option to get rid of the grouping system by name;
3. Control over the font size;
4. Allowing the currently playing song to continue if I select the song (currently it starts playing from the beginning);
5. Enabling the seeking feature (tapping the timeline of the song so as to play from that point of time);
6. Having a tile feature in the start screen with options to pause, change song, etc (number of options would depend upon the length of the song);
7. Showing the album art of the currently playing song in the tile;
8. Having an animated background in the app (just a wide photo which slowly slides from left to right).
Click to expand...
Click to collapse
1. Yes, since you'll have to make a new UI from scratch, and you'll have the ability to include any logic behind it you want.
2. Yes, the grouping can be avoided AFAIK.
3. Same as 1.
4. Same as 1.
5. Don't think so. Someone else with more knowledge will have to answer this to be sure, though.
6. If you mean a tile on the start screen, which, when tapped will play/stop/next/prev/whatever and STAY on the start screen? No. Tiles (sadly) always open a program (even if for only a millisecond). You can use this for deeplinking to favorite songs/playlists/streaming services though, which is cool.
7. Same as 1.
8. Same as 1.
Hope I helped.
Thank you for your reply.
TheGoldrocker said:
6. If you mean a tile on the start screen, which, when tapped will play/stop/next/prev/whatever and STAY on the start screen? No. Tiles (sadly) always open a program (even if for only a millisecond). You can use this for deeplinking to favorite songs/playlists/streaming services though, which is cool.
Click to expand...
Click to collapse
By "deeplinking", do you mean pinning songs to the start screen by 'long pressing' on them?
I do hope that Microsoft introduces interactive tiles in some future update. Sort of start screen widgets.
gdebojyoti said:
By "deeplinking", do you mean pinning songs to the start screen by 'long pressing' on them?
Click to expand...
Click to collapse
Deeplinking is launching an app with a link toward a specific page with parameters. Imagine it as a URL to a specific page on a website. If your app and pages support it, you could tap on a tile (say on the start screen), which opens your app, and instantly navigates to a playlist, album, song, whatever you made that tile link to.
Pinning items to the start screen can be triggered by anything you want. You, the coder, decides how you're gonna allow the user to pin their songs/albums/playlists/artists/whatever.
Here's a little tutorial on this topic:
http://wp.qmatteoq.com/first-steps-...-links/?utm_source=dlvr.it&utm_medium=twitter
Okay, thanks. I'll have a look at that.
To make a media player for windows phone is to know insanity.
Why we no join forces?
There are a couple fo things the guys here forgot to tell you:
You can not read Mp3 files from SD card.
You can not read mp3 files from the user music folder.
You only have access to web resources or your app's isolated storage.
You basically have to engineer a way to get them to the app storage.
mcosmin222 said:
To make a media player for windows phone is to know insanity.
Why we no join forces?
Click to expand...
Click to collapse
I don't think I have enough knowledge to be able to help you. I am just a beginner.
mcosmin222 said:
You can not read Mp3 files from SD card.
You can not read mp3 files from the user music folder.
You only have access to web resources or your app's isolated storage.
You basically have to engineer a way to get them to the app storage.
Click to expand...
Click to collapse
Well, that's why I will try to "integrate with the built-in music features". Hopefully it will be okay then.
I am not trying to make the next best thing in the music player app category.
I am just trying to make one which has a slightly different UI and is able to play mp3s.
Sort of a project of mine.
By the way, can someone please tell me if I can use technologies like HTML5 to create this app? Actually I don't know C#.
Or should I learn C# before attempting this app?
gdebojyoti said:
I don't think I have enough knowledge to be able to help you. I am just a beginner.
Well, that's why I will try to "integrate with the built-in music features". Hopefully it will be okay then.
I am not trying to make the next best thing in the music player app category.
I am just trying to make one which has a slightly different UI and is able to play mp3s.
Sort of a project of mine.
By the way, can someone please tell me if I can use technologies like HTML5 to create this app? Actually I don't know C#.
Or should I learn C# before attempting this app?
Click to expand...
Click to collapse
You can not integrate with the built-in player.
There are too many limitations to explain. You will see.
Yes, learn C#
Okay.
I've installed and uninstalled Dolphin many times. It has some appealing strengths but also some annoying weaknesses on the NST. Here are the three big weaknesses as I see them (you can stop reading after that if they are "deal breakers" for you):
1. Like many browsers other than Opera Mobile, Dolphin has trouble updating an existing window with new content. For reliable browsing you need to open in new tabs which, sadly, are always behind the current tab.
2. Swipe scrolling in Opera Mobile is positively spritely compared to Dolphin and most other browsers. For Dolphin you have the option of using volume controls to scroll. I have set the lower hardware buttons to the volume controls using NTTM. I don't ever use them to change pages, preferring a gentle touch on the screen edge.
3. Dolphin is a pain-in-the-*** to zoom. Double tap has no effect. Turning on pinch-zoom button in Settings is ignored. Pinch zooming does not work (even with multi-touch enabled). The only way to zoom in or out is with a gesture. Took me awhile to even understand how that was supposed to happen. I finally made a "Z" for "zoom in" and a backward "Z" for "zoom out". The stock gestures for these functions are visually meaningless (to me).
OK,so why bother with Dolphin at all? First, let me add that the new version 11 does not work well with the NST. You need something in the 10.x series (some old versions here).
Dolphin is an HTML5 browser with some limited (on the NST) Shockwave and Flash capability. With the possible Flash installation for the NST (see here, post #4), you get the ability to access some .swf files (embedded Flash players are a kind of .swf file--more on that below) and Flash 9.1x (despite the claim that you are getting 10.1. Adobe identifies it as 9.1x and various sites that reject anything below 10 also identify it as such).
I used to think no embedded Flash videos would play in Dolphin.Then I discovered that in Desktop mode it would "work" with most embedded players and you could start the videos.But you could not play them through. Although the buffer continued to fill, the video itself stopped after 10-20 seconds and the little running circle appeared in the middle of the image. You can restart in different spots, but you still only get about 10-20 seconds at a pop (examples here).
I have some short little Flash videos in a very simple swf player which I use on an educational site. I thought these did not work at all but with some fooling around in FastMode I was amazed to see that the player actually can be coaxed into working and the entire video plays (example here). Of course, everything works a little bit better in FastMode (except for display quality) but you can, if you work at it a little, coax the player into working in regular mode.
So, Dolphin can play "some" embedded Flash video. But not much.
The Desktop mode of Dolphin makes YouTube nuts. It tries switching back and forth between the mobile and desktop site and never gets anywhere. Anyway, that is not the way to go because HTML5 is a better choice--if you have a cooperative external player.
I've tried a few players. RockPlayer Lite is popular for the NST but is difficult to exit (always full screen) and seems stymied by HTML5. It does play a lot of other stuff, including some streams. I finally settled on MX Player (save yourself some time and download the the ARMv7 NEON codec at the same time because it will just send you back to the Market when you try to run it the first time). It can pinch-zoom (RockPlayer cannot) and handles HTML5 well (yes, YouTube!). I have my two lower hardware buttons assigned for long press as "back" and "menu". This provides two ways to get out of MX Player if you don't want to watch the whole video. At the normal conclusion, the player closes and you return to Dolphin. Nice.
Such a set-up works for YouTube (the mobile version),or at least for as many videos as are now HTML5-ready. Of course, you can also access any Flash videos that allow for a breakout from the embedded player. MX Player handles .flv files fine without any Adobe plugin. And it plays just about any other direct-link video you can find. Videos in the BBC News app work fine.
Daily Motion, Vimeo, My Vidster, Hulu---the list goes on---are no-go with this set-up.
But really, with no audio......If just a little audio were accessible to us mere mortals, it would be nice, but that mod is beyond my geek level
One bad thing: for some reason, the NST refuses to make MX Player (or any other player I tried) the "default". So every time you want a video you have to select MX Player from a list of hopefuls (QuickPic? Really?????). I've inspected the file where this info is stored (/data/system/packages.xml) and even cleaned it up, but to no avail.
One last warning: don't try this with Opera Mobile. As far as I can tell, one of the three Flash installations, maybe FlashLite, has a player which is invoked by some embedded videos in Opera Mobile.You touch the play triangle in the video and are rewarded with a much larger triangle. Don't touch that one! It takes you to a Flash player of some sort (you can see some control buttons if you touch the screen) with a black screen and there is no way out except for a forced shutdown.