Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support

General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 28th October 2003
Junior Member
BS.Player Newbie
 
Join Date: Oct 2003
Posts: 4
Rep Power: 0
seppel is an unknown quantity at this point
Default SDK & BSP_GetFileName?

Hello,

I have two questions about the SDK and the "BSP_GetFileName"-Message:

1) Did anybody had success with this message? I'm not able to get any results (but I managed to get BSP-Version and BSP-MoviePosition using the sdk...) If yes - could you please :lol: post a piece of your code to the forum?
2) Does this message report the "file"-name or the title of the movie, which is being played (and can be set via an entry in a bsi-file)?

Many thanx in advance,
Seppel

PS: I'm trying to visualize all this informations using a nice little graphic-LCD (128x64) and "LCDHype"...
Reply With Quote
  #2 (permalink)  
Old 28th October 2003
Member
BS.player Regular User
 
Join Date: May 2003
Posts: 38
Rep Power: 0
Halle is an unknown quantity at this point
Default

BSP_GetFileName returns the full path of the movie file being played. Do you use SendMessage with the WM_COPYDATA message as described in bsp.h? Because for me, it works fine..

cu
Halle
Reply With Quote
  #3 (permalink)  
Old 29th October 2003
Junior Member
BS.Player Newbie
 
Join Date: Oct 2003
Posts: 4
Rep Power: 0
seppel is an unknown quantity at this point
Default

Hi Halle,

yes - I'm using the SendMessage function as described in bsp.h
But I'm unsure where to get the needed application handle!? My test-application is a very simple console-app. Which function do I have to use to get this handle?

bye,
Seppel
Reply With Quote
  #4 (permalink)  
Old 30th October 2003
Member
BS.player Regular User
 
Join Date: May 2003
Posts: 38
Rep Power: 0
Halle is an unknown quantity at this point
Default

I dunno which language you are using, but there's a Windows API function
Code:
HWND GetConsoleWindow(void);
which should give you what you wanted ;)
Reply With Quote
  #5 (permalink)  
Old 31st October 2003
Junior Member
BS.Player Newbie
 
Join Date: Oct 2003
Posts: 4
Rep Power: 0
seppel is an unknown quantity at this point
Default

thanx Halle :D Now it works!

But Im still looking for a way to grab the "title". Since I'm using a bsi-file for every movie bsplayer displays the complete title and not only the filename (the name of the corresponding avi-file is often just a shorty). Like I wrote I'm trying to display the current title on a lcd.

If's there's no way to get this title I think i have to make an ugly work-around...
But: wouldn't a message to get the title be a good extension to the sdk?

bye (& thanx again to Halle :D )
Seppel
Reply With Quote
  #6 (permalink)  
Old 1st November 2003
Member
BS.player Regular User
 
Join Date: May 2003
Posts: 38
Rep Power: 0
Halle is an unknown quantity at this point
Default

Well, I guess you have to go the workaround way..
It would be nice if movie files had something similar to ID3 tags for mp3 files, but ah well..

cu
Reply With Quote
Reply

Tags
bspgetfilename, sdk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules


All times are GMT +1. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20