Post Reply 
Video Playback on HP Prime using DIMGROB & BLIT.
07-13-2023, 08:10 PM (This post was last modified: 07-13-2023 08:22 PM by matalog.)
Post: #2
RE: Video Playback on HP Prime using DIMGROB & BLIT.
Here is a program to have a go at playing back a video on the HP Prime G2 for yourself:
Code:
EXPORT dvidW()
BEGIN
DIMGROB_P(G4,30000,240);
    LOCAL H,EXIT;
  H:=0;
  G4:=AFiles("WeeZ.png");
REPEAT
  BLIT_P(G0,0,0,320,240,G4,0+H,0,320+H,240);
 H:=H+320;
 IF H>29670 THEN H:=0;END;
 WAIT(0.04);
 IF ISKEYDOWN(4) THEN EXIT:=1; END;
UNTIL EXIT=1 ;
END;

And here is a formatted file that will allow a video to play: HP Prime prepared video file. - This file must be put into the Application Library 'Files' for the particular application you are running, otherwise it will give an error "Invalid Input". Only works on HP Prime G2.

At 25 FPS playback, it works out to be 3.72 seconds, displaying 93 frames.

The video has to be short, but I didn't see any other video players for the HP Prime yet, did I miss any?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Video Playback on HP Prime using DIMGROB & BLIT. - matalog - 07-13-2023 08:10 PM



User(s) browsing this thread: 1 Guest(s)