• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Using the flash player ocx to play online flash content in vb.net?

New Here ,
Apr 06, 2015 Apr 06, 2015

Copy link to clipboard

Copied

I have a vb.net application I need to play flash content in. I was trying to play movie trailers from trailer addicts API (removed by moderator) and need to auto play each video. How can I get the SWF player to automatically start playing the video? Here's the SWF URL to play around with: (removed by moderator). I cannot seem to get it to work. In addition, I get an error when calling LoadMovie on a new flash movie. Here's my code so far:

  Private Sub TrailerRotateTimer_Tick(sender As Object, e As EventArgs) Handles TrailerRotateTimer.Tick

   If FirstTrailer = False Then

   Select Case myoptions.TrailerPlayTime

   Case Is = 60

  TrailerRotateTimer.Interval = 60000

  FirstTrailer = True

   Case Is = 90

  TrailerRotateTimer.Interval = 90000

  FirstTrailer = True

   Case Is = 120

  TrailerRotateTimer.Interval = 120000

  FirstTrailer = True

   Case Else

  TrailerRotateTimer.Interval = 60000

  FirstTrailer = True

   End Select

   End If

  firstvideo = myoptions.TrailerUrlCollection.Item(randnum.Next(1, 5))

   ' Video.EmbedMovie = True

  Video.AllowScriptAccess = "always"

  Video.FlashVars = ""

   ' Video.Playing = True

  Video.LoadMovie(0, firstvideo)

 

   If Video.IsPlaying = False Then

   ' Video.CallFunction("<invoke name=""id"" returntype=""xml""><arguments><string>100788</string></arguments></invoke>")

  Video.GotoFrame(1)

  

   'Video.Playing = True

   'Video.Loop = False

   Else

   End If

   End Sub

If I need to be in a developer forum, moderators can just move me (if possible).

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines