Jump to content

zPlayer - My own little audio/video player


Recommended Posts

  • Replies 119
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

zPlayer is the name I used when I introduced the early version of this player in my blog back in early 2009 and, therefore, has nothing to do with the mobile media player of the same name which starte

It's great to see that you did it. I enjoyed helping you help your dad. Cheers to you and your daddy! GUICtrlSetFont(-1, $vcWidth/8, 900) I like this. Good job!

I have my "final" version!  (yes, I know what a joke that is . . .) It works and my dad can Play-Paus easily with the giant button filling most of the 10.1" display on his tablet.  Here is the cu

Posted Images

from that link seems, the version still v3.3.14.5 eventhough this is not beta version.

i am currently using autoit-v3.3.15.3-beta, is there any wrong in this version?

i am so confuse actually, that lastest version from link above, has release date 16 March, 2018

it is impossible for me, i think, since i am new member here, how possible i am downloading something which is not lastest version.

i am still curious, why when i am made, that zPlayer.exe my own, there is bug..like before

is it really because i am using beta version?

Edited by subuddhi
Link to post
Share on other sites

@subuddhi, for a normal user like you and me, I would recommend the latest stable version, which is 3.3.14.5. Some experienced users may also use a beta version to make use of a special function which is not provided by the stable version. I've never used a beta version myself.

Link to post
Share on other sites
On 6/1/2021 at 10:35 PM, CYCho said:

I found that one of my laptops had an Intel CPU with Intel HD Graphics Control Panel installed, and Ctrl+Alt+Arrows rotate the screen orientation. This overrides my hotkeys for changing volume and moving to previous or next file. I never had a need to change screen orientaion, so I diabled the screen rotation shortcuts. The following article explains in detail how to do it.

Edit: My laptop is a Windows 10 PC.

How To Disable Screen Rotation Keyboard Shortcut in Windows 10

Version 3.0.1.8 was released today to address this problem. I added 4 alternate hotkey sets to be used when the Windows uses Ctrl+Alt+Arrow shortcuts. The alternate hotkeys use equal, minus, comma and period keys instead of up, down, left and right arrows respectively.

Edited by CYCho
Link to post
Share on other sites
  • 2 weeks later...

@subuddhi, there's one thing you should consider when changing the order of music files in the listview:  the listview is a visual representation of $playList array and the program works with this array when moving forward or backward. So you should refresh this array when you change the order of listview items.

Link to post
Share on other sites
On 7/13/2021 at 4:53 PM, subuddhi said:

i wonder if we can rearrange music in playlist, i.e, drag and reorder the list, it would be nice

Edit: Version 3.0.1.9 was released on July 19, 2021 to add 🠕 and 🠗 buttons in the playlist window. This is not exactly drag and drop, but this may serve the purpose. Select any item in the playlist and click 🠕 or 🠗 button and see how the selected item moves up or down. Any comments would be welcome.

Edited by CYCho
Link to post
Share on other sites
  • 3 weeks later...
  • 2 weeks later...

I found the zplayer and got excited.  My 95-year-old dad has dementia and is in his 6th viewing of the 8-season Monk series.  Changing the DVDs takes a lot of our time, so I plan to make a tablet PC with a simple screen with Pause, Next, and Previous buttons.  The second  display can be his HDMI TV.  I can put the sequentially named videos in a folder and they can play "forever" for him.  I've spent about 10 hours trying to make things work and I'm not making very good progress.  I've made the buttons work, but I'm having trouble understanding how to not have all the other display windows "in the way".  Is there any top level documentation (beyond the code comments) that could help me to understand how to get my desired result?

Thanks,
Carl

Link to post
Share on other sites

 

10 hours ago, carlvanwormer said:

Is there any top level documentation (beyond the code comments) that could help me to understand how to get my desired result?

Unfortunately no. But I can feel your love for your daddy and I will be happy to make a reduced and custom-designed player for your daddy along the following lines:

1. When the program is run for the first time, it will make an alphbetical list of video files and play them forever until you press Pause or Exit button.
2. When the program is run the next time, it will start playing the last file you were playing when you exited the last time.
3. The screen will always be a maximized window. You can change to fullscreen mode through context menu.
4. A small GUI at the right bottom of the screen will have 4 buttons(Play/Pause, Next, Previous and Exit) and a progress bar.

I will post the code when I'm done. I hope I can do it in several days. In the mean time, please let me know if you want to have any other function included.

Edited by CYCho
Link to post
Share on other sites

Wow!  Custom software!

I have it partially working in my preferred version.  I made a single Pause button filling most of the main display (covering up the other dialog windows) that stops and starts the video in the secondary HDMI display. 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Carl\Documents\AutoIt\CarlPlay\BigPause.kxf
Global $Form1 = GUICreate("Form1", 1212, 682, -1, -1)
Global $Pause_Play = GUICtrlCreateButton("Pause_Play", 152, 16, 995, 625)
Global $nMsg
GUICtrlSetFont(-1, 120, 400, 0, "Arial Rounded MT Bold")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

; end Carl init - - - - -

code near the end of your main:

            If $trayMsg = $tray1 Then MyWindow()
            If $trayMsg = $tray2 Then MyExit()

;Carl code - big button stuff - - - -
            $nMsg = GUIGetMsg()
            Switch $nMsg
                Case $GUI_EVENT_CLOSE
                    Exit
                Case $Pause_Play
                    MyPause()

            EndSwitch

;Carl code end - - - - -

        WEnd

My implementation hack breaks the functioning of the pop-out video control.  If I knew the necessary and sufficient requirements for my button functions, along with where in the code to place them, I could probably do them myself.  At first I thought I needed to turn off the other windows, but making a big button group that mostly covers up the other stuff would work, too.

 

The important things for the ultra-simple control are:

1. dual screen with the second screen being the HDMI TV screen (full screen mode if possible)

2. Button control on primary tablet screen (full screen mode if possible)

3. Buttons - Giant (90% of screen) Pause (required), small Previous and Next (optional), and very small (corner, hard to hit) exit.  This is because his eyes are bad, his fingers are bad, his memory is bad.  If he exits, the memory-care staff will need to restart and set up his system.

4. If possible, the system will power up running the app after windows starts, continuing with the most recently paused location or the next video in the list.

5. Maintenance, setup, and other expert functions could be accessed with touchscreen or mouse and keyboard.

Any help would be appreciated.

Thanks for the amazing code (and thanks to AutoIt!),
Carl

 

Link to post
Share on other sites
3 hours ago, carlvanwormer said:

1. dual screen with the second screen being the HDMI TV screen (full screen mode if possible)

2. Button control on primary tablet screen (full screen mode if possible)

Sorry, I don't have any experience with dual monitors. I'll come back to you when I have learned how to implement it. Thanks for giving me a motivation to learn something new. Input from anyone who kows would be appreciated.

  

3 hours ago, carlvanwormer said:

4. If possible, the system will power up running the app after windows starts

This can be done by using Windows Task Scheduler.

Edited by CYCho
Link to post
Share on other sites

I can manually configure the second monitor and move the video display window to the second monitor (my TV) with the existing code.  If the video could be programmatically set to the second monitor, it would be convenient, but that function is not necessary.

I've been testing with my desktop PC for most of the work, and then I moved the .exe to a laptop, which was able to prove the concept, so I just ordered a tablet for the final installation.  If you have any interim versions available, I'd be happy to test and reply.  Is it worth trading a direct contact method?

Thanks,

Carl

 

Link to post
Share on other sites
20 minutes ago, carlvanwormer said:

If you have any interim versions available, I'd be happy to test and reply.

I will give you a workable version in a couple of days time.

 

20 minutes ago, carlvanwormer said:

Is it worth trading a direct contact method?

Sure, you can click on my avatar and send me a message me if necessary.

Link to post
Share on other sites

@carlvanwormer, . the attached code works in my single-monitor environment and I hope it will work in your dual-monitor environment as well. Please test the code in your tablet and TV and let me know how it works or fails.

 

zPlayer_Carl.zip

Edited by CYCho
Link to post
Share on other sites

I get an error when I execute the script.  Here is the output window:

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\Carl\Documents\AutoIt\CarlPlay\zPlayer_Carl.au3" /UserParams    
+>16:00:57 Starting AutoIt3Wrapper (21.316.1639.1) from:SciTE.exe (4.4.6.0)  Keyboard:00000409  OS:WIN_10/2009  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper
>Running AU3Check (3.3.14.5)  params:-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\Carl\Documents\AutoIt\CarlPlay\zPlayer_Carl.au3
+>16:00:58 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\Carl\Documents\AutoIt\CarlPlay\zPlayer_Carl.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop.
"C:\Users\Carl\Documents\AutoIt\CarlPlay\zPlayer_Carl.au3" (36) : ==> Subscript used on non-accessible variable.:
$playList[0] = $playList[1]
$playList^ ERROR
->16:00:59 AutoIt3.exe ended.rc:1
+>16:00:59 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 2.697


is this something I can fix?

Thanks,

Carl

 

Link to post
Share on other sites
3 minutes ago, carlvanwormer said:

"C:\Users\Carl\Documents\AutoIt\CarlPlay\zPlayer_Carl.au3" (36) : ==> Subscript used on non-accessible variable.:

This code should reside in the same directory as the media files. Please insert the following error-checking lines in line 36 of the code.

If Not IsArray($playlist) Then
        MsgBox(0, "", "This program should reside in the driectory where video files are located.")
        Exit
    EndIf

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By CYCho
      This file includes the source code for zPlayer, which is a stand-alone, simple, intuitive and easy-to-use, yet fully functional media player.  I made this to suit my purpose and you can tweak it to your taste. The source code is only about 1600 lines and only standard #include files were used. Also included in the source code file are some image files which are used for drawing the graphical media controls in the main window.
      As of its release date, the compiled exe file of this player, as attached hereto, is not flagged by Windows Defender with latest Security Intelligence Update.
      Hash values for compiled file of the latest version are as follows:
      SHA256: B21A386B916175FB05639BACC398812BE6CEB1B02E463585EA900E329A596A5D
      SHA1: 3AAAFF9B3E8D4FC5FE3D27C49241C23C0C9DF654

      This player has the following features:
      - Play back all formats of media files which can be played back by the Windows Media Player in your computer
      - Depending on the file types specified by the user in zPlayer.ini file this player can be either audio only, video only or both.
      - Video window is independent of other windows and, when maximized, increases the immersion of the user
      - Graphical media controls similar to embedded Windows Media Player
      - Forward, backward, pause, repeat, shuffle function
      - Increase/decrease/mute sound volume
      - Change folders and create playlist for all media files in that folder and its subfolders, and support for manually-made playlists
      - Save play-back environment when terminating and resume that environment when restarting
      - 'Continue playback' option for a file you left off in the middle of playback
      - With one click, you can see internet search results for the file selected in playlist
      - With a double-click, you can play back an item in the playlist
      - Search strings in the playlist
      - Option to see long file names including folder names
      - View file properties for any file in the playlist and copy their values
      - Resize the playlist and video windows, and restore them to their default positions
      - Very small footprint: very low CPU and memory usage, with only about 1MB when compiled
      - You can even hide all the windows and manipulate the player with hotkeys only
      Note: zPlayer is the name I used when I introduced the early version of this player in my blog back in early 2009 and, therefore, has nothing to do with the mobile media player of the same name which started marketing in 2015.
       
    • By PeterVerbeek
      In this post I take the opportunity to show the awesome capabilities of AutoIt and its libraries. My open source project Peace is a long running AutoIt based app located on SourceForge. It provides users with a system-wide equalizer and effects machine. It's an interface using the power of Equalizer APO, an audio processing object software. Peace has been download over 2,600,000 times by various kind of users. Amongst others it gives them possibilities like these:
      Hearing impaired - Amplify the gain of frequencies which are impaired. Home Theatre - Create Equalizer presets for watching movies and listening to music. Music lovers & audiophiles - Create presets for listening to music on their high quality speakers and headphones. Gamers - Enhance frequencies to get an edge over other gamers. Headphones - Improve the sound quality of cheap headphones and get the max out of expensive ones. Bass lovers - Boost low frequencies for extra bass. Voice - Make a microphone sound better and improve the voice, for instance for YouTube usage. Low audio - Boost low audio of an input source to a comfortable level. This list covers the main needs of the Peace user. Many people have contacted me over the years asking for new features and telling me how they use Peace for their (sometimes specific) needs.  I was able to use AutoIt and its libraries for all of their needs. So what are the main features of Peace?
      Equalize your computer audio by using up to 31 sliders. Support of equalizing 9 speakers : left/right, center, subwoofer, left/right rear, left/right side. Per slider a filter can be chosen such as peak, low/high pass, shelving. The graph windows shows your equalization so you see exactly what you're doing. Apply an effect such as crossfeed simple/Jan Meier/Chu Moy, stereo balance, bass/treble, upmix/downmix, channel routing. Save presets (called configurations) and activate by mouse click, hotkey, desktop shortcut or Peace system tray. Select a target device to equalize, microphone as input can also be equalized. Automate: you can let Peace automatically activate presets on a switch to another device and another process. Peace is available in these languages: English, Czech, Deutsch, Français, Italiano, Nederlands, Pусский, Українська So who am I? I'm a Dutch programmer who happens the stumble upon AutoIt 5 years ago and created a small Equalizer interface app of less than 400 program lines with it. Nowadays Peace has grown to more than 18,000 lines as many features were added. Although Peace is open source, the program code isn't of the best possible quality. The reason being that I didn't expect it to become so popular. It caught me by supprise. I've created a Library of functions called Pal (link to forum post) which quality is up to the AutoIt community standard as counterpart to the Peace program code.
      I want to state here that AutoIt is a mature program language as Peace obviously shows. I wish it to be used more extensively for professional or semi-professional apps. In my view AutoIt deserves a place amongst the major programming languages for Windows computers.
      Regards,
      Peter Verbeek








    • By nacerbaaziz
      hello autoit team
      please i need your help
      i found that the youtube provide a way to get any video informations with this link
      https://youtube.com/get_video_info?video_id=id
      but it incoded i can not read it
      can any one tell me how to decode that please?
    • By nacerbaaziz
      goodmorning; autoit team
      please their are any youtube search way working?
      because i was using the get source and split it to get the result but know it does not working any way.
      is the youtube disabled that? and is their any other simple way to do that?
      i tested all examples found in this post but also it don't work
      https://www.autoitscript.com/forum/topic/123945-youtube-search/
      and here is the example that i use to and it don't work any more
      local $hSearchOpenHNDL, $hSearchConnect, $sSearchGet local $a_UrlsArray[1][5] local $b_ButtonsDisabled = false, $b_SearchBTNFocus = false, $b_SearchListFocus, $h_SearchFocusHND local $Return = "0" local $s_OpenStringY = "/feed/trending" local $ChannelUrl = "", $channelName = "" if Not ($a_YoutubeSearchArray[0][0] = 0) then GUICtrlSetData($searchInp, $s_youtubeSearchLastSearch) $s_OpenStringY = "/results?search_query=" & StringReplace(GUICtrlRead($searchInp), " ", "+") $a_UrlsArray = $a_YoutubeSearchArray for $i = 1 to $a_UrlsArray[0][0] _GUICtrlListBox_AddString($SearchList, $a_UrlsArray[$i][0] & $a_UrlsArray[$i][2] & $a_UrlsArray[$i][3]) next _GUICtrlListBox_SetCurSel($SearchList, $I_youtubeSearchLastIndex-1) GUICtrlSetState($SearchList, $GUI_focus) else if Ping("youtube.com", 1000) > 1 then $hSearchOpenHNDL = _WinHttpOpen('') if not (@Error) then $hSearchConnect = _WinHttpConnect($hSearchOpenHNDL, "youtube.com") if Not (@Error) then $sSearchGet = _WinHttpSimpleRequest($hSearchConnect, "get", $s_OpenStringY) if not (@Error) then local $a_strings = _StringBetween($sSearchGet, '<a href="/watch', "<ul") local $title = "" local $url = "" local $length = "" local $result = "" GUICtrlSetData($SearchList, "") ReDim $a_UrlsArray[1][5] for $i = 0 to UBound($a_strings)-1 $url = _StringBetween($a_strings[$i], "?", '"') if @error then ContinueLoop $url = "https://www.youtube.com/watch?" & $url[0] $title = _StringBetween($a_strings[$i], 'dir="', '</a>') if @error then ContinueLoop $title = $title[0] $title = StringRegExpReplace($title, '(.*\"\>)', "") if StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}', 0) = 1 then $length = StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}', 2) elseIf StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}', 0) = 1 then $length = StringRegExp($a_strings[$i], '[0-9]{1,2}\:[0-9]{1,2}', 2) else $length = "" endIf if IsArray($length) then $length = ": (" & $length[0] & ")" else $length = "" endIf $ChannelUrl = stringRegexpReplace($a_strings[$i], '(^.*?<a.*?\"(\/user|\/channel))+', "$2") $channelName = stringRegexpReplace($ChannelUrl, '(.*?\".*?>)(.*</a>)+', "$2") $ChannelUrl = stringRegexpReplace($ChannelUrl, '(\".*)+', "") $channelName = stringRegexpReplace($channelName, '(</a>.*)+', "") $result &= $title & @crlf & $url & @crlf ReDim $a_UrlsArray[UBound($a_UrlsArray)+1][5] $a_UrlsArray[UBound($a_UrlsArray)-1][0] = $title $a_UrlsArray[UBound($a_UrlsArray)-1][1] = $url $a_UrlsArray[UBound($a_UrlsArray)-1][2] = $length if not ($channelName = "") then $a_UrlsArray[UBound($a_UrlsArray)-1][3] = ", (" & $channelName & ")" if not ($channelUrl = "") then $a_UrlsArray[UBound($a_UrlsArray)-1][4] = "https://www.youtube.com" & $channelUrl $a_UrlsArray[0][0] = UBound($a_UrlsArray)-1 _GUICtrlListBox_AddString($SearchList, $a_UrlsArray[UBound($a_UrlsArray)-1][0] & $length & $a_UrlsArray[UBound($a_UrlsArray)-1][3]) next endIf endIf endIf endIf endIf  
      i hope any one can help me
      thanks in advance
    • By ripdad
      This is a project that I have been working on for several months off and on.
      It's a simple "What You Hear" MP3 @ 320Kbps and WAV audio recorder.
      Features:
      - LoudMax, a Gain Controller and Look-Ahead Limiter
      - Auto Shut-Off after one minute of silence
      - Side-by-Side Simulated LED Meter
      - Running Time Counter
      It started off being a large project, but I eventually stripped it down to its
      bare essentials because I came to realize that it would be very difficult to
      deal with every sound card and every way a PC is set up for audio. It would
      have been a nightmare that I was not willing to go through.
      This project contains the most up-to-date BASS.dll v.2.4.15.0 - December 17, 2019.
      All BASS Dll's are 32bit. Those and the needed UDF's are included in the zip file.
      I will try to explain how it works in the next post.

      Download:
      BASS VST Recorder v1.1.zip
       
×
×
  • Create New...