Skip to main content
Participant
April 6, 2015
Question

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

  • April 6, 2015
  • 0 replies
  • 1268 views

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).

This topic has been closed for replies.