Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:53:15+00:00 2026-06-07T01:53:15+00:00

I have a single video and I want to repeat the video forever; however,

  • 0

I have a single video and I want to repeat the video forever; however, I want the video to repeat before it has completely ended. Unfortunately, the event MediaEnded fires only when the video has finished the video. I am looking for some kind a event like ending, or play, or something like that to do this operation.

string VideoFileLocation = sVideoLocation + @"\video\";
DirectoryInfo df = new DirectoryInfo(VideoFileLocation);

media_Figura1.Source = new Uri(VideoFileLocation + @"\Figuras_loop.mov");
media_Figura1.LoadedBehavior = MediaState.Manual;

if (df.Exists)
{
    media_Figura1.Play();
}
else
{
    System.Windows.Forms.MessageBox.Show("No se puede cargar el video loop (Figura1)", "Casino Krown");
}

private void media_Figura1_MediaEnded(object sender, RoutedEventArgs e)
{
    media_Figura1.UnloadedBehavior = MediaState.Manual;

    if (bLoop_1Figura)
    {
        TimeSpan ts = new TimeSpan(0, 0, 0, 0, 0);
        media_Figura1.Position = ts;
    }
}

I also would like to leave the last frame of the video visible when it ends instead of the default black screen. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:53:17+00:00Added an answer on June 7, 2026 at 1:53 am

    for mor easily solution, you could have 2 videos, 2 mediaElements, and, when the first videoEnded, repeat both mediaElementes media files, and, you can usea a bool variable for determinate how video can play it all second video and stop the first video.

    you can use this solution and read the comment of video.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to have a video in my app that has a free 30
i have a single video (duration: 3 seconds) and i need to create 2
We have been requested to stream a single video (+500MB) from a web site.
Can you recommend a single downloadable video ( one that you have actually watched
I have A single page that has the following structure <form runat=server><placeholder></placeholder></form> I have
I have a single view application. It has myAppDelegate and myViewController. In a earlier
I have a ebook single HTML page having text, video and audios, which I
I have Commenting system in my app. For a single video entry anyone can
At my website I have a single < sign that I want deleted that
I have a video player that runs client-side, and I want to store a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.