maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   KMPlayer new build for version 0.9.1 (https://talk.maemo.org/showthread.php?t=25988)

koos 2009-01-04 17:21

KMPlayer new build for version 0.9.1
 
0.9.1-3 is now in extras and has a fix for mis detection whether the playable link is a playlist or not. That typically could occur with http links. Among those are the links listed in pls files from Shoutcast, now they start playing much sooner.

That brings me to the Shoutcast playlist generator that was added in the 0.9.1 series. I hope for those who tried it that the 'No input data received' error didn't show up that much. There is a known bug that the Shoutcast search method via newxml.phtml often results in HTTP response code 503 (Service Temporarily Unavailable).
As far as I looked, the other media players on Maemo get the links by scanning the HTML from the Shoutcast web page. So in case somebody wondered, that's is the reason why KMPlayer seems to have a problem. I can only hope the Shoutcast people fix this soon.

I've put one extra thing in this update and that is scrolling the playlist by dragging. The scrollbars are still there though. This should make the list more finger friendly for long lists like WorldTV99 or Shoutcast results.
The original idea was to also add kinetic scrolling, which is actually now just a small step to add. However while looking at the various deltas between the motion events, I got the idea to make it simply behave like the scrollbars.
That is when dragging from bottom to top over the playlist, the playlist is at the bottom and vica versa. The exception is that the scrollbars move in the opposite direction, to match behaviour in the browser. So this way KMPlayer doesn't need the kinetic scrolling. Of course this doesn't look so cool but, then again, that is nothing new to KMPlayer :).
An alternative approach that I've looked at is using wider custom drawn scrollbars that are semi-transparent, same as the Youtube query summery shows when the description text it too long to fit on the page. The advantage is of course finger friendly scrollbars and at the same time getting more screen to show the links. What kept me from doing this is that it's probably quite some work (I figured that I may have to sub class GtkTreeView for painting reasons). Additionally I wondered how nice or ugly this would be, it's like fidling with the styles, may look nice on the default onces but terrible on others.
Ideas welcome of course!

bunanson 2009-01-04 17:45

Re: KMPlayer new build for version 0.9.1
 
Thanks for the new year present, partner! I also noticed, amone many enhancement, the wide screen on the Canadian channels on WorldTV99 have been accomplished. Wow, time to enjoy more AV..., thanks again for the update.

bun

koos 2009-01-29 18:13

Re: KMPlayer new build for version 0.9.1
 
New version 0.9.2-3 is now uploaded in extra. Merely a quality improvement release, use libconic when accessing the net, speedups in XML reading, fix for titles in recents list and a fix for screen blanking when not top-most.

A simple LastFM generator is added, showing their flash player. It pastes a given artist in the flashvars parameter. The flash movie self does all the XML RPC needed to get going to the next song.
I'll give it some thoughts how to either extend the generators or the SMIL support, so the mp3's can be played with MPlayer/OssoMediaServer instead.
Nevertheless, it can be seen as a generator example how to point to a specific flash and modifying its parameters.

supergadgetman 2009-01-29 18:30

Re: KMPlayer new build for version 0.9.1
 
Im really diggin the lastfm plugin. Is there a way to get the flash player to go full screen so I can use my finger to skip tracks and so fourth. Thanks again. Great Work!

koos 2009-01-29 18:40

Re: KMPlayer new build for version 0.9.1
 
Quote:

Originally Posted by supergadgetman (Post 260833)
Is there a way to get the flash player to go full screen so I can use my finger to skip tracks and so fourth.

In fullscreen kmplayer adjust the plugin size too, all the white area is flash. In this case as you've seen, the flash movie chooses to not scale but aligns in the center. That is indeed quite unfortunate, also for the volume control.
Quote:

Originally Posted by supergadgetman (Post 260833)
Thanks again. Great Work!

Thanks :)

supergadgetman 2009-01-29 18:58

Re: KMPlayer new build for version 0.9.1
 
Quote:

Originally Posted by koos (Post 260837)
In fullscreen kmplayer adjust the plugin size too, all the white area is flash. In this case as you've seen, the flash movie chooses to not scale but aligns in the center. That is indeed quite unfortunate, also for the volume control.

Thanks :)

I just figured it out. I held my stylus on the player and the Flash Player menu came up. Then I just clicked zoom. It only zooms the top left corner so I brought up the menu again and clicked "show all" Now I have full screen. I'm loving this!! Perfect for my car audio.
Thanks again!

koos 2009-01-29 20:03

Re: KMPlayer new build for version 0.9.1
 
Thanks for the tip, works great (I only needed to select the 'Zoom-in' menu item)
Just googled a bit for flash params and http://kb.adobe.com/selfservice/view...nalId=tn_12701 I see that scaling should be default enabled.

Anyone familiar with flash parms? The best way to play with this is to copy /usr/share/applications/kmplayer/flashlastfm.sh to /home/user/.kmplayer/ and /usr/share/applications/kmplayer/generators/flashlastfm.xml to /home/user/.kmplayer/generators/ (you may have to create this directory). Then change the title in the xml file and change 'sysdata' to 'data'.

pton 2009-01-30 21:10

Re: KMPlayer new build for version 0.9.1
 
Hi koos:
In the latest 0.9.2-3 build, whenever I open .SWF flash files, it would try to connect to the internet and not play the file. I have no such problem in all earlier versions.

One more Qn: is there a command line parameter to open up a file in full screen mode?

Thank you!

koos 2009-01-30 22:06

Re: KMPlayer new build for version 0.9.1
 
Quote:

Originally Posted by pton (Post 261086)
In the latest 0.9.2-3 build, whenever I open .SWF flash files, it would try to connect to the internet and not play the file. I have no such problem in all earlier versions.

Hmm, I see that too ... it's the /foo/bar => file:///foo/bar redirect. Will fix.
Thanks for reporting this.
Quote:

Originally Posted by pton (Post 261086)
One more Qn: is there a command line parameter to open up a file in full screen mode?

run-standalone kmplayer -fs path-to-file

koos 2009-01-31 23:46

Re: KMPlayer new build for version 0.9.1
 
Okay made a new build 0.9.2-4 at http://repository.maemo.org/extras-d....2-4_armel.deb (may take an hour to appear).

Other than the local flash tries to connect to the internet fix, I also fixed adding generated lastfm items to favorites. Copy&Paste from Playlist menu should work with these links too. Useful if you often choose the same artist.
Another issue I found on ITT is that this Copy menu item doesn't copy to the desktop clipboard, that works now too; it copies the url only. Pasting from clipboard is like before, only in the location bar.

Please give it a whirl. Just in case, backup your /home/user/.kmplayer/playlist.xml file.
If nothing shows up in the next days, I'll promote it.

koos 2009-02-04 20:30

Re: KMPlayer new build for version 0.9.1
 
Finally moved it to extras as 0.9.2-5. The copy&paste fix copied a bit too much, e.g. if applied on an opened .pls link it copied also all the links from this file.

Hope you like it.

Frank Banul 2009-02-05 03:54

Re: KMPlayer new build for version 0.9.1
 
Could KMPlayer coax Pandora.com to work on the tablet? Last.fm, Youtube and the others are nice add ons.

Frank

koos 2009-02-05 07:55

Re: KMPlayer new build for version 0.9.1
 
Pandora.com gives me:
Dear Pandora Visitor,

We are deeply, deeply sorry to say that due to licensing constraints, we can no longer allow access to Pandora for listeners located outside of the U.S.


So I don't know. Look at the Last.fm generator and try to adjust it (see a few post back in this thread how).

Frank Banul 2009-02-05 20:25

Re: KMPlayer new build for version 0.9.1
 
2 Attachment(s)
I couldn't get the kmplayer flash player to load pandora's swf in less than 5 minutes (see flashpandora.zip). I did make a version that can be loaded in the browser (see web_pandora.zip). But it takes about a minute to load, prompts you about security (click OK) and then sucks ~70% of the cpu playing the songs. That will kill the battery too quickly. No matter, lastfm works fine.

Frank

koos 2009-02-06 21:45

Re: KMPlayer new build for version 0.9.1
 
If it already uses lots of CPU in the browser, than it may be a little less in kmplayer but don't expect miracles.

The generator you've created btw. doesn't really adjust the output of the shell command. The argument, which is $1, is ignored.
Also the script itself if not echo'ing what you expect, because not all new lines start with 'echo' and between the start and end double quotes, you should use either single quotes or write a double quote as \".

koos 2009-03-18 20:26

Re: KMPlayer new build for version 0.9.1
 
New version 0.9.3-2 is now uploaded in extra. Nothing new, just a quality improvement and bug fixes release, downloader reports now an error if file could not be written or disk full, crash fix that happened when clicking a container only item in the active list, stopping flash playing could cause a hang the application and a few SMIL improvements.

koos 2009-05-07 19:01

Re: KMPlayer new build for version 0.9.1
 
Released v0.9.4 with a new generator for blip.tv.
Blip TV provides multiple links for search results. These links are listed with mimetype and file size in the playlist. For playback without saving, the lowest file size should be chosen. When saved first, a larger file may work well too.

When RSS feeds have media tags, like the "PodShow TV", KMPlayer presents the links like the blip.tv generator. Here too, the links point to files (and thus not meant for streaming). So saving files first will improve playback.

Finally, I changed the speed of finger scrolling in the playlist. Was much too fast when the list is large. Now it is one pixe move will scroll one pixel.

gigabites 2009-05-07 23:18

Re: KMPlayer new build for version 0.9.1
 
hello koos

I have a question about the playlist directory generator. I really lilke pointing to a folder and it making an instant playlist, but how do I save it so that kmplayer will play it later? I tried using the save function but it just makes a file with no extension. I tried adding a .m3u extnsion like my other playlists (that kmplayer plays flawlessly but were made from the oso media player) but no dice.

Also, is there a way to reorder a generated playlist? When I generate a directory list, it's not in any order, it starts in the middle of a directory instead of what is alphabetically/tag listed.

koos 2009-05-08 18:00

Re: KMPlayer new build for version 0.9.1
 
Quote:

Originally Posted by gigabites (Post 285395)
but how do I save it so that kmplayer will play it later? I tried using the save function but it just makes a file with no extension. I tried adding a .m3u extnsion like my other playlists (that kmplayer plays flawlessly but were made from the oso media player) but no dice.

Hmm, yes the save/save as from the menu are orphaned long time ago. They save the playlist, not media files, but indeed kmplayer itself is not able to open them later.
I guess what kmplayer needs is a m3u export function instead. Thanks for mentioning this.
Quote:

Originally Posted by gigabites (Post 285395)
Also, is there a way to reorder a generated playlist? When I generate a directory list, it's not in any order, it starts in the middle of a directory instead of what is alphabetically/tag listed.

Yes the order is in whatever 'find' finds files. I haven't tried it, but adding 'sort |' before 'sed' in /usr/share/applications/kmplayer/find-media.sh probably does what you want.

koos 2009-05-30 10:21

Re: KMPlayer new build for version 0.9.1
 
Okay done so, KMPlayer-0.9.5 has an export m3u and export XML, which was the save/save as before. Swapped these menu options with the generators menu, so generators are now easier accessible.
Some regressions w.r.t. 0.9.3 fixes for the youtube information page, the stars are back and so is the title.
Further more, the playlists retrieved via generators appear now faster. Also KMPlayer now uses less temporary memory when reading playlists.

gigabites 2009-05-31 01:18

Re: KMPlayer new build for version 0.9.1
 
VERY NICE KOOS. thank you for such a great player. The playlist generator feels very intuative and so far keeps the files in correct order (I'll try with a long list later).

Is there a way to add these playlist to the favorites list without having to do this (http://kmplayer.garage.maemo.org/playlist.html)? This way seems so overyly complicated and confusing and I never got it to work. Basically I just edit the prefs file but even that seems like an odd way to do things.

Using the edit feature of the playlist menu doesn't seem to save changes. Example, I select edit from the menu, change the name of the 3mu file that the favorite points to. I expect it to save what I just edited or have a "save changes" button but um... nothing. I return to the favorite and it's still the pre-edited state. Am I doing things wrong?

gigabites 2009-05-31 13:05

Re: KMPlayer new build for version 0.9.1
 
doh! I spoke too soon Koos. When it makes a playlist, it makes the listing from the middle of the directory.

koos 2009-05-31 13:30

Re: KMPlayer new build for version 0.9.1
 
Quote:

Originally Posted by gigabites (Post 292283)
Is there a way to add these playlist to the favorites list without having to do this (http://kmplayer.garage.maemo.org/playlist.html)? This way seems so overyly complicated and confusing and I never got it to work. Basically I just edit the prefs file but even that seems like an odd way to do things.

Adding to favorites list is a matter of opening the .m3u file you saved before. Then select the top level entry (the one representing the whole file) and then Playlist|Copy from menu, go to the favorites list and select somewhere you would like to insert, and finally select Playlist|Paste.

The link mentioned a way to make a list appear at the same level as favorites and e.g. WorldTV99. There is no graphical user interface for yet.
Quote:

Originally Posted by gigabites (Post 292283)
Using the edit feature of the playlist menu doesn't seem to save changes. Example, I select edit from the menu, change the name of the 3mu file that the favorite points to. I expect it to save what I just edited or have a "save changes" button but um... nothing. I return to the favorite and it's still the pre-edited state. Am I doing things wrong?

You have to press the button with the recycling arrows, it synchronizes the text with the tree on the left.
Be careful though, KMPlayer has no way to undo changes this way, so if you're changes make the XML invalid, you can loose links. Changes are saved on program exit, so you can make a backup of the /home/user/.kmplayer/playlist.xml file when you notice such a data loss.


All times are GMT. The time now is 15:03.

vBulletin® Version 3.8.8