Announcement

Collapse
No announcement yet.

uOLED-96-g2 ..help a beginner in a simple project

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • george1
    replied
    Everything is perfect now !
    Thanks again for the help and your time guys ! This excellent support is what makes me choose always 4D products.
    You be well
    Kind Regards
    George

    ...gone to play with my screen

    Leave a comment:


  • george1
    replied
    It didnt like changing so i copy /paste and now it works! yes now i can slow down!
    Thank you very much for your help and your time Paul

    Will let you know sometime tomorow how it went
    thanx again
    Kind Regards
    George

    Leave a comment:


  • pauleilio
    replied
    Hi George,

    You need to change or add to the line

    media_Video(0, 0) ;// show video

    to

    media_VideoFrame(0, 0, n) ;// show video

    Best regards

    Paul

    Leave a comment:


  • george1
    replied
    i even tried 6000 with no change in speed ...
    Attached Files

    Leave a comment:


  • george1
    replied
    I dont think it likes just copy/paste..
    I first use "paste code" and then i add the missing lines i see in your post #25
    ..going to try now! thank you!

    Leave a comment:


  • pauleilio
    replied
    Hi George,

    That might be because the x, y co-ordinates are different in my code to the ones that were in your screenshot

    my code:
    media_VideoFrame(1, -32, n) ;// show video

    This was from your screenshot
    media_Video(0, 0, n) ;// show video

    If you try
    media_VideoFrame(0, 0, n) ;// show video

    You could increase the value in pause(50) which would make 20 frames per second roughly.

    Best regards

    Paul

    Leave a comment:


  • george1
    replied
    No worries Paul.There are "no errors" in code, but screen dont like it. .gif plays with same speed but in different angle somehow and out of center ..

    Leave a comment:


  • pauleilio
    replied
    Hi George,

    Sorry for my second suggestion, that will only delay in between the video being played again, so there is now a 1 second delay in between the video being played again.

    Could you try changing your code with this.

    var n;

    repeat


    // Video1 1.0 generated 5/9/2017 3:08:56 PM
    media_SetAdd(iVideo1H, iVideo1L) ; // point to the Video1 image
    gfx_Set(SCREEN_MODE,LANDSCAPE) ; // On uOLED-96-G2 videos+images only work in LANDSCAPE
    for(n := 0; n < 297; n ++)
    media_VideoFrame(1, -32, n) ;// show video
    pause(10);
    next
    gfx_Set(SCREEN_MODE,PORTRAIT) ; // Restore 'operating' orientation



    forever


    I don't have a screen like yours here at the moment so it is untested.


    Best regards

    Paul

    Leave a comment:


  • george1
    replied
    screen shot
    Attached Files

    Leave a comment:


  • george1
    replied
    Hello again Paul,

    change to the "frame delay" or adding "pause(500);" line before "forever" doesnt makes any difference to the speed that the .gif is playing
    any ideas how can i solve this?

    Thank you
    Kind Regards
    George

    Leave a comment:


  • pauleilio
    replied
    Hi George,

    You can change frame delay, or you could put this line just before forever

    pause(2);

    you can change to 2 to suit the speed you require, 2 = 2 milliseconds.

    Best regards

    Paul

    Leave a comment:


  • george1
    replied
    maybe the "frame delay" in the properties of the video....?

    Leave a comment:


  • george1
    replied
    One last question is about the speed that the video is playing .Is this has to do with the way im creating my .gif and nothing to do with the screen?
    Or there is a way to slow it down in the code and im missing it?
    Thank you again Noel,
    Kind Regards
    George

    Leave a comment:


  • george1
    replied
    Thank you Noel. Forgive my ignorance. .I didnt know i must delete and paste new code every time ..Yes now i can rotate and resize

    Leave a comment:


  • Noel
    replied
    george1,

    After you resize the "video box" with your mouse pointer, click on the old code inside repeat- forever
    and delete it. After that, put the cursor inside the repeat-forever loop and then click on Paste Code.
    After that, it should play the video.

    Best regards,

    Leave a comment:

Working...
X