|
Feature Requests, Feedback And Suggestions Post your suggestions and feature requests here, what would you like to use in BS.Player. Any feedback is appreciated and will be reviewed by our team. |
| LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
Windows XP Enhanced Autorun For this to work, you need to have BSPlayer installed to the hard drive - and for everything to happen automatically, you must have downloaded the installer version of BSPlayer. Just make sure the program is installed into the same folder as bsplayer - then everything should be fine. If you prefer not to open the movie fullscreen, change the startfs=1 tp startfs=0 in the settings.ini file will disable the -fs command. The program requires you to specify which extensions will be added to the bsplayer playlist. I've added a few by default - if you want to add more, simply open the settings.ini file and add / remove / change extensions. Shortly, I'll get round to writing an extension editor program, but until then you can still do it manually. If you have any problems, let me know by replying here - i'm interested to see how it works! Cheers Bubba |
| |||
Yeah sure. The souce is in vb 6, with all the registry settings for autorun v2 set up by the nullsoft nsis installer. I've included everything. If you want to run other programs, it will take a bit of playing with but it should be possible. Cheers - let me know how the program runs. Bubba |
| |||
I think vb5 should run alright - what problems are you experiencing? A good way to test is to use tweakui xp to enter the details in which saves messing with the registry too much. I did this, then kind of half figured out how it was working before i found the msdn article on autoplay v2.
|
| |||
problem to compile their sample exemple to view, I've understand what is necessary to make an application works with autoplayv2 but after it is hard to try to make a project that could manage what the device return and to play with an application. ??+µ |
| |||
Yeah, that is true. I just grabbed a standard event (the video one!) and wrote a program around what it returns. In theory you can do lots of different "stuff" with autorun such as interaction with programs, but this is a bit beyond my programming skills! Good luck - let me know how it goes. Cheers Bubba |
| |||
how I read my preview message and I tell you a mistake :oops: it's not VB5 but Visual C++ (yep I learn this language but VB no) so the source file appears me like a big kestion. Well I will describe you what I understand of your sources. The nsi I know it's to make the installer .exe , this is not a problem . The problem is the 6 others files that (I hope to have VB6 soon) I don't understand what kind of thing they do or their utility. I understand that to have video files listening in an application that don't basically support autoplayv2 you should create an registry entry in the event handlers to link to the describe on what this do in the handlers. In the handlers you write the description of the application and a link in HKCR to find what application start and the InvokeVerb that allow start. After read the msdn description of the mechanism of autoplayv2 I understand that this give a sort of list with the description of what you find on a cd (in our exemple only video files), so this list is given to the application bsplayrun that proceed to create a BSPlayer file list and execute the command like "$INSTDIR\bplay.exe tmplist.bsl" with the option "-fs" or not to have fullscreen, I've notice that your software select only extension that were in the ini file. So I learn your source code at this time to know what is the construction and learn how VB works (erf it's hard :-| ). But There is some things that I don't understant like how you know what autoplay give to the soft (because it is a different method discribe in the msdn sample and c++). After that I think in any language the soft have just to read this thing, arrange this by extensions specified returned a formated bsl playlist compatible with the player and so execute a command like I describe up. Correct my mistake and explain me really bacose I'm very interested in developp a kind of soft like these to play the files on cd automatically under windows xp. ??+µ |
| |||
No Problem - if I knew c++ then the app would have been written entirely in it - i only use vb cause im too busy with school work to learn c++ yet. Anyway, here's the information I think you are after. The nsi file that builds the installer also creates all the necessary registry entries that are required for autorun v2 to show bsplayer. Below is the required registry code: Code: ;Write Registry Settings WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\BSPlayVideoFiles" "Action" "Play These Video Files" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\BSPlayVideoFiles" "DefaultIcon" "$INSTDIR\bplay.exe,0" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\BSPlayVideoFiles" "InvokeProgID" "BSPlayerAutorun" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\BSPlayVideoFiles" "InvokeVerb" "BSPlayerAutorun_scan" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\BSPlayVideoFiles" "Provider" "BSPlayer" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayVideoFilesOnArrival" "BSPlayVideoFiles" "" WriteRegStr HKCR "BSPlayerAutorun\shell\BSPlayerAutorun_scan" "" "Play These Video Files" WriteRegStr HKCR "BSPlayerAutorun\shell\BSPlayerAutorun_scan\command" "" '"$INSTDIR\bsplayrun.exe" "%L"' Code: "BSPlayerAutorun\shell\BSPlayerAutorun_scan\command" "" '"$INSTDIR\bsplayrun.exe" "%L"' Hopefully I've made everything a bit clearer - the actual app in vb doesn't do much - it simply checks the inserted cd for files matching the specified extensions and adds them to a playlist file, then tells bsplayer to open it. All of the serious registry work is done by the nsis installation script. If you need any more info either post here or e-mail / pm me. Cheers Bubba |
| |||
yes this part of the difficulty to make an autoplay for an appz I've understand now I have read more precisely the pathlogger.cls and the frmdemo.frm (If I have understand it is these 2 files contain the code to make a listing of a device and his subdirectories and to performed to a playlist) now I've just to have to understand the operate of your vb code to tranpose in c++ , but it is a little bit hard because I've not make type of these code since 2 years and I want to develop a family of utility to make a sort of software that could play divx DVD mp3.... The first step is to have an autoplay on all cd/dvd inserted in the player-device and for a part of application it's a problem like bsplayer and other problem is for mixtecd containing mp3/divx/ and other stuff. So you see that it is a little difficult but possible. ??+µ (if you have more explication about your vb code I take it with pleasure becose I'm not familiar with it but I start to be since I've notice that there is familiarity with other language.) |
| |||
Autorun V2 is only available on winxp and above. However, it would be possible to re-write the program to run under win9x or win2k. If i get the chance, I will do. If you have ever seen a creative labs dvd drive or sound blaster live card, you may have seen they have a tray icon which is installed that opens the creative dvd player whenever a dvd is inserted. I don't know how they do this, but I assume they can capture when the drive is ejected. If you can find out how to find when a new disk is inserted then it should be possible to re-write it. I don't know how to do this and I'm currently doing a level exams so when these are sorted I'll get back to programming. I should think I'll be able to either find a way to capture the drives eject, or search for a change in volume label. One thing - will you be inserting other cd's that may have videos on them but will not be specifically movie cd's, such as game cd's? As long as these files have an autorun.inf file on the cd then the program will ignore them, otherwise your best bet is to upgrade to xp - I don't know how xp determines what type of cd is inserted - I guess it just scans the cd for files. If I were you, I'd look into an XP upgrade - it really is a great os! Cheers Andrew |
| |||
yeah you're right bubba, I've read the msdn writing about autoplay and they tell that this function scan the 4 first folder and determine what type of content is the cd if there is 2 different extension it's a mixte cd otherwise if there is only one extension it open the software your choose. So make a program for Win98 or 2k is possible we just have to make what the autoplayv2 do, so actually I search how to make your program run in c or c++ (better but hard because c++ I have not a lot of documentation but I will try to find). One thing that is interesting with 98 and 2k is the insertion notification, to do this program we have just ("just" lol easy to write but difficult to do hehe) to capture the event of the autoplayV1 and make what autoplayv2 do in xp. With Xp you can just run too the autoplayv1 by making an autocancellingquery when a media is inserted and after run your program player with the type of detected files. So it is to do. Ps if you want to work on this me I want, Ps2 I'm french guy so don't hurt me for the english mistake :). ??+µ |
| |||
Hi there, thanks for your answer. I tried to make the autoplay recognize the bsplayer.bsi by giving it the same name as the move and i tried a bsplayer.bsi. But not bsplayer.ini. It works now. I already edited the registry to recogize a *.bsi file on the cd and created a contenttypehandler and eventhandler to start that file instead of the avi directly. Should have read your answer before that ;) Thanks, Xnedra |
| |||
Problems with OGM files
Hi! The program work fine. But the problem is when i try to insert a cd with an ogm file. Windows doesnt recognize as a Video file and only open a folder with the cd files. How can i put a ogm file to a be a video file? And when i insert a cd the bsplayer start. Thanx, Telle. |
Tags |
autorun, enhanced, windows |
Thread Tools | Search this Thread |
Display Modes | |
| |