TMediaPlayer and TMediaPlayerControl don't seem to work for Delphi FireMonkey iOS/Android? -


i have delphi xe6 firemonkey project, intending play videos on ios , android devices.

in form have tmediaplayercontrol , tmediaplayer controls.

my code play video (passed in) is

mediaplayer1.filename := tpath.getdocumentspath + pathdelim + s; label1.text := inttostr(mediaplayer1.media.videosize.truncate.x) + 'x' +     inttostr(mediaplayer1.media.videosize.truncate.y) +     'px ' + inttostr(mediaplayer1.media.duration div mediatimescale) + 'ms'; trackbar1.max := mediaplayer1.media.duration;  mediaplayer1.play; 

the intention label show resolution of video , trackbar show length of video.

yet, label shows 0x0 , trackbar has value 0.

now, if set mediaplayer property of tmediaplayercontrol, ie

mediaplayercontrol1.mediaplayer := mediaplayer1; 

the video not play @ all. nothing happens. if clear property, video play in uncontrolled window in middle of screen, ignoring tmediaplayercontrol entirely.

this code works firemonkey windows app seems not work ios or android.

am doing fundamentally wrong or broken? in case how play videos in firemonkey ios/android?

thank you!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -