Reply
Thread Tools
Posts: 108 | Thanked: 316 times | Joined on Dec 2013
#1
I was just missing a video player which has the ability to browse the file system and play remote media streams (just like youtube videos and so on) so I coded one.

Its a work in progress and won't be released currently as I need to clean up the code ( I partly use jolla-fileman code for the filebrowsing stuff).
I also plan to integrate a youtube search into it.
The video player uses the builtin gstreamer framework which in combination with the file browser (which trys to open up every file you throw at it) has the nice side effect that it can also view image files (what I accidently found out and never planned it)
Anyways here is the current rpm (Updated:harbour-videoplayer-0.5-1.armv7hl.rpm) :
https://openrepos.net/sites/default/...-1.armv7hl.rpm

You can find the code here: https://github.com/llelectronics/videoPlayer

You can find the openrepos.net page here:
https://openrepos.net/content/llelec...s-video-player

And a short video demo of the initial features: http://www.youtube.com/watch?v=9o4wltgCjTI
Short video demo of youtube search implementation: http://www.youtube.com/watch?v=hW55lNbFYLo
Controls, History & CoverPage Update: http://www.youtube.com/watch?v=VkMLeLnyy2E


Latest changes (harbour-videoPlayer-0.5-1):
  • Added docker which activates on press & hold and allows bookmarking & download of youtube videos
  • Allow downloading of all known video formats for youtube (try to get 720p, 480p, 360p & 240p)
  • Use new /media/sdcard path for sdcards in fileman
  • Allow fileman to be used horizontally
  • Unified "Open URL" & "Open File" to "Open" in pulley menu
  • Added "Browse FIles" button to OpenURL page
  • Added video position & video duration to cover
  • Added initial subtitle support for *.srt files (for it to work rename the srt file to your videofilename [e.g. video.avi with video.srt])

Last edited by llelectronics; 04-03-2014 at 02:08 PM.
 

The Following 56 Users Say Thank You to llelectronics For This Useful Post:
Posts: 365 | Thanked: 264 times | Joined on Jan 2012 @ Berlin/Germany
#2
nice work bro, i will try this tomorow
__________________
www.sailfishmods.de (in Bearbeitung/work in progress)
 
Posts: 663 | Thanked: 1,364 times | Joined on Jan 2012 @ UK
#3
Looks really cool I will give it a go once I got more content on my SD card tomorrow
 
Posts: 235 | Thanked: 152 times | Joined on Jan 2012 @ Milan, Italy
#4
Whoa, cool! Don't know if I'll wait for it to appear in the store (for the automatic updates) or just try it out at once... mmmh........

Ok, couldn't resist.
It's great, and it's just basic yet. Can't wait to see how far it will go, looks really, really promising. Add in youtube/video download and you'll be my hero

Last edited by Watchmaker; 12-23-2013 at 07:23 PM.
 
Posts: 507 | Thanked: 336 times | Joined on Jul 2010 @ Brittany, France
#5
Your video player actually looks great and features seem to work properly. And you say it's gonna improve? Awesome. I'm already downloading the pre-version. :O

Apart from the Youtube search, are you planning to add gestures (back 10 sec/1 min, forward 10 sec/1 min), or advanced player options in the pulley menu (browse subtitles even if name.srt != name.avi, subtitles downloader (like in MPC or UMPlayer), audio delay, etc.)?

That would definitely be the most advanced media player for Sailfish so far. Well, is it the only one ? OK. But still. :]

P.S.
I have trouble reading some files though, but it might be related to gstreamer. The default Sailfish player has the same problems with these files (which work properly on my computer, .mp4 and .avi). Some mplayer support someday would be great.

Last edited by Kabouik; 12-24-2013 at 08:10 AM.
 

The Following User Says Thank You to Kabouik For This Useful Post:
Posts: 108 | Thanked: 316 times | Joined on Dec 2013
#6
Apart from the Youtube search, are you planning to add gestures (back 10 sec/1 min, forward 10 sec/1 min), or advanced player options in the pulley menu (browse subtitles even if name.srt != name.avi, subtitles downloader (like in MPC or UMPlayer), audio delay, etc.)?
Gestures would conflict with the pageStack gestures so I have no plan for this currently.
Subtitles would be cool but currently I don't see the possibility for the QML MediaPlayer API to load them (maybe this changes with some newer version though)
The same goes for audio delay and so on.

What I want to add besides youtube search is a file information dialog so that you see your files metadata.
Some kind of error output and the ability to load a video file as parameter from the terminal (that would also make it possible to use this video player as default mimetype for video files which would make jolla-fileman and others building upon xdg-open to open up the video file with my player).
Cover Actions also needs some love. And perhaps I come up with some other nice ideas. And of course always code cleanup

As for youtube downloading and full fledged youtube support I guess next year when python3 and its support for qt5 will come we will see some cool apps like cutetube (although I am not sure if its python based or pure c++, I guess the latter) and so on.

I have trouble reading some files though, but it might be related to gstreamer. The default Sailfish player has the same problems with these files (which work properly on my computer, .mp4 and .avi). Some mplayer support someday would be great.
Mplayer will most probably definitely come to sailfish (but I am not sure if I will support it with this player though). But I guess with the newest gstreamer (1.0) which will hopefully come with one of the updates of sailfish the problems with file compatibility and codecs should go away.
 

The Following 2 Users Say Thank You to llelectronics For This Useful Post:
Posts: 235 | Thanked: 152 times | Joined on Jan 2012 @ Milan, Italy
#7
Originally Posted by llelectronics View Post
As for youtube downloading and full fledged youtube support I guess next year when python3 and its support for qt5 will come we will see some cool apps like cutetube (although I am not sure if its python based or pure c++, I guess the latter) and so on.
Ok, no problem.

I took the freedom to create a jolla-styled icon, feel free to use it instead of the generic sailfish one (if you like it of course, I didn't test it on a device since I wouldn't know how, so I don't know if it actually looks any good in real use situations ).
Attached Images
 
 

The Following User Says Thank You to Watchmaker For This Useful Post:
Posts: 108 | Thanked: 316 times | Joined on Dec 2013
#8
Update: Youtube search is now implemented and I did some other bug fixing aswell as integrating Watchmakers icon.
Somehow I cannot get autoplay working. I am waiting for suggestions here.
Youtube integration still works via ytapi.com. If you have better suggestions on how to do this (I experienced a short downtime of ytapi.com earlier) in pure qml/javascript to directly access the video material I would gladly accept patches.

Updated rpm: https://www.dropbox.com/s/gksn0mbs94...-2.armv7hl.rpm

And a small video demonstration as always: http://youtu.be/hW55lNbFYLo

I think I will update the initial post aswell as people tend not to scroll down to read every single page/comment.

Changes in an overview:
  • Added new icon (thx Watchmaker)
  • Always display erros in potrait when available
  • Save entered url in openurl page for later editing
  • Updated icon (needed white for the filmstrip)
  • Modified desktop file to show LLs Video Player
  • Pressing Enter in OpenURL page now loads url
  • Implemented youtube search
  • Added icon to coverpage
  • Cleanup of code (lesser debug output, yt.js as checkyoutubelink and get videoid script)
 

The Following 11 Users Say Thank You to llelectronics For This Useful Post:
Posts: 235 | Thanked: 152 times | Joined on Jan 2012 @ Milan, Italy
#9
I'm honoured that you chose to use my icon! I further tweaked it, put yellow instead of white in the holes of the film strip, and added one more frame separation line. I attach two versions, see if you like them better than the previous one.

As per the changes, great that youtube search is now working! Search result page scrolling is a bit wonky though, I can't scroll very much and page keep getting back to the top by itself.
Attached Images
  
 
Posts: 108 | Thanked: 316 times | Joined on Dec 2013
#10
Yeah seems to be a conflict with the page back swipe gesture.
I wonder if there is a possibility to enter some threshold for this.

Try swiping from down bottom right to upper left and that should work much nicer than (it shouldn't jump back then). Longer swipe might also help here. (Just a workaround for now until I find out how to add that threshold for back swiping or need to find another way to workaround this problem somehow)

As for the icon. How about adding a white play icon onto it (centered).
Just like the one I ship with the player sources ? (triangle)
 

The Following User Says Thank You to llelectronics For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 04:40 PM.